Skip to content
Platforms / 04APP and DMGmacOS security audits

macOS.

What your build
gives away.

A Mac app is a bundle of binaries, frameworks, helpers and resources. Signing helps establish integrity; it does not make that bundle confidential. We inspect what ships and the permissions it can use.

Get a free first look Explore the build
Silver laptop with its display and keyboard layers lifted above the circuitry.
Build / APP and DMGIllustrated, layer by layer
  • .app
  • Mach-O
  • Info.plist
  • entitlements
  • helper tools
  • Sparkle feed

01 / Inside the build

A package.
Many ways in.

Select a layer to see what it contains and which tools can read it.

Inside the package

.app bundle layout

A folder that Finder shows as one icon. Apple's bundle documentation places the main executable in Contents/MacOS/, resources in Contents/Resources/, frameworks and dynamic libraries in Contents/Frameworks/, plug-ins and app extensions in Contents/PlugIns/, XPC services in Contents/XPCServices/ and privileged helper tools in Contents/Library/LaunchServices/.

Reads as source

Right-click, Show Package Contents. Every file is on disk in the open; nothing is packed or encrypted by default for apps distributed outside the Mac App Store.

Indicative readability. Build settings, obfuscation and access to a running device change the effort.

Tools that can read these layers

Hopper Disassembler · Ghidra / IDA · class-dump · otool / nm · codesign · LLDB · Frida · pkgutil / plutil

02 / The method

One build.
Six ways to inspect it.

Agents inspect the package, trace its behaviour and collect evidence through six stages. An engineer verifies each finding before it enters your report.

Unpack.

Opens the build and lists every file, format and layer.

Tools used in this stage
  • inspect_artifact
  • extract_artifact
  • inspect_macho
  • inspect_signature
Illustrative run log
  1. unpack
    inspect_signature Editor.app

    signed, notarised, hardened runtime on

  2. map
    inspect_plist Info.plist

    Sparkle feed URL, 2 URL schemes

  3. map
    trace_dylib_resolution

    1 helper tool installed as root

  4. read
    get_objc_classes HelperTool

    XPC listener accepts any client

  5. read
    analyze_swift_types LicenceStore

    trial end date kept in user defaults

  6. hunt
    search_strings "api.|key"

    1 analytics write key

  7. run
    observe_native_calls

    helper runs a path it was handed

  8. prove
    export_evidence_bundle

    4 findings, ranked, sent to the engineer

8 / 8 eventsEngineer review follows ↗

A written example of the report format. Replay is condensed; the real time budget is agreed before a run and printed on the report.

03 / Exposure areas

What can
escape the build.

The places we look on macOS, the business risk behind them, and the changes that reduce exposure.

Readability alone is not a vulnerability. Impact depends on what the recovered material lets someone do.

01

Client-side licence checks patched and redistributed

Many Mac apps decide paid status with a local check, often a single method such as isRegistered or a flag in user defaults, which is easy to find via Objective-C metadata and patch. Patched copies are then repackaged and spread on warez sites, sometimes bundled with malware.

The fix

Verify signed licence receipts with server involvement for premium actions, and avoid a single trusting boolean that gates every paid feature.

CWE-602

02

Hardcoded API keys and secrets in bundle

API keys, backend tokens and service passwords end up as string constants in the Mach-O, in Info.plist, or in bundled JSON and plist files. Anyone with the DMG can read them without running the app.

The fix

Remove secrets from the bundle, rotate them, and broker privileged calls through your own backend with per-user tokens.

CWE-798

03

Insecure or outdated Sparkle update setup

Apps that serve their appcast or downloads over plain HTTP, ship an old Sparkle version, or skip EdDSA signing let an attacker on the network or at the server substitute an update. Sparkle's own documentation tells developers to serve updates over HTTPS and sign archives with an EdDSA key whose public half goes in Info.plist as SUPublicEDKey.

The fix

Update to the current Sparkle release, serve the appcast and archives over HTTPS, and sign every update with EdDSA.

CWE-494CWE-319

04

Privileged helpers and XPC services accept any client

Helpers that run as root, or XPC services that inherit the app's privacy (TCC) permissions, frequently accept connections without verifying the caller's code signature, or verify it by process ID, which can be raced. Any local process can then ask the helper to move files, change permissions or install packages as root.

The fix

Check the connecting client's code signature against your Team ID using the audit token (on macOS 13+, NSXPCConnection.setCodeSigningRequirement) and expose only narrow, validated operations.

CWE-863CWE-284

05

Library validation disabled, allowing dylib injection

The Hardened Runtime blocks loading libraries not signed by Apple or the same Team ID, but the com.apple.security.cs.disable-library-validation entitlement turns that off. Combined with relative or @rpath library paths, it lets another program inject code that inherits the app's camera, microphone and other permissions.

The fix

Remove the disable-library-validation exception unless you truly load third-party-signed plug-ins, and use absolute or @executable_path-anchored load paths.

CWE-427

06

Homemade signature checks and installer race windows

Updaters that verify packages by parsing command-line output or checking only part of a signature can be fooled by crafted file names or certificates. Leaving a downloaded package writable between verification and root installation creates a time-of-check to time-of-use gap.

The fix

Verify signatures with Apple's Security framework APIs against your exact Team ID, and move packages into a root-owned location before checking and installing them.

CWE-347CWE-367

04 / Sample findings

From recovered evidence
to a fix you can check.

Explore three illustrative macOS reports. Switch to the re-test to see what the next build changes.

01 / 03

Illustrative example · Mac disk and system utility with an optional root helper (Swift/Objective-C, Developer ID, PKG installer)

A helper with too much authority.

The privileged helper installed in /Library/PrivilegedHelperTools accepts every incoming XPC connection and exposes a method that copies a caller-supplied file to a caller-supplied path as root. Any local process can overwrite a LaunchDaemon plist and get persistent root code execution.

Evidence comes first

The full teardown records the recovered artifact, its business impact and a fix for your stack.

Recovered artifactEXAMPLE / 01
// HelperTool -[HelperDelegate listener:shouldAcceptNewConnection:] (Hopper pseudocode)
BOOL r = YES;
conn.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(HelperProto)];
conn.exportedObject = self;
[conn resume];
return r;   // no audit-token or Team ID check
// exported: -copyItemAtPath:toPath:withReply:

These fictional examples show the report format. All names, hostnames and credentials are made up. They do not describe real customer work.

05 / On the record

The risk
has a history.

These reports show what other researchers found in released software. Each links to the original source.

  1. 2025

    Missing authentication in Sparkle helpers

    CERT Polska reported authorisation flaws in Sparkle helper services, including access to protected files and a route to privileged installation. The advisories identify versions before 2.7.2 as affected.

    CERT Polska (16 September 2025) (opens in a new tab)
  2. 2023

    A privileged helper with a caller-validation flaw

    IBM X-Force documented CVE-2023-40713 in GOG Galaxy for macOS. Its analysis showed how validation based on a process ID could be defeated, allowing a local process to misuse a privileged helper.

    IBM X-Force (opens in a new tab)

Before the review

macOS
audit questions.

Compare pricing and scope, or read how we verify findings.

What does a macOS security teardown inspect?

A Mac app is a bundle of binaries, frameworks, helpers and resources. Signing helps establish integrity; it does not make that bundle confidential. We inspect what ships and the permissions it can use. An engineer verifies the findings, explains their business impact and writes fixes for your stack.

Does signing a Mac app prevent reverse engineering?

Signing helps establish integrity; it does not make an application bundle confidential. Binaries, frameworks, helpers and resources still need review. We inspect what the release contains and the permissions its components can use.

What does a macOS teardown report include?

The paid teardown includes recovered evidence, findings ranked by business impact and a fix written for your stack. Audit and re-test adds a same-budget check of the updated build and a dated statement. The free first look reports counts and excludes recovered code and credential values.

Page updated . Samples are illustrative; public research is attributed above.

Your build. Your evidence.

See what
yours gives away.

Start with counts of exposed keys, files and readable logic. A full teardown adds verified evidence, business impact and a fix written for your stack.

Only software you own or are authorised to submit. No code or credential values in the free counts-only result.