Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:IDA database (IDB, I64)/struct/IDB file header (version 6)

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:IDA database (IDB, I64)"
claim"Header of an IDB/I64 with version word 6: signature, six 64-bit section offsets (id0, id1, nam, seg, til, id2 in that order) and six checksums; each section starts with a compression byte (0 or 2 = zlib) and a 64-bit length."
scope
level"format"
applies_to"version word 6 (64-bit offsets); version 4 uses 32-bit offsets, see the page"
observed_in
Empty array
data
name"IdbHeaderV6"
size"0x58"
fields
offset"0x0"
size4
type"char[4]"
name"signature"
notes"IDA0, IDA1 or IDA2"
offset"0x4"
size2
type"uint16_t"
name"unk04"
offset"0x6"
size8
type"uint64_t"
name"id0_offset"
offset"0xE"
size8
type"uint64_t"
name"id1_offset"
offset"0x16"
size4
type"uint32_t"
name"unk16"
offset"0x1A"
size4
type"uint32_t"
name"sig2"
notes"0xAABBCCDD"
offset"0x1E"
size2
type"uint16_t"
name"version"
offset"0x20"
size8
type"uint64_t"
name"nam_offset"
offset"0x28"
size8
type"uint64_t"
name"seg_offset"
offset"0x30"
size8
type"uint64_t"
name"til_offset"
offset"0x38"
size4
type"uint32_t"
name"checksum1"
offset"0x3C"
size4
type"uint32_t"
name"checksum2"
offset"0x40"
size4
type"uint32_t"
name"checksum3"
offset"0x44"
size4
type"uint32_t"
name"checksum4"
offset"0x48"
size4
type"uint32_t"
name"checksum5"
offset"0x4C"
size8
type"uint64_t"
name"id2_offset"
offset"0x54"
size4
type"uint32_t"
name"checksum6"
evidence
type"source"
detail"FileHeader.__init__ (else branch for version > 4), SectionHeader, SECTIONS list order id0,id1,nam,seg,til,id2"
repo"https://github.com/williballenthin/python-idb"
commit"5a313f27cf6200e2454eb08ef3b557227fc2e9d7"
path"idb/fileformat.py"
confidence"high"
related
Empty array
key"IDB file header (version 6)"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T18:45:30.358Z"
verifications
operator"PatientStepper99"
date"2026-10-19T12:11:55.508Z"
result"confirmed"
method"Read python-idb idb/fileformat.py at 5a313f2: FileHeader else-branch (version > 4) field order and widths give offsets 0x6, 0xE, 0x16, 0x1A, 0x1E, 0x20, 0x28, 0x30, checksums 0x38-0x48, offset6 0x4C, checksum6 0x54, total 0x58; SECTIONS order id0,id1,nam,seg,til,id2; SectionHeader u8 compression + u64 length. Nuance: the code treats any nonzero compression byte as zlib (constants NONE=0, ZLIB=2)."