Performing Disk Forensics Investigation
When to Use
- A security incident requires forensic analysis of a system's persistent storage
- Evidence preservation is needed for potential legal proceedings or HR investigations
- Deleted files, browser history, or application artifacts must be recovered
- A timeline of user or adversary activity must be reconstructed from file system metadata
- Malware persistence mechanisms stored on disk need identification and documentation
Do not use for volatile evidence (running processes, network connections); use memory forensics with Volatility instead.
Detection Gaps & Validation
- Anti-forensics defeats a naive timeline:
$STANDARD_INFO ($SI) timestamps are trivially backdated by timestomping. Always compare $SI against $FILE_NAME ($FN) timestamps in the MFT (parse with MFTECmd) — a file whose $SI predates its $FN or sits outside the surrounding MFT record sequence is a timestomp tell. Corroborate with the USN Journal ($J) and $LogFile, which attackers rarely scrub.
- "Deleted" rarely means gone: check Volume Shadow Copies (
vssadmin list shadows, mount with vshadow/Arsenal) for earlier file versions, recover from unallocated space via carving, and inspect NTFS alternate data streams (dir /r) for hidden payloads a file-name scan misses.
- Execution evidence is corroborative, not singular: Prefetch can be disabled (especially on SSDs/servers), so cross-validate program execution across Amcache, ShimCache/AppCompatCache, SRUM, UserAssist, and BAM/DAM. One artifact showing (or not showing) execution is a candidate; agreement across several is a confirmation.
- Validate the image first: a forensic conclusion is only as good as a verified acquisition — confirm source and image SHA-256 match and a write blocker was used before trusting any finding.
- FP tuning / don't conclude clean until: legitimate updaters and installers churn temp files and look malicious; baseline known-good software. Don't call a system clean until you've reconciled the MFT, USN Journal, shadow copies, and registry hives — log clearing (
1102/Windows.EventLogs.Cleared) itself is a finding, not an absence of evidence.
Prerequisites
- Forensic workstation with write-blocking hardware or software (Tableau T35u, Arsenal Image Mounter)
- Forensic imaging software: FTK Imager, Guymager, or dd with dcfldd
- Analysis platform: Autopsy, FTK (Forensic Toolkit), or X-Ways Forensics
- Sufficient storage (2-3x the target drive size for image plus working copies)
- Chain of custody forms and evidence bags for physical media
- Hash verification tools for evidence integrity (SHA-256)
Workflow
Step 1: Secure and Document the Evidence
Before touching any storage media, establish chain of custody:
- Photograph the system, noting serial numbers, labels, and cable connections
- Document the evidence source: device type, make, model, serial number, capacity
- Complete chain of custody form with date, time, handler name, and reason for acquisition
- Use a hardware write blocker when connecting the evidence drive to the forensic workstation
Chain of Custody Record:
━━━━━━━━━━━━━━━━━━━━━━━
Case ID: INC-2025-1547
Evidence ID: EVD-001
Description: Samsung 870 EVO 500GB SSD
Serial Number: S5XXNJ0R912345
Source Host: WKSTN-042
Acquired By: [Analyst Name]
Date/Time: 2025-11-15T16:30:00Z
Write Blocker: Tableau T35u (S/N: T35U-12345)
Step 2: Create a Forensic Image
Produce a bit-for-bit copy of the evidence drive:
Using FTK Imager (Windows):
- Connect evidence drive through write blocker
- File > Create Disk Image > Select source drive
- Choose E01 (Expert Witness Format) for compression and metadata
- Set destination path and evidence item information
- Enable "Verify images after they are created"
- Record source and image hash values
Using dcfldd (Linux):
# Create raw image with hash verification
dcfldd if=/dev/sdb of=/evidence/WKSTN-042.dd \
hash=sha256 hashlog=/evidence/WKSTN-042.sha256 \
bs=4096 conv=noerror,sync
# Verify image integrity
sha256sum /evidence/WKSTN-042.dd
Imaging Summary:
Source Drive: /dev/sdb (Samsung 870 EVO 500GB)
Image File: WKSTN-042.E01
Image Format: E01 (Expert Witness)
Source Hash: SHA-256: a1b2c3d4e5f6...
Image Hash: SHA-256: a1b2c3d4e5f6... (MATCH)
Sectors Read: 976,773,168
Errors: 0
Duration: 47 minutes
Step 3: Analyze File System Structure
Open the forensic image in Autopsy or FTK and examine the file system:
- Identify partition layout (MBR/GPT, NTFS/ext4/APFS partitions)
- Examine the Master File Table (MFT) for NTFS or inode tables for ext4
- Identify deleted files and directories (marked as unallocated but not yet overwritten)
- Recover files from unallocated space using file carving
- Examine alternate data streams (NTFS ADS) for hidden data
Key Windows Artifacts to Examine:
User Activity:
- NTUSER.DAT (registry hive per user)
- UsrClass.dat (shellbags, file access history)
- Recent files: %AppData%\Microsoft\Windows\Recent\
- Jump lists: %AppData%\Microsoft\Windows\Recent\AutomaticDestinations\
Program Execution:
- Prefetch: C:\Windows\Prefetch\*.pf
- Amcache: C:\Windows\appcompat\Programs\Amcache.hve
- SRUM: C:\Windows\System32\SRU\SRUDB.dat
- ShimCache: SYSTEM registry hive
Persistence:
- Scheduled Tasks: C:\Windows\System32\Tasks\
- Startup folders: %AppData%\Microsoft\Windows\Start Menu\Programs\Startup\
- Services: SYSTEM registry hive
Network:
- WLAN profiles: C:\ProgramData\Microsoft\Wlansvc\Profiles\
- Browser history: Chrome, Firefox, Edge profile directories
Step 4: Reconstruct the Timeline
Build a comprehensive timeline of file system activity:
Using Autopsy Timeline Module:
- Generate timeline from all available sources (MFT, event logs, browser history, prefetch)
- Filter to the investigation timeframe
- Identify clusters of activity correlating with the incident
- Document the sequence of attacker actions based on file creation, modification, and access timestamps
Using The Sleuth Kit (command line):
# Generate body file from NTFS image
fls -r -m / WKSTN-042.dd > bodyfile.txt
# Create timeline from body file
mactime -b bodyfile.txt -d > timeline.csv
# Filter timeline to investigation period
grep "2025-11-15" timeline.csv | sort > incident_timeline.csv
Step 5: Recover and Analyze Artifacts
Extract and analyze specific forensic artifacts:
- Prefetch files: Parse with PECmd to determine program execution times and loaded DLLs
- Event logs: Parse with EvtxECmd for Windows XML Event Logs
- Registry: Parse with RegRipper or Registry Explorer for user activity and system configuration
- Browser artifacts: Parse with Hindsight (Chrome), KAPE, or DB Browser for SQLite databases
- USB device history: Extract from SYSTEM\CurrentControlSet\Enum\USBSTOR registry key
- $MFT analysis: Parse with MFTECmd for detailed file metadata including $SI and $FN timestamps
Step 6: Document Findings
Compile a forensic analysis report suitable for legal proceedings:
- Maintain evidence integrity documentation (hash chain)
- Document every tool used and its version
- Record all analysis steps in a reproducible manner
- Present findings factually without conjecture
- Clearly distinguish between facts (observed data) and interpretations (analyst conclusions)
Key Concepts
| Term |
Definition |
| Forensic Image |
Bit-for-bit copy of storage media that preserves all data including deleted files and unallocated space |
| Write Blocker |
Hardware or software device that prevents any modification to evidence media during acquisition |
| E01 Format |
Expert Witness Format used by EnCase and FTK; supports compression, metadata, and built-in hash verification |
| File Carving |
Recovery technique that searches unallocated disk space for file headers and footers to reconstruct deleted files |
| MFT (Master File Table) |
NTFS metadata structure containing entries for every file and directory, including deleted entries |
| MAC Timestamps |
Modified, Accessed, Created timestamps on files used for timeline reconstruction (NTFS also has Entry Modified) |
| Prefetch |
Windows artifact recording program execution metadata; contains execution count, timestamps, and loaded DLLs |
| Unallocated Space |
Disk sectors not assigned to any file; may contain remnants of deleted files recoverable through carving |
Tools & Systems
- FTK Imager: Free forensic imaging tool supporting E01, AFF, and raw formats with built-in hash verification
- Autopsy: Open-source digital forensics platform built on The Sleuth Kit for comprehensive disk analysis
- KAPE (Kroll Artifact Parser and Extractor): Triage collection and parsing tool for rapid artifact extraction
- X-Ways Forensics: Commercial forensic analysis tool known for speed and efficiency on large datasets
- Eric Zimmerman's Tools: Suite of free forensic parsers (PECmd, MFTECmd, EvtxECmd, RegRipper) for Windows artifacts
Common Scenarios
Scenario: Employee Data Theft Investigation
Context: An employee submitted a resignation and is suspected of copying proprietary files to a USB drive before departing. HR requests a forensic investigation of the employee's workstation.
Approach:
- Image the workstation disk using FTK Imager with a write blocker
- Parse USB device history from SYSTEM registry to identify connected devices
- Examine ShellBags and Jump Lists for evidence of file browsing and copying to removable media
- Parse LNK files in the Recent folder to identify recently accessed documents
- Analyze browser history for personal cloud storage uploads (Google Drive, Dropbox)
- Build a timeline correlating USB connections with file access events
Pitfalls:
- Failing to image the drive before the IT department reassigns the workstation
- Not checking cloud storage browser history alongside USB evidence
- Overlooking Volume Shadow Copies that may contain earlier versions of deleted files
- Presenting analysis conclusions as fact without supporting evidence documentation
Output Format
DISK FORENSICS INVESTIGATION REPORT
=====================================
Case ID: INC-2025-1547
Evidence: EVD-001 (Samsung 870 EVO 500GB SSD)
Examiner: [Name]
Date of Analysis: 2025-11-16
EVIDENCE INTEGRITY
Source Hash: SHA-256: a1b2c3d4e5f6...
Image Hash: SHA-256: a1b2c3d4e5f6... (VERIFIED MATCH)
Write Blocker: Tableau T35u
PARTITION LAYOUT
Partition 1: NTFS 100 MB (System Reserved)
Partition 2: NTFS 465 GB (C: - OS and Data)
Partition 3: NTFS 500 MB (Recovery)
KEY FINDINGS
1. [Timestamp] - Malware dropper created in %TEMP% (update.exe)
2. [Timestamp] - Scheduled task "WindowsUpdate" created for persistence
3. [Timestamp] - Prefetch shows 14 executions of update.exe
4. [Timestamp] - USB device "Kingston DataTraveler" connected
5. [Timestamp] - 847 files copied to E:\ drive (ShellBag evidence)
RECOVERED ARTIFACTS
- 3 deleted malware samples recovered from unallocated space
- Browser history showing C2 panel access
- Registry evidence of disabled security software
TIMELINE
[Chronological event listing with timestamps and evidence sources]
TOOLS USED
- FTK Imager 4.7.1 (imaging)
- Autopsy 4.21.0 (analysis)
- PECmd 1.5.0 (prefetch parsing)
- MFTECmd 1.2.2 (MFT analysis)
1---2name: performing-disk-forensics-investigation3description: Conducts disk forensics investigations using forensic imaging, file system analysis, artifact recovery, and timeline reconstruction to support incident response cases. Utilizes tools such as FTK Imager, Autopsy, and The Sleuth Kit for evidence acquisition, deleted file recovery, and artifact examination. Activates for requests involving disk forensics, hard drive analysis, forensic imaging, file recovery, evidence acquisition, or digital forensic investigation.4license: Apache-2.05---67# Performing Disk Forensics Investigation89## When to Use1011- A security incident requires forensic analysis of a system's persistent storage12- Evidence preservation is needed for potential legal proceedings or HR investigations13- Deleted files, browser history, or application artifacts must be recovered14- A timeline of user or adversary activity must be reconstructed from file system metadata15- Malware persistence mechanisms stored on disk need identification and documentation1617**Do not use** for volatile evidence (running processes, network connections); use memory forensics with Volatility instead.1819## Detection Gaps & Validation2021- **Anti-forensics defeats a naive timeline:** `$STANDARD_INFO` (`$SI`) timestamps are trivially backdated by timestomping. Always compare `$SI` against `$FILE_NAME` (`$FN`) timestamps in the MFT (parse with MFTECmd) — a file whose `$SI` predates its `$FN` or sits outside the surrounding MFT record sequence is a timestomp tell. Corroborate with the USN Journal (`$J`) and `$LogFile`, which attackers rarely scrub.22- **"Deleted" rarely means gone:** check Volume Shadow Copies (`vssadmin list shadows`, mount with `vshadow`/Arsenal) for earlier file versions, recover from unallocated space via carving, and inspect NTFS alternate data streams (`dir /r`) for hidden payloads a file-name scan misses.23- **Execution evidence is corroborative, not singular:** Prefetch can be disabled (especially on SSDs/servers), so cross-validate program execution across Amcache, ShimCache/AppCompatCache, SRUM, UserAssist, and BAM/DAM. One artifact showing (or not showing) execution is a candidate; agreement across several is a confirmation.24- **Validate the image first:** a forensic conclusion is only as good as a verified acquisition — confirm source and image SHA-256 match and a write blocker was used before trusting any finding.25- **FP tuning / don't conclude clean until:** legitimate updaters and installers churn temp files and look malicious; baseline known-good software. Don't call a system clean until you've reconciled the MFT, USN Journal, shadow copies, and registry hives — log clearing (`1102`/`Windows.EventLogs.Cleared`) itself is a finding, not an absence of evidence.2627## Prerequisites2829- Forensic workstation with write-blocking hardware or software (Tableau T35u, Arsenal Image Mounter)30- Forensic imaging software: FTK Imager, Guymager, or dd with dcfldd31- Analysis platform: Autopsy, FTK (Forensic Toolkit), or X-Ways Forensics32- Sufficient storage (2-3x the target drive size for image plus working copies)33- Chain of custody forms and evidence bags for physical media34- Hash verification tools for evidence integrity (SHA-256)3536## Workflow3738### Step 1: Secure and Document the Evidence3940Before touching any storage media, establish chain of custody:4142- Photograph the system, noting serial numbers, labels, and cable connections43- Document the evidence source: device type, make, model, serial number, capacity44- Complete chain of custody form with date, time, handler name, and reason for acquisition45- Use a hardware write blocker when connecting the evidence drive to the forensic workstation4647```48Chain of Custody Record:49━━━━━━━━━━━━━━━━━━━━━━━50Case ID: INC-2025-154751Evidence ID: EVD-00152Description: Samsung 870 EVO 500GB SSD53Serial Number: S5XXNJ0R91234554Source Host: WKSTN-04255Acquired By: [Analyst Name]56Date/Time: 2025-11-15T16:30:00Z57Write Blocker: Tableau T35u (S/N: T35U-12345)58```5960### Step 2: Create a Forensic Image6162Produce a bit-for-bit copy of the evidence drive:6364**Using FTK Imager (Windows):**651. Connect evidence drive through write blocker662. File > Create Disk Image > Select source drive673. Choose E01 (Expert Witness Format) for compression and metadata684. Set destination path and evidence item information695. Enable "Verify images after they are created"706. Record source and image hash values7172**Using dcfldd (Linux):**73```bash74# Create raw image with hash verification75dcfldd if=/dev/sdb of=/evidence/WKSTN-042.dd \76 hash=sha256 hashlog=/evidence/WKSTN-042.sha256 \77 bs=4096 conv=noerror,sync7879# Verify image integrity80sha256sum /evidence/WKSTN-042.dd81```8283```84Imaging Summary:85Source Drive: /dev/sdb (Samsung 870 EVO 500GB)86Image File: WKSTN-042.E0187Image Format: E01 (Expert Witness)88Source Hash: SHA-256: a1b2c3d4e5f6...89Image Hash: SHA-256: a1b2c3d4e5f6... (MATCH)90Sectors Read: 976,773,16891Errors: 092Duration: 47 minutes93```9495### Step 3: Analyze File System Structure9697Open the forensic image in Autopsy or FTK and examine the file system:9899- Identify partition layout (MBR/GPT, NTFS/ext4/APFS partitions)100- Examine the Master File Table (MFT) for NTFS or inode tables for ext4101- Identify deleted files and directories (marked as unallocated but not yet overwritten)102- Recover files from unallocated space using file carving103- Examine alternate data streams (NTFS ADS) for hidden data104105**Key Windows Artifacts to Examine:**106```107User Activity:108- NTUSER.DAT (registry hive per user)109- UsrClass.dat (shellbags, file access history)110- Recent files: %AppData%\Microsoft\Windows\Recent\111- Jump lists: %AppData%\Microsoft\Windows\Recent\AutomaticDestinations\112113Program Execution:114- Prefetch: C:\Windows\Prefetch\*.pf115- Amcache: C:\Windows\appcompat\Programs\Amcache.hve116- SRUM: C:\Windows\System32\SRU\SRUDB.dat117- ShimCache: SYSTEM registry hive118119Persistence:120- Scheduled Tasks: C:\Windows\System32\Tasks\121- Startup folders: %AppData%\Microsoft\Windows\Start Menu\Programs\Startup\122- Services: SYSTEM registry hive123124Network:125- WLAN profiles: C:\ProgramData\Microsoft\Wlansvc\Profiles\126- Browser history: Chrome, Firefox, Edge profile directories127```128129### Step 4: Reconstruct the Timeline130131Build a comprehensive timeline of file system activity:132133**Using Autopsy Timeline Module:**1341. Generate timeline from all available sources (MFT, event logs, browser history, prefetch)1352. Filter to the investigation timeframe1363. Identify clusters of activity correlating with the incident1374. Document the sequence of attacker actions based on file creation, modification, and access timestamps138139**Using The Sleuth Kit (command line):**140```bash141# Generate body file from NTFS image142fls -r -m / WKSTN-042.dd > bodyfile.txt143144# Create timeline from body file145mactime -b bodyfile.txt -d > timeline.csv146147# Filter timeline to investigation period148grep "2025-11-15" timeline.csv | sort > incident_timeline.csv149```150151### Step 5: Recover and Analyze Artifacts152153Extract and analyze specific forensic artifacts:154155- **Prefetch files**: Parse with PECmd to determine program execution times and loaded DLLs156- **Event logs**: Parse with EvtxECmd for Windows XML Event Logs157- **Registry**: Parse with RegRipper or Registry Explorer for user activity and system configuration158- **Browser artifacts**: Parse with Hindsight (Chrome), KAPE, or DB Browser for SQLite databases159- **USB device history**: Extract from SYSTEM\CurrentControlSet\Enum\USBSTOR registry key160- **$MFT analysis**: Parse with MFTECmd for detailed file metadata including $SI and $FN timestamps161162### Step 6: Document Findings163164Compile a forensic analysis report suitable for legal proceedings:165166- Maintain evidence integrity documentation (hash chain)167- Document every tool used and its version168- Record all analysis steps in a reproducible manner169- Present findings factually without conjecture170- Clearly distinguish between facts (observed data) and interpretations (analyst conclusions)171172## Key Concepts173174| Term | Definition |175|------|------------|176| **Forensic Image** | Bit-for-bit copy of storage media that preserves all data including deleted files and unallocated space |177| **Write Blocker** | Hardware or software device that prevents any modification to evidence media during acquisition |178| **E01 Format** | Expert Witness Format used by EnCase and FTK; supports compression, metadata, and built-in hash verification |179| **File Carving** | Recovery technique that searches unallocated disk space for file headers and footers to reconstruct deleted files |180| **MFT (Master File Table)** | NTFS metadata structure containing entries for every file and directory, including deleted entries |181| **MAC Timestamps** | Modified, Accessed, Created timestamps on files used for timeline reconstruction (NTFS also has Entry Modified) |182| **Prefetch** | Windows artifact recording program execution metadata; contains execution count, timestamps, and loaded DLLs |183| **Unallocated Space** | Disk sectors not assigned to any file; may contain remnants of deleted files recoverable through carving |184185## Tools & Systems186187- **FTK Imager**: Free forensic imaging tool supporting E01, AFF, and raw formats with built-in hash verification188- **Autopsy**: Open-source digital forensics platform built on The Sleuth Kit for comprehensive disk analysis189- **KAPE (Kroll Artifact Parser and Extractor)**: Triage collection and parsing tool for rapid artifact extraction190- **X-Ways Forensics**: Commercial forensic analysis tool known for speed and efficiency on large datasets191- **Eric Zimmerman's Tools**: Suite of free forensic parsers (PECmd, MFTECmd, EvtxECmd, RegRipper) for Windows artifacts192193## Common Scenarios194195### Scenario: Employee Data Theft Investigation196197**Context**: An employee submitted a resignation and is suspected of copying proprietary files to a USB drive before departing. HR requests a forensic investigation of the employee's workstation.198199**Approach**:2001. Image the workstation disk using FTK Imager with a write blocker2012. Parse USB device history from SYSTEM registry to identify connected devices2023. Examine ShellBags and Jump Lists for evidence of file browsing and copying to removable media2034. Parse LNK files in the Recent folder to identify recently accessed documents2045. Analyze browser history for personal cloud storage uploads (Google Drive, Dropbox)2056. Build a timeline correlating USB connections with file access events206207**Pitfalls**:208- Failing to image the drive before the IT department reassigns the workstation209- Not checking cloud storage browser history alongside USB evidence210- Overlooking Volume Shadow Copies that may contain earlier versions of deleted files211- Presenting analysis conclusions as fact without supporting evidence documentation212213## Output Format214215```216DISK FORENSICS INVESTIGATION REPORT217=====================================218Case ID: INC-2025-1547219Evidence: EVD-001 (Samsung 870 EVO 500GB SSD)220Examiner: [Name]221Date of Analysis: 2025-11-16222223EVIDENCE INTEGRITY224Source Hash: SHA-256: a1b2c3d4e5f6...225Image Hash: SHA-256: a1b2c3d4e5f6... (VERIFIED MATCH)226Write Blocker: Tableau T35u227228PARTITION LAYOUT229Partition 1: NTFS 100 MB (System Reserved)230Partition 2: NTFS 465 GB (C: - OS and Data)231Partition 3: NTFS 500 MB (Recovery)232233KEY FINDINGS2341. [Timestamp] - Malware dropper created in %TEMP% (update.exe)2352. [Timestamp] - Scheduled task "WindowsUpdate" created for persistence2363. [Timestamp] - Prefetch shows 14 executions of update.exe2374. [Timestamp] - USB device "Kingston DataTraveler" connected2385. [Timestamp] - 847 files copied to E:\ drive (ShellBag evidence)239240RECOVERED ARTIFACTS241- 3 deleted malware samples recovered from unallocated space242- Browser history showing C2 panel access243- Registry evidence of disabled security software244245TIMELINE246[Chronological event listing with timestamps and evidence sources]247248TOOLS USED249- FTK Imager 4.7.1 (imaging)250- Autopsy 4.21.0 (analysis)251- PECmd 1.5.0 (prefetch parsing)252- MFTECmd 1.2.2 (MFT analysis)253```