Digital Forensics Fundamentals
Overview — A Blue Team & SOC introduction to digital forensics: the four-phase NIST methodology (collection, examination, analysis, reporting), the main sub-disciplines, safe evidence acquisition (authorisation, chain of custody, write blockers), disk versus memory images on Windows, and a small case where document metadata (pdfinfo) and photo EXIF data (exiftool) identify an author, a street and a camera.
| Platform | TryHackMe |
| Category | Blue Team & SOC |
| Difficulty | Easy |
| Room | Digital Forensics Fundamentals |
Task 1 — Introduction to Digital Forensics
Forensics applies scientific methods to establish what happened in a crime. Digital forensics does this for crimes committed on or with digital devices. The room's scenario: police raid a suspect's home under a warrant and seize a laptop, phone, hard drive and USB stick, then hand them to a forensics team. In their lab the team recovers plans of the target, escape routes, notes about security controls, media from earlier offences and chat records. None of it is proof on its own, but together it forms a timeline a court can follow, provided the evidence was collected and handled correctly. That "provided" is the whole point of the room: the procedures matter as much as the tools.
Q: Which team was handed the case by law enforcement?
A: digital forensics
Task 2 — Digital Forensics Methodology
NIST describes a general forensic process in four phases that applies regardless of the device:
Collection -> Examination -> Analysis -> Reporting
acquire & filter and correlate and document method,
document extract what build a findings and
evidence matters timeline recommendations
- Collection — identify every source of data (computers, cameras, USB media), acquire it without altering the original, and document each item.
- Examination — the collected volume is usually huge, so filter it down: only one user's profile, only files from a given date range, and so on.
- Analysis — correlate the filtered data from multiple sources to draw conclusions, ideally as a chronological account of relevant activity.
- Reporting — write up methodology and findings, with an executive summary, because readers range from police to management.
Forensics also splits by evidence type, each with its own tooling:
| Type | Focus |
|---|---|
| Computer | PCs and laptops, the most common source |
| Mobile | Call records, messages, GPS locations, app data |
| Network | Whole-network evidence, mostly traffic logs |
| Database | Unauthorised access, modification or exfiltration of stored data |
| Cloud | Data on cloud infrastructure; harder because the investigator has less direct access and visibility |
| Phishing and fraud investigation via headers and content |
Q: Which phase of digital forensics is concerned with correlating the collected data to draw any conclusions from it?
A: Analysis
Q: Which phase of digital forensics is concerned with extracting the data of interest from the collected evidence?
A: Examination
Task 3 — Evidence Acquisition
Three practices apply whatever the device:
- Proper authorisation — collect only with the approval of the relevant authority. Evidence gathered without it can be ruled inadmissible, and forensic data is often private and sensitive.
- Chain of custody — a formal record of everything that happens to each item: a description, who collected it, when, where it is stored, and who accessed it and when. It gives accountability (if something goes missing or changes, you know who held it) and lets you demonstrate the integrity of the evidence in court. NIST publishes a sample form.
- Write blockers — hardware (or software) that lets a forensic workstation read a drive but refuses all writes. Without one, the operating system may touch the disk, for example updating file timestamps, which silently corrupts the evidence and can lead to wrong conclusions.
In practice, investigators also hash the acquired image (SHA-256 is a common choice) and record the digest in the chain of custody, so anyone can later verify the copy is unchanged.
Q: Which tool is used to ensure data integrity during the collection?
A: write blocker
Q: What is the name of the document that has all the details of the collected digital evidence?
A: Chain of custody
Task 4 — Windows Forensics
For Windows machines two kinds of bit-by-bit forensic image are taken:
- Disk image — everything on the storage device (documents, media, browser history). It is non-volatile and survives a reboot.
- Memory image — a copy of RAM, holding running processes, open files and live network connections. It is volatile, so it must be captured first; powering the machine off destroys it. This is the order-of-volatility principle.
| Tool | Purpose |
|---|---|
| FTK Imager | GUI tool to create disk images in several formats; can also browse an image |
| Autopsy | Open-source platform that analyses an imported disk image: keyword search, deleted-file recovery, file metadata, extension-mismatch detection |
| DumpIt | Command-line memory acquisition on Windows |
| Volatility | Open-source memory analysis framework; each artifact (processes, connections, and so on) is examined with a plugin; supports Windows, Linux, macOS and Android images |
Q: Which type of forensic image is taken to collect the volatile data from the operating system?
A: Memory image
Task 5 — Practical Example of Digital Forensics
The case: a pet cat has been "kidnapped" and the kidnapper sent a ransom letter as a Word document, supplied here as a PDF plus the image extracted from it. Even a plain text file records creation and modification times; richer formats such as Word and PDF embed far more (author, software, dates), and exporting to PDF usually preserves much of it. The case files sit in a lab directory on the AttackBox (the room's introdigitalforensics folder).
Document metadata with pdfinfo
pdfinfo (from the poppler-utils package) prints a PDF's title, subject, author, creator, producer and dates:
pdfinfo ransom-letter.pdf
Title: Pay NOW
Subject: We Have Gato
Author: Ann Gree Shepherd
Creator: Microsoft® Word 2016
Producer: Microsoft® Word 2016
CreationDate: Wed Feb 23 10:10:36 2022 CET
Pages: 1
The Author field names the account holder that created the file, and the Creator shows the software, a lead that can be correlated with other evidence. Remember that metadata can be edited, so it is a pointer, not proof.
Q: Using pdfinfo, find out the author of the attached PDF file (ransom-letter.pdf).
A: Ann Gree Shepherd
Photo EXIF data with exiftool
EXIF is the standard for metadata embedded in photos: camera or phone model, capture date and settings, and, on devices with GPS, the coordinates where the picture was taken. exiftool (package libimage-exiftool-perl on Debian/Kali) reads it all:
exiftool letter-image.jpg
exiftool letter-image.jpg | grep -i "GPS Position"
exiftool letter-image.jpg | grep -i model
GPS Position : 51 deg 30' 51.90" N, 0 deg 5' 38.73" W
Camera Model Name : Canon EOS R6
To use the coordinates in a map search, convert ExifTool's notation to the degree-minute-second format that mapping sites accept: replace deg with ° and drop the spaces, giving 51°30'51.9"N 0°05'38.7"W. Searching that position reveals the street where the photo was taken.
Q: Using exiftool or any similar tool, try to find where the kidnappers took the image they attached to their document. What is the name of the street?
A: Milk Street
Q: What is the model name of the camera used to take this photo?
A: Canon EOS R6
Defensive note: the same GPS tags that solve this case are a privacy leak when you post your own photos. Most social platforms strip EXIF on upload, but sending an original file by email or chat often does not.
Key takeaways
- NIST's four phases: collection, examination, analysis, reporting.
- Evidence is only useful if it is lawful and intact: authorisation, a chain of custody record, write blockers and hash verification.
- Capture volatile data (RAM) before anything else, then take the disk image.
- Know the basic Windows toolset: FTK Imager and Autopsy for disks, DumpIt and Volatility for memory.
- Metadata is a rich, cheap source of leads:
pdfinfofor documents,exiftoolfor images, always treated as a lead rather than proof.