Binary analysis · Intermediate
Understanding Apple Mach-O Binary Internals
A practical, technically rigorous course on Apple Mach-O internals. Students learn the actual file structures and loader concepts, use real analysis tools, write small parsers, inspect code-signing metadata, and finish with a capstone analysis artifact.
MODULE 1
Orientation and a byte-level toolchain
Set up a portable workflow and learn to verify claims directly against bytes and structures.
What a binary format actually promiseslesson · 35 minLab: Build a portable Mach-O header readerlab · 60 minMODULE 2
The Mach-O container
Magic values, endianness, 32/64-bit headers, CPU types and file types.
Mach headers: architecture, file type, commands and flagslesson · 45 minMODULE 3
Load commands are the map
Understand LC_* commands and how they describe what the loader and linker need.
Load commands are the maplesson · 55 minMODULE 4
Segments, sections and virtual memory
Connect on-disk layout to mapped memory and permissions.
Segments, sections, file offsets and virtual memorylesson · 60 minMODULE 5
Symbols, relocations and dynamic linking
Follow names and references through symbol tables, dyld metadata and imports.
Symbols, string tables and dynamic linkinglesson · 65 minModern dyld metadata: exports and chained fixupslesson · 55 minMODULE 6
Universal binaries and architecture slices
Inspect FAT containers and reason about multiple architecture payloads.
Universal binaries: one container, multiple Mach-O imageslesson · 40 minLab: Parse a universal Mach-O wrapperlab · 75 minMODULE 7
Code signatures, entitlements and trust metadata
Understand what is signed, where metadata lives, and what verification does and does not prove.
Code signatures and entitlements without mythologylesson · 70 minLab: Map the embedded code-signature structurelab · 90 minMODULE 8
Objective-C and Swift runtime metadata
Recognize runtime structures that expose classes, selectors, protocols and language metadata.
Objective-C and Swift runtime metadatalesson · 60 minMODULE 9
Reconstructing behavior from an unfamiliar binary
Combine headers, mappings, symbols, strings and disassembly into a coherent execution model.
A repeatable workflow for unfamiliar Mach-O fileslesson · 65 minMODULE 10
Capstone and verified credential
Produce a reproducible analysis report and complete the final assessment.
Capstone: produce a defensible Mach-O analysiscapstone · 120 minFinal assessmentexam · 45 min