Glossary
MFT file reference number
The 64-bit NTFS identifier of a file: a 48-bit MFT entry number plus a 16-bit sequence number that changes each time the entry is reused.
An MFT file reference number is how NTFS uniquely points to a file or directory. It is an 8-byte value made of two parts:
- the MFT entry number (48 bits), the index of the file's record in the $MFT;
- the sequence number (16 bits), a counter that changes each time that record is freed and reused for another file.
The combination matters because MFT entries are recycled. When a file is deleted, its entry can later be allocated to a completely different file. The entry number alone would then be ambiguous, but the sequence number tells the two apart. Tools usually display the reference as entry-sequence, for example 84211-3.
File references appear throughout NTFS metadata. Every $FILE_NAME attribute stores the reference of its parent directory, which is how full paths are rebuilt. Entries in the $UsnJrnl record both the file reference and the parent reference, and index entries in $I30 point to files the same way.
In practice this enables two useful checks. If a journal record's reference has a lower sequence number than the current MFT entry, the record describes an earlier file that has since been deleted. And when resolving the path of a deleted item, matching both entry and sequence avoids attributing activity to the wrong file. See also Master File Table (MFT).
Related artifacts
- $I30 index attributes$I30 cheat sheet: NTFS directory indexes ($INDEX_ROOT, $INDEX_ALLOCATION), INDX records, timestamps, slack entries of deleted files and parsers.
- LNK shortcut filesLNK cheat sheet: Recent folder shortcuts, first and last open times, embedded target timestamps, volume serial, network share and TrackerDataBlock MAC.
- Master File Table ($MFT)$MFT cheat sheet: FILE records, $SI vs $FN timestamps, resident data, deleted records, sequence numbers, timestomping checks and MFTECmd parsing.
- RecentFileCache.bcfRecentFileCache.bcf cheat sheet: the Windows 7 execution artifact that lists recently run executables, its location, format, limits and how to parse it.
- Syscache.hveSyscache.hve cheat sheet: the Windows 7 / Server 2008 R2 hive in System Volume Information that links MFT file IDs to SHA-1 hashes, and its limits.
- USN Journal ($UsnJrnl:$J)USN journal cheat sheet: $UsnJrnl:$J and $Max, record fields, reason flags, parent references, default size, rollover, fsutil and MFTECmd parsing.