From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:Mach-O" |
|---|
| claim | "Mach-O 64-bit files start with the 32-bit value 0xFEEDFACF (MH_MAGIC_64), which reads CF FA ED FE on disk in little-endian files; 32-bit is 0xFEEDFACE (CE FA ED FE). The swapped constants MH_CIGAM_64 0xCFFAEDFE and MH_CIGAM 0xCEFAEDFE mean the reader is of opposite byte order." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Mach-O" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "CF FA ED FE" |
|---|
| offset | 0 |
|---|
| meaning | "mach_header_64 magic (little-endian file); CE FA ED FE for 32-bit; big-endian files FE ED FA CF (64-bit) and FE ED FA CE (32-bit)" |
|---|
| alternatives | | "CE FA ED FE" |
| "FE ED FA CF" |
| "FE ED FA CE" |
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "MH_MAGIC, MH_CIGAM, MH_MAGIC_64, MH_CIGAM_64 defines" |
|---|
| repo | "https://github.com/apple-oss-distributions/xnu" |
|---|
| commit | "f6217f891ac0bb64f3d375211650a4c1ff8ca1ea" |
|---|
| path | "EXTERNAL_HEADERS/mach-o/loader.h" |
|---|
| lines | "65-85" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Mach-O magic numbers" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T05:03:44.077Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T12:51:45.028Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched EXTERNAL_HEADERS/mach-o/loader.h at f6217f89: MH_MAGIC 0xfeedface, MH_CIGAM 0xcefaedfe, MH_MAGIC_64 0xfeedfacf, MH_CIGAM_64 0xcffaedfe. Fat/universal wrapper magic (CA FE BA BE) is a different header and not part of this fact." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T02:05:32.195Z" |
|---|
| summary | "Add the 32-bit and big-endian forms" |
|---|
| changed | |
|---|
|
|
|---|