Analyze a Mach-O File in Your Browser, Without a Mac
A walkthrough of Mach-O Parser on five harmless samples: triage, signatures, entitlements, a dropper's payload, compare, YARA and exports. Nothing uploaded.
TL;DR. Drop files, a folder, an .app or a ZIP onto Mach-O Parser. Each file is parsed in your browser:
- every slice of a universal binary;
- the code signature, re-verified page by page;
- entitlements, libraries, imports, strings, embedded payloads;
- and, on request, the code itself.
The table sorts the batch by how much each file deserves a look, and the detail view explains every finding in plain language. Comparisons, YARA, IOC lists and ATT&CK layers come out of the same tab. The five sample files behind Try a sample make a good tour.
The batch: what deserves a look first
Try a sample loads five files laid out like a triage collection from a fictional user, alice:
| File | What it shows |
|---|---|
Library/Application Support/.updater/updater | Universal binary, ad-hoc signed, risky entitlements, weak @rpath library, infostealer strings |
Library/Application Support/.updater/libhelper.dylib | The library it links; arm64 slice linker-signed, x86_64 slice unsigned |
Downloads/Installer.app/…/Installer | A "dropper" carrying the updater inside its own data |
Downloads/updater-old | An older Intel-only build of the updater, unsigned |
Applications/SyncTool.app/…/SyncTool | Signed, then modified: one string changed after signing |
The Files view lists them with their kind, signature, size, symhash and findings, and sorts the riskiest first. The search box matches paths, hashes, Team IDs, library names and ATT&CK techniques. Worth a look only hides files with no medium or high finding. With a few hundred files from a real collection, that ordering is the point: the launch agent's target with a broken signature comes before the thousand clean Apple helpers.
One file in detail
Selecting a file opens its detail view, with one tab per question:
- Overview: kind, architectures, signature verdict, top findings, hashes, and the lookup links.
- Indicators: every finding with its level and a plain explanation.
- ATT&CK: the techniques with the evidence behind each.
- Signature and Entitlements: see code signatures and entitlements.
- Load commands, Segments, Libraries, Imports, Exports, Symbols, Strings, Header, Info.plist: the structure, field by field.
- Code and Code analysis: a disassembly, and the capabilities found in it.
- Hex: the bytes, tied to the structure. A load command, a section or a string opens at its offset.
For the updater, the Indicators tab tells most of the story without a disassembler:
- an ad-hoc signature whose identifier claims to be
com.apple.softwareupdate.agent; get-task-allow,disable-library-validationandallow-dyld-environment-variables;- a weak
@rpath/libhelper.dylibsearched first in/Users/Shared/.updater, a folder every user can write to; - strings that remove the quarantine attribute, write a LaunchAgent, read the "Chrome Safe Storage" keychain item and show a fake password dialog through
osascript; - a
curl … | shdownload from a documentation IP address.
A universal binary gets a slice switcher: each slice is signed and analysed on its own, and the two can differ.
A signature that no longer matches
SyncTool looks like an ordinary signed program until the Signature tab re-hashes its pages. The first page no longer matches its hash in the CodeDirectory, and the file is reported as modified after signing. Only the version string changed here. In a real case, the same verdict points at a patched, infected or repackaged program, which is why the tool re-checks every page instead of showing the signature as it was written.
A payload inside a payload
The Installer carries a complete arm64 Mach-O file in its data. The Payloads tab lists it with its offset. The tool extracts it and analyses it as a child file. It shows up in the batch as Installer!macho@0x…, marked as found inside its parent. Compare with the parent puts the two side by side. Droppers rarely keep their next stage as a separate file, so this is often where the interesting binary is.
Two builds side by side
Compare takes any two files and shows their fields side by side:
- architectures, platform and minimum OS;
- signature, signer, Team ID, identifier, hardened runtime, signing time;
- imports, libraries and entitlements, with what is only in A and what is only in B.
For updater against updater-old, the comparison shows the same imports, and the same symhash. What changed is the signature (ad hoc versus none), the architectures (universal versus Intel only), the minimum OS (11.0 versus 10.13) and the entitlements. Those are two builds of one tool, which is what an analyst wants to know about two files found on the same machine.
The code
For arm64 and x86 slices, the Code tab disassembles from the entry point, any export or symbol, or an address. Calls through stubs are named after their imports, Objective-C sends after their selectors, and string and CFString references are resolved. Code analysis walks every function against capability rules mapped to ATT&CK, and recovers strings built on the stack. The batch button runs it on every file. See capabilities and stack strings.
YARA
YARA rules opens a panel where you paste rules or load .yar files. They run in the browser on every loaded file, extracted children included. The macho, hash, math and string modules are available. Matches open in the hex view. A rule can also be drafted from a file's indicators, or from bytes selected in the hex view, and tested against the batch right away.
Getting the results out
- Export (batch): an inventory CSV, the full report as JSON, the imports and exports, the strings, and an ATT&CK Navigator layer.
- IOCs (per file): URLs, IPs, domains, paths, Team IDs, cdhashes and hashes, as CSV, a defanged text list, a MISP event or a STIX 2.1 bundle. See from a Mach-O file to IOCs.
- Lookups: one click sends a hash, and only the hash, to VirusTotal, MalwareBazaar, Hybrid Analysis or Triage.
What it does not do
It does not run anything, so behaviour that only appears at run time stays hidden: a decrypted configuration, a second stage downloaded later. It does not decide trust: certificate chains are not validated against Apple's trust store, and revocation and notarization are not checked online. Packed and FairPlay-encrypted code is reported, not unpacked. And a finding is a reason to look, not a verdict: well-known apps trip some heuristics too.
What it does do is answer the first questions of a Mac investigation from any machine, in a minute, without the file leaving that machine. Collecting the files well is the other half: see how to collect suspicious Mac executables safely.
Frequently asked questions
Do I need a Mac to analyse Mac malware statically?
No. Static analysis only reads the file, and the Mach-O format is documented. Mach-O Parser runs in any recent browser on Windows, Linux or macOS: it parses the file, re-verifies the code signature, disassembles arm64 and x86_64 code and runs YARA rules, all inside the tab.
Is the file uploaded anywhere?
No. The file is read by WebAssembly in your browser and never leaves the machine. Only a hash leaves the browser, and only if you click one of the VirusTotal, MalwareBazaar, Hybrid Analysis or Triage links.
What do the sample files do?
They only print a greeting. They were built to look like a small infostealer from a fictional user's machine: risky entitlements, a weak @rpath library, a dropper carrying a payload, a file modified after signing and inert suspicious strings (documentation IP addresses, .invalid domains). Their signatures are ad hoc, and no key material was involved.