Digital Forensics

Learning outcomes:

  • Explain what computer forensics is, and where it's used
  • Identify types of digital evidence, including volatile data
  • Describe the steps of an investigation, including making a forensically sound copy
  • Describe how a CERT or CSIRT handles an incident and what happens after it

Would you like to download my PowerPoint to follow along?

  • What is computer forensics?
  • Where it's used
    • Criminal investigations
    • Civil court cases
    • Corporate IT
  • Careers in computer forensics
    • Police and law enforcement
    • Government agencies
    • Audit and compliance services
    • Corporate IT
  • Digital evidence types
    • Disk drives and secondary storage
    • Cell phones
    • Other: printers, game systems, security alarms, and IoT
    • Volatile data, which is lost when the power goes off. Order of volatility: collect the evidence that disappears fastest first. Memory first, then temporary files, then disk, then logs kept somewhere else, then backups and archives (RFC 3227)
  • Steps of an investigation
    • Identify, collect, and preserve evidence
    • Evidence analysis
    • Reporting and testimony
  • If it happens at work: first steps
    • Don't turn it off. Unplug the network cable instead. Turning it off wipes evidence in memory, and CISA says to power down only if you can't disconnect it (CISA #StopRansomware guide)
    • Don't poke around or open files. That changes the evidence
    • Write down what you saw and what you did, with times
    • Tell your manager or incident response team, and don't delete anything
  • Chain of custody
    • A record of who had the evidence, when, and what they did with it
    • Every hand-off gets written down, from the moment it is collected until court
    • Without it, the other side can argue the evidence was changed, and it may not hold up in court
    • Hashes help prove a copy hasn't changed. Chain of custody proves who handled it
  • Duplication and authentication
    • A forensically correct copy: a drive image or bit stream image. The forensic image formats used today are E01 (Expert Witness Format), which stores the image along with case details and hashes, or a raw bit-for-bit (dd) image
    • Historical note: older guides used ISO images for disk copies. ISO images were made for CDs and DVDs, and aren't used for forensic copies today.
    • Write blockers, and special software and hardware for duplication
    • Forensically wiped drives
    • Hashes to prove the copy matches the original
  • CERT and CSIRT teams
    • Dealing with an incident
    • Team members, including stakeholders and the C-suite
    • Prioritizing: shut it all down, or work around it?
    • NIST updated its incident response guide in April 2025. The new version ties incident response to the whole security program (NIST SP 800-61 Rev. 3)
  • Evidence in the cloud: logs
    • In the cloud, a lot of the evidence is logs: who logged in, from where, and what they touched
    • Logs only help if they were turned on, and kept long enough
    • The 2023 Microsoft email hack (Week 9) was first caught by the US State Department, using logs only premium customers had. Afterward, Microsoft gave every customer more logs for free, and kept them for 180 days instead of 90 (Microsoft, CISA)
  • After an incident
    • Identify and preserve evidence: forensic copies, logs, and histories
    • Analysis: what happened, why, damage control, and data loss
    • Reports and documentation
    • Prevention: changes to structure, policy, or personnel
    • Example: after its July 2026 breach, Hugging Face published a post-mortem covering what happened, when, what was accessed, and what it changed (Cloud Security Alliance)

Suggested Activities and Discussion Topics:

  • Discussion: what devices in your home could hold digital evidence?
  • Discussion: why does a forensic investigator work from a copy instead of the original drive?
  • Activity: look up a court case that used digital evidence. What kind of evidence was it, and how was it collected?
  • Follow the instructions on this PDF (accessible HTML version)

Would you like to see some more classes? View all classes