Digital Forensics Basics
preserve first, analyze second, and keep notes the whole way
Digital forensics is the careful collection and analysis of digital evidence to find out what happened, in a way that stands up to scrutiny. It is used in incident response, investigations, disputes and legal cases.[1]
Core principles
- Preserve the evidence. Do not change the original. Work on forensic copies.
- Document everything: what you did, when, with which tools and why.
- Maintain chain of custody: a record of who handled each item, when and why, from collection to presentation.
- Be repeatable. Another examiner using the same method should reach the same results.
- Stay within authority. Collect only what you are authorized to, with legal and HR involvement where needed.
Order of volatility
Some evidence disappears in seconds. Collect the most fleeting first:[2]
- CPU state and registers (rarely practical)
- Memory (RAM): running processes, network connections, encryption keys, malware that only lives in memory
- Network state and routing information
- Running processes and logged-in users
- Disk contents
- Remote logs and monitoring data
- Backups and archives
This is why "pull the plug" is not always the answer: it can destroy valuable memory evidence. The choice depends on the case: sometimes isolating from the network and capturing memory first is better.
Making a forensic image
A forensic image is a bit-for-bit copy of a drive. Use a write blocker (hardware or software) so the source is not altered, then calculate a hash (such as SHA-256) of both the original and the copy. Matching hashes show the copy is exact, and you analyze the copy only.
What examiners look for
- File system artifacts: created, modified and accessed times, deleted files, hidden data.
- Operating system artifacts: Windows event logs, registry, prefetch and recent-file records, scheduled tasks; on Linux, shell history and logs.
- Browser and email data.
- Memory contents: processes, injected code, network connections.
- Network and cloud logs.
- A timeline that merges all of these into one sequence of events.
Common tools
Imaging utilities such as FTK Imager, analysis suites such as Autopsy, memory tools such as Volatility, and timeline tools. Commercial and open-source options exist. The method matters more than the brand.
Pitfalls
Working on the original, forgetting to record times and time zones, missing chain of custody, trusting a compromised system's own tools, and drawing conclusions the evidence cannot support. State what you can prove, and what you cannot.
Sources
Test yourself
My notes
Private — saved only on this device, never sent anywhere.