Security · Investigation

Digital Forensics

Establishing what happened, in what order, with evidence that survives scrutiny.

Security
01

Answering Four Questions

Forensics exists to establish what happened, when, how, and what was affected — reliably enough that the answer holds up in an incident review, a regulatory submission or a court.

The instinct to "clean it up and get back online" destroys the evidence needed to understand the breach. Preserve first, then remediate — a rebuilt host answers no questions about how it was compromised.

That tension is real and needs a decision made in advance: how long the business will tolerate an affected system staying isolated but intact before it is wiped. Deciding during the incident means the pressure wins.

02

Order Of Volatility

Evidence disappears at different rates. Collect in order of how quickly it is lost, or it is gone before you reach it.

PrioritySourceLifetime
1CPU registers and cacheNanoseconds
2Memory — running processes, connections, keysUntil power off
3Network state and active sessionsSeconds to minutes
4Running system state and temp filesUntil reboot
5Disk contentsUntil overwritten
6Remote and archived logsRetention period
Pulling the power destroys memory, which is where in-memory-only malware, decryption keys and live connections live. Capture memory before considering shutdown.
03

Acquisition & Chain Of Custody

Work from a copy, never the original, and be able to prove the copy is faithful.

PracticeWhy
Bit-for-bit image, not a file copyDeleted data and slack space matter
Hash before and afterProves the image was not altered
Write blocker on the sourcePrevents the acquisition changing the evidence
Analyse the copy onlyThe original stays pristine for verification
Documented chain of custodyWho held it, when, and why — unbroken
Chain of custody is what makes evidence admissible. A perfect technical finding on an image nobody can account for the handling of is worth very little in a legal or regulatory context.

In cloud environments the equivalents are snapshots, immutable audit logs and preserved instance metadata — with the same discipline of copying, hashing and documenting.

04

Timeline Analysis

The core technique is building a single ordered timeline from every source — filesystem timestamps, event logs, application logs, network flows, cloud audit trails — and reading the story it tells.

Watch forMeaning
First anomalous eventCandidate for initial access
Gaps in loggingDeliberate clearing, or a collection failure
Timestamps out of sequenceAnti-forensics, or clock skew between sources
Activity outside working hoursAutomation, or an adversary in another timezone
Lateral movementThe same account appearing on new hosts
Normalise every timestamp to UTC before correlating. Mixed local times across sources is the most common way an investigator constructs a confident and wrong sequence of events.
05

Reporting Findings

IncludeDetail
Scope and methodWhat was examined and how it was acquired
TimelineThe sequence, with the evidence for each step
ImpactWhat data and systems were actually affected
Root causeHow they got in, stated plainly
ConfidenceWhat is proven, what is inferred, what is unknown
RemediationWhat must change so this specific path closes
Separate fact from inference explicitly. "The account authenticated from this address at 02:14" is a fact; "the attacker used stolen credentials" is an inference — labelling them the same way is how an investigation misleads the people relying on it.
06

Interview Questions

What is the order of volatility?

Collect evidence in order of how fast it disappears: registers and cache, memory, network state, running system state, disk, then archived logs.

Why capture memory before shutting a machine down?

Memory holds running processes, live connections, decryption keys and malware that never touches disk. Powering off destroys all of it.

What is chain of custody and why does it matter?

A documented record of who held the evidence, when and why. Without it, technically sound findings carry little weight in a legal or regulatory setting.

Why image rather than copy files?

A bit-for-bit image preserves deleted data, slack space and metadata that a file copy loses — and hashing it proves the copy was not altered.

What is the most common timeline mistake?

Correlating timestamps in mixed local timezones. Normalising everything to UTC first is what prevents a confident but wrong sequence of events.

How should uncertainty appear in a forensic report?

Explicitly. Facts, inferences and unknowns must be labelled differently, because decisions are made on the report and inference presented as fact misleads them.

Quick Quiz

1. The most volatile evidence is…
2. Analysis should be performed on…
3. Chain of custody establishes…
4. Before correlating timestamps you should…
5. A forensic report must distinguish…