Disk Forensics
What this is: Analysing disk images to extract evidence, recover deleted files, and reconstruct timelines.
Competition relevance: Digital forensics and incident response. Core forensics skill using Autopsy, FTK Imager, and command-line tools.
Why it matters: Disk forensics is central to most forensics tasks. Flags are often in deleted files, slack space, or filesystem metadata.
WSOS 2026 alignment: This topic directly supports Section 8: Investigation and digital forensics (examining digital evidence from storage media).
Competition area: Core to the digital forensics and incident response area, where you analyse compromised systems by examining disk images for indicators of compromise, deleted evidence, and hidden data.
Offline competence: Autopsy, Foremost, Sleuth Kit, and PhotoRec all function offline. Use man foremost, man fls, and Autopsy’s built-in help. Pre-load Autopsy case files and disk images locally. File carving and timeline analysis require no network access.
Competency Matrix
Section titled “Competency Matrix”| Level | Expectation |
|---|---|
| Regional | Use Autopsy to extract deleted files. Basic keyword searching. File recovery with Foremost/PhotoRec. |
| National | Filesystem analysis (MFT, journal). Timeline creation. Slack space examination. Advanced Autopsy modules. |
| Squad/Team Selection | Manual filesystem parsing. Encrypted volume analysis. Artifact correlation across multiple images. |
| International | Advanced anti-forensics detection. Custom parser development. Multi-image correlation and attribution. |
Technical Content
Section titled “Technical Content”Autopsy Basics
Section titled “Autopsy Basics”Starting Autopsy:
# Launch Autopsyautopsy
Creating a case:
- New Case → Enter case name and directory
- Add Host → Host name
- Add Image → Browse to disk image (.dd, .E01, .vmdk)
- Image Type: Disk / Partition
- Import Method: Symlink (faster)
Essential analysis steps:
-
File Analysis:
- Expand Image → Volume → Root directory
- Check “Deleted Files” directory (red X icon)
- Sort by Modified/Accessed/Created times
-
Keyword Search:
- Keyword Search tab
- Add keywords (flag, password, secret, etc.)
- Search → View results
-
File Type Analysis:
- File Type → Images / Documents / Archives
- Look for hidden files (e.g., .jpg in /etc)
-
Timeline:
- Tools → Timeline → Generate
- View file activity by date/time
Extracting files:
- Right-click file → Export
- Save to case directory for analysis
Competition context: Flags are often in deleted files, hidden files, or files with wrong extensions. Check everything.
File Carving
Section titled “File Carving”Foremost (file recovery):
# Recover all file typesforemost -i diskimage.dd -o output/
# Recover specific typesforemost -t jpg,png,pdf -i diskimage.dd -o output/
# Check output directoryls output/jpg/ # Recovered JPG filesPhotoRec (alternative):
# Interactive modephotorec diskimage.dd
# Navigate through menus:# - Select partition# - Select file types to recover# - Choose output directoryScalpel (faster, config-based):
# Edit /etc/scalpel/scalpel.conf to enable file types# Uncomment lines for jpg, png, pdf, etc.
# Run scalpelscalpel -b -o output/ diskimage.dd
# -b = carve without headers (more recovery, more false positives)Competition context: Deleted images/documents often contain flags. Carve everything, then grep for flag formats.
MFT Analysis
Section titled “MFT Analysis”Master File Table (NTFS):
# Extract MFT using icat (Sleuth Kit)icat diskimage.dd 0 > mft.raw
# Parse MFT with analyzeMFTanalyzeMFT.py -f mft.raw -o mft.csv
# View in spreadsheetlibreoffice mft.csv
# Look for:# - Deleted files (still in MFT)# - Timestamp anomalies# - Alternate Data Streams (ADS)Finding Alternate Data Streams:
# In Autopsy, enable "Hash Lookup" module# ADS shows as separate file entries with :stream_name
# Command-line (Windows):dir /R C:\ # Shows ADS
# Extract ADSmore < file.txt:hidden.txtSlack Space Analysis
Section titled “Slack Space Analysis”What is slack space: Unused space between end of file and end of cluster. May contain remnants of previous files.
Analyzing slack:
# Using Sleuth Kitblkls -s diskimage.dd > slack.raw
# Search slack for keywordsstrings slack.raw | grep -i flag
# Hex analysisxxd slack.raw | lessFilesystem Timeline
Section titled “Filesystem Timeline”Creating timeline with Sleuth Kit:
# Generate body file (all timestamps)fls -r -m C: diskimage.dd > body.txt
# Create timelinemactime -b body.txt -d > timeline.csv
# Filter by datemactime -b body.txt -d 2024-01-01..2024-01-31 > january_timeline.csvAutopsy timeline:
- Tools → Timeline
- Filter by date range
- Group by file type or directory
- Export to CSV for analysis
Competition Strategy & Marking
Section titled “Competition Strategy & Marking”What gets marked:
- Deleted files recovered (screenshot of file content)
- Flags extracted from images (exact flag value)
- Timeline analysis (sequence of events)
- Evidence documentation (file paths, timestamps, hashes)
Evidence and reporting requirements:
- Screenshot of Autopsy showing file location in directory tree with full path
- Extracted file with flag visible (screenshot of file content)
- MD5/SHA1 hash of evidence file (calculated with
md5sumor Autopsy) - Written explanation of how file was found (method: deleted file recovery, carving, keyword search, etc.)
- Timeline of file activity showing creation, modification, and access times
- Inode number and file offset for forensic precision
- Export of recovered files with chain of custody documentation
- Keyword search terms used and number of hits
- Clear naming:
disk_deleted_flag_txt_recovered.png,disk_carved_image_with_flag.png
Time allocation:
- Autopsy setup and image import: 5 minutes
- Deleted file recovery: 20-30 minutes
- File carving: 15-20 minutes
- Keyword search and analysis: 20-30 minutes
Workflow:
- Import image into Autopsy
- Run keyword search for common flag patterns
- Check deleted files directory
- Carve unallocated space
- Analyse timestamps for suspicious activity
- Document findings
Time-boxed drill suggestion: 90-minute disk forensics sprint: Given a disk image (.dd or .E01), import into Autopsy, run keyword searches for “flag”, “password”, “secret”, recover all deleted files, carve unallocated space with Foremost for images/documents, analyse MFT for deleted entries, create a filesystem timeline, identify at least 3 flags, and document all findings with screenshots, hashes, and written explanations.
False Flags / Wrong Paths
Section titled “False Flags / Wrong Paths”Practice Checklist
Section titled “Practice Checklist”- Can import disk image into Autopsy
- Can navigate filesystem and locate deleted files
- Can perform keyword searches
- Can extract files and calculate hashes
- Can use Foremost/PhotoRec to carve deleted files
- Can analyse MFT for deleted entries
- Can create filesystem timeline
- Can identify Alternate Data Streams
- Can document chain of custody for evidence
- Can complete full disk analysis in under 90 minutes
References
Section titled “References”- Regional Roadmap: Digital forensics
- National Roadmap: Digital forensics
- Cheat Sheet: Forensics Tools (planned)
Unofficial study guide, not endorsed by WorldSkills International or WorldSkills UK. Topics are example areas to prepare for, not the content of any test project: competition tasks are confidential, competitions are closed book, and formats change between competitions. More about this site.