Course contentsShow
← Security
Lesson 2400 of 3,05246. Incident ResponseFree lesson

File System Analysis: NTFS Deep Dive

Analyze NTFS structures including MFT, journals, alternate data streams, and understanding how file metadata aids investigations.

File System Analysis: NTFS Deep Dive

You'll learn how NTFS structures reveal investigative gold during incident response.

After imaging a disk, the real detective work begins: understanding what NTFS—the New Technology File System—reveals about attacker activity. NTFS isn't just where files live; it's a treasure trove of metadata that tracks who did what, when, and how.

The Master File Table (MFT): NTFS's Index Card Catalog

Think of the MFT as a detailed library catalog for every file and folder. Each entry (typically 1024 bytes) contains:

  • File attributes (size, timestamps, permissions)
  • STANDARDINFORMATIONandSTANDARD_INFORMATION and FILE_NAME attributes with creation, modification, access, and MFT change times
  • Data run information (where file contents physically reside)

Deleted files often persist in the MFT with their metadata intact—critical for timeline reconstruction.

NTFS Journals: The File System's Diary

The $LogFile and $UsnJrnl (Update Sequence Number Journal) record every file system transaction. These logs capture file creation, deletion, and modification events even if the files themselves are gone. Attackers who delete evidence can't easily erase these journal entries without sophisticated anti-forensics.

Alternate Data Streams (ADS): Hidden Compartments

NTFS allows files to have multiple data streams beyond the main content. Malware loves ADS for hiding payloads:

notepad.exe:badcode.exe

The file appears normal, but contains hidden executable data. Forensic tools must explicitly enumerate streams to detect these.

Metadata-Driven Investigations

Timestamps reveal activity timelines. The STANDARDINFORMATIONtimestampscanbemanipulatedbyattackers,butSTANDARD_INFORMATION timestamps can be manipulated by attackers, but FILE_NAME timestamps (stored in the directory entry) are harder to alter—compare both to detect timestomping. File attributes like SYSTEM or HIDDEN flags may indicate stealth attempts.

Key Takeaway: NTFS structures—MFT entries, journals, and alternate data streams—preserve critical metadata that survives file deletion, enabling investigators to reconstruct attacker actions and uncover hidden artifacts even when direct evidence is removed.