0Pricing
Cyber Security Academy · Lesson

Disk Imaging and File System Forensics

Create forensic images with dd/FTK Imager, analyze FAT and NTFS file systems, recover deleted files.

Disk Imaging and File System Forensics is a free Cyber Security Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cyber Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Forensic Imaging Principles

Forensic imaging creates a bit-for-bit copy of storage media while preserving evidence integrity. The original evidence must never be modified — work from a write-blocked copy. Hash the original and copy to verify exact reproduction.

Write Blockers

Hardware write blockers physically prevent write commands from reaching evidence drives. Software write blockers (dc3dd, FTK Imager) prevent OS-level writes. Always use a write blocker before connecting evidence drives to prevent accidental evidence modification.

Creating Images with dd and dc3dd

dd creates raw disk images. dc3dd adds progress reporting, hashing, and split output — essential for large drives. Use bs=4096 for performance. Verify the image hash matches the evidence hash to demonstrate integrity.

dc3dd if=/dev/sdb of=/evidence/disk.dd hash=sha256 hlog=/evidence/hash.txt bs=4096
sha256sum /dev/sdb /evidence/disk.dd

FTK Imager

FTK Imager provides a GUI for Windows disk imaging. It supports E01 (Expert Witness Format) which compresses the image and stores the hash, acquisition details, and examiner notes in the file header — the forensic standard for evidence.

FAT32 File System Forensics

FAT32 stores file metadata in directory entries and allocation chain in the File Allocation Table. Deleted files leave directory entries with a 0xE5 marker; the FAT chain is zeroed but data clusters may remain. Recovery tools use these remnants.

NTFS Forensics

NTFS stores all metadata in the Master File Table (MFT). Each MFT record describes a file. The $LogFile records changes for crash recovery. $UsnJrnl (change journal) records every file operation — a goldmine for timeline reconstruction even after deletion.

Recovering Deleted Files

Autopsy and Sleuth Kit recover deleted files by scanning for intact MFT entries with deallocated data clusters and by file carving — identifying file magic bytes (signatures) in raw cluster data regardless of file system metadata.

File Carving

File carving recovers files based on headers and footers (magic bytes) from unallocated space. JPEG starts with FF D8 FF. PDF with 25 50 44 46. ZIP with 50 4B 03 04. Scalpel and PhotoRec are the primary carving tools.

Timeline Analysis with Autopsy

Autopsy generates a timeline from MAC times (Modified, Accessed, Changed) and $UsnJrnl entries. Filter around the suspected compromise time to see what files were created, modified, or deleted — reconstructing attacker actions chronologically.

Registry Forensics

The Windows Registry records installed software, USB devices (USBSTOR), recent documents, last logged-in user, and run key persistence. Registry Explorer and RegRipper extract and parse registry hives from disk images for artifact analysis.

Browser Forensics

Browser history, cookies, cached files, and form data are stored in SQLite databases. Chrome uses LevelDB. Extracting these artifacts reveals attacker reconnaissance activity, exfiltration staging, and web-based command channels.

Knowledge Check

Why must a write blocker be used when examining evidence drives?

Summary

Disk forensics starts with forensically sound imaging using write blockers and hash verification. NTFS MFT, $UsnJrnl, registry hives, browser databases, and file carving from unallocated space collectively enable reconstruction of attacker activity on compromised systems.

Frequently asked questions

Is the “Disk Imaging and File System Forensics” lesson free?

Yes — the full text of “Disk Imaging and File System Forensics” is free to read here on the web, and the Cyber Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cyber Security Academy course, upgrade to CoddyKit PRO.

What will I learn in “Disk Imaging and File System Forensics”?

Create forensic images with dd/FTK Imager, analyze FAT and NTFS file systems, recover deleted files. You practise Cyber Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cyber Security Academy?

No prior experience is required. Cyber Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Disk Imaging and File System Forensics” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cyber Security Academy lesson?

Yes. Every Cyber Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Disk Imaging and File System Forensics
  2. Memory Acquisition and Volatility Framework
  3. Timeline Analysis and Artifact Correlation
  4. Network Forensics with Wireshark
← Back to Cyber Security Academy