Digital Forensics

Digital forensics is the collection and analysis of evidence from computers, phones, networks and cloud accounts to work out what happened in a cyber incident, using methods that preserve the evidence so it holds up legally.

IntermediateCategory: Monitoring, testing and incident response

Also called: computer forensics, cyber forensics, DFIR, digital forensics and incident response

What is digital forensics?

After a cyberattack, the questions pile up. How did they get in? How long were they there? What did they take? Are they still inside? Digital forensics answers those questions from evidence: disk images, memory captures, logs, emails and cloud audit trails.

NIST defines it as applying computer science and investigative procedures to digital evidence, following chain of custody, validated tools and repeatable methods. That rigor matters because findings may end up in court, in front of regulators or in an insurance claim. In practice, forensics and incident response are so closely linked that the field is often called DFIR.

How it works

NIST's guide to forensics in incident response, SP 800-86, describes four phases:

  1. Collection: identify and gather data sources while preserving their integrity, for example by taking a forensic image of a drive and recording a hash of it.
  2. Examination: process the data to pull out what's relevant, such as log entries, deleted files or browser history.
  3. Analysis: piece it together into a timeline of what the attacker did.
  4. Reporting: explain findings, how they were reached and what should be done next.

Why it matters for businesses

  • Breach notification: forensics often decides whether personal data was actually accessed, which determines your legal duty to notify customers.
  • Insurance: cyber insurers typically appoint forensic firms and rely on their reports.
  • Eradication: without knowing how attackers got in, you can't be sure you've locked them out.

How to preserve evidence

  1. Don't wipe, reimage or reinstall affected machines before investigators say so.
  2. Isolate rather than power off, since memory can hold valuable evidence.
  3. Keep logs. Turn on and retain logging for email, cloud apps, firewalls and endpoints before you need it. Many investigations stall because logs were never kept.
  4. Write down everything you observe and do, with times.

An incident response firm on retainer can start forensic work within hours.

Related terms

Sources

  1. SP 800-86: Guide to Integrating Forensic Techniques into Incident Response (NIST)
  2. Digital forensics (glossary) (NIST)

Drafted with AI assistance, then edited and fact-checked by a person. How we use AI.