From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Windows Registry hive (REGF)" |
|---|
| claim | "If the primary (offset 4) and secondary (offset 8) sequence numbers of a hive differ, the hive holds partial data and the .LOG file must be applied on top of the primary file. Transaction logs reuse the regf header (file type at offset 28: 1 = variant 1 seen on XP SP2/SP3, Vista, 7 and 8.0; 2 = variant 2 seen on NT 3.51, NT 4.0 and 2000; 6 = variant 6 seen on 8.1, Server 2012 R2 and 10) and their header block can be 1024 instead of 4096 bytes. Variant 1 = header, dirty vector, contents of the dirty pages; variant 2 = header and dirty vector only. The dirty vector starts at offset 512 with 'DIRT' (44 49 52 54) followed by a bitmap with one bit per 512-byte page of the hive; its bins data size should match the hive. Some logs have a 512-byte dirty vector with no bit set. The document does not describe variant 6 contents." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "hive files and .LOG/.LOG1/.LOG2 files" |
|---|
| observed_in | |
|---|
|
|---|
| data | | dirty_vector_signature | "DIRT" |
|---|
| dirty_vector_offset | "0x200" |
|---|
| page_size | 512 |
|---|
| log_file_types | | 1 | "variant 1" |
|---|
| 2 | "variant 2" |
|---|
| 6 | "variant 6" |
|---|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "File header notes (lines 229-252), File types (271-282), transaction log section and dirty vector (1075-1110)" |
|---|
| repo | "https://github.com/libyal/libregf" |
|---|
| commit | "eb1364c9926ab12cee76139fe91a38ab29ea1896" |
|---|
| path | "documentation/Windows NT Registry File (REGF) format.asciidoc" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "Transaction log files and sequence numbers" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T09:47:32.480Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:48:55.967Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read libregf documentation at eb1364c: header offsets 4/8/28, 1024-byte log header note, file types 1/2/6 text, transaction log variant 1 and 2 layout, DIRT dirty vector at offset 512 with 512-byte pages, 512-byte empty vector note." |
|---|
|
|
|---|