Digital Forensics
Order of volatility, what only memory will tell you, forensics in cloud environments where you never get the disk, and what absence of evidence is actually worth.
Forensics is the discipline of recovering what happened from what remains. Its constraint is that evidence decays continuously — some of it in seconds — and that most of the decay is caused by responders rather than adversaries.
Order of volatility
Section titled “Order of volatility”Collect in order of how fast the evidence disappears. Getting this wrong destroys the most informative material first:
- CPU registers and cache — gone instantly, rarely practical
- Memory — lost on power-off; contains what exists nowhere else
- Network state — active connections, ARP, routing; seconds to minutes
- Running processes — the process list dies with the process
- Disk — durable, survives reboot
- Logs shipped off-host — durable, subject to retention
- Backups and archives — durable, slow to access
The practical implication reverses the instinct of most responders: capture memory before isolating the host, because network isolation frequently prompts a reboot, and a reboot destroys tier 2 entirely.
Memory forensics
Section titled “Memory forensics”Memory contains a category of evidence that exists nowhere else: injected code and fileless malware that never touched disk, decrypted configuration and keys, credentials cached by the OS, network connections already closed, and the command lines of processes that have since exited.
Volatility is the standard toolkit. The workflow is consistent regardless of case: identify the profile, list processes and look for lineage that shouldn’t exist, examine network artefacts, hunt injected regions, and extract suspicious sections for malware analysis.
The recurring finding is a process whose parent is wrong — a browser spawning a shell, a document reader spawning a script interpreter. Lineage is usually more diagnostic than any individual binary.
Disk forensics
Section titled “Disk forensics”Slower and durable. What it yields that memory does not: execution artefacts (prefetch, shimcache, amcache on Windows), file system timestamps across multiple attributes, deleted-but-recoverable content, and persistence mechanisms.
Two cautions worth internalising. Timestamps are attacker-modifiable — timestomping is cheap, so corroborate across multiple timestamp attributes and independent sources rather than trusting one. And write-blocking matters when the evidence may be contested; mounting a volume read-write to “just check something” is how a defensible investigation stops being defensible.
Cloud and SaaS forensics
Section titled “Cloud and SaaS forensics”The largest practical shift in the discipline, because the assumptions underneath disk forensics often don’t hold.
- There may be no host. Serverless and managed services expose no disk. The evidence is control plane logs and whatever the service records — and if that wasn’t configured in advance, it does not exist retroactively.
- Snapshot before anything terminates. Autoscaling destroys instances on its own schedule, so evidence disappears without anyone deciding to destroy it.
- Identity is the primary artefact. Sign-in logs, token issuance, role assumption chains and consent grants carry the story that process lists carry on-premise.
- SaaS gives you what the vendor logs. Not what you’d like — audit log depth and retention vary enormously, and are often a licensing tier rather than a technical limit.
The uncomfortable consequence: cloud forensic capability is decided months earlier by pipeline and architecture choices. By incident time, your evidence set is already fixed.
Anti-forensics, and what absence means
Section titled “Anti-forensics, and what absence means”Adversaries clear logs, timestomp, use fileless techniques, and delete tooling. This creates the analytical trap the discipline most needs discipline about: absence of evidence is ambiguous, and reading it as absence of activity is how investigations conclude wrongly.
An empty log can mean nothing happened, logging wasn’t enabled, the data aged out, the event went somewhere you didn’t look, or someone cleared it. Those demand different responses, and distinguishing them is often possible: a gap in a log with continuous coverage either side is itself evidence, and log clearing usually leaves its own artefact.
State the ambiguity explicitly in findings. “No evidence of exfiltration” and “evidence of no exfiltration” are entirely different claims, and only one of them is usually available. That distinction is confidence language doing real work under pressure.
Where this connects
Section titled “Where this connects”Acquisition sequence is constrained by response operations — containment and preservation compete, and the order matters. What can be recovered at all is set by pipeline and architecture long beforehand. Extracted samples go to malware analysis, and the artefacts assemble into a timeline.