Skip to content

Series

Investigating Mach-O files

5 posts in this series. Read them in order or jump to any one.

  1. How to Collect Suspicious Mac Executables Safely

    Where Mac malware keeps its binaries, how to copy them without running them and without losing the quarantine attribute, and how to package an .app, a .dmg or a .pkg for analysis on another machine.

  2. 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.

  3. Dylib Hijacking on macOS: @rpath and Weak Dylibs

    How dyld resolves @rpath, why a missing weak dylib or a writable search path lets a foreign library load, and how to spot it and its defences in the Mach-O.

  4. Capabilities and Stack Strings in Mac Malware

    How Mach-O Parser reads arm64 and x86_64 code: function discovery, named calls, capability rules mapped to ATT&CK, PT_DENY_ATTACH and stack strings.

  5. From a Mach-O File to IOCs: MISP, STIX 2.1 and a YARA Draft

    Which indicators a Mach-O file gives up, how Mach-O Parser filters the background noise, and how to export them to CSV, MISP, STIX 2.1 and a YARA draft.

All posts in this series

Where Mac malware keeps its binaries, how to copy them without running them and without losing the quarantine attribute, and how to package an .app, a .dmg or a .pkg for analysis on another machine.
A walkthrough of Mach-O Parser on five harmless samples: triage, signatures, entitlements, a dropper's payload, compare, YARA and exports. Nothing uploaded.
How dyld resolves @rpath, why a missing weak dylib or a writable search path lets a foreign library load, and how to spot it and its defences in the Mach-O.
How Mach-O Parser reads arm64 and x86_64 code: function discovery, named calls, capability rules mapped to ATT&CK, PT_DENY_ATTACH and stack strings.
Which indicators a Mach-O file gives up, how Mach-O Parser filters the background noise, and how to export them to CSV, MISP, STIX 2.1 and a YARA draft.