Acquisition Order of Volatility
The evidence you most need is the evidence that disappears fastest. The contents of
RAM, the live network connections, the running process list, the routing and ARP
tables — all of it is gone the instant someone pulls power or, almost as bad, starts
poking at the box to "see what's going on." Disk survives; volatile state does not. So
the first law of acquisition is not "make a copy" — it is collect in order of
volatility, most-perishable first, because the order is the difference between having
the evidence and having overwritten it.
The second law follows from the first: the act of collecting alters the scene.
Mounting a filesystem writes access times; running a tool allocates memory over the
very RAM you wanted; opening a file changes its metadata. You cannot observe the
system without touching it, so the discipline is to minimize and record your
footprint, not to pretend you left none.
The two failure modes that ruin evidence before analysis even begins:
- The "quick look." An analyst logs in, browses the disk, runs a few commands,
reboots to "check something" — and overwrites the memory, the timestamps, and the
free space that held the answer. The investigation is now archaeology of the
investigator's own footprints.
- Disk-first. Imaging the drive (slow, non-volatile, patient) while the live
connections to the C2, the injected process, and the decryption keys sitting in RAM
quietly evaporate. You preserved the part that was in no hurry to leave.
Composes with the library:
- finding-custody — the chain of custody begins at the moment of collection, not later; this skill is where custody starts
- tamper-evident-audit-chain — hash at the source so a verifier can later prove the image was not altered
- incident-timeline-reconstruction — the timeline is built from what you collect; collect out of order and the timeline has holes you caused
- honest-degradation — evidence collected imperfectly is a WARN on that evidence, stated, not a silent gap presented as clean
- containment-under-uncertainty — the "pull the plug now" containment instinct collides with acquisition; sequence them deliberately
Step 1 — Order the targets by volatility before you touch anything
Write the collection order most-perishable to least, and follow it:
- CPU state, memory (RAM) — the most volatile and often the richest: injected code,
decryption keys, cleartext credentials, unpacked malware, network buffers.
- Live network state — active connections, listening ports, ARP/routing tables,
DNS cache: the map of what the box is talking to right now.
- Running processes and open handles — the process tree, loaded modules, open
files, which the reboot will erase.
- Ephemeral disk state — temp files, swap/pagefile, unallocated space that the next
write may reuse.
- Persistent disk — the full image; non-volatile, patient, collect it after the
perishable state is safe.
- Archived/remote logs, backups — least volatile; collect but do not let them jump
the queue ahead of RAM.
The one non-negotiable ordering error: never reboot or power-cycle before memory is
captured, unless a containment decision forces it — and if it does, say so (Step 5).
Step 2 — Decide live vs dead acquisition, knowing each destroys something
Two paths, and each has a cost you must name:
- Live acquisition (collect from the running system) — preserves volatile state, but
every tool you run alters memory and the running OS could be lying to you (a rootkit
hides the very processes you are listing). Use trusted, statically-linked tools from
external media; assume the compromised OS's answers are suspect.
- Dead acquisition (power off, image the disk) — gives a clean, repeatable disk
image, but pulling power destroys all of Step 1's volatile state and a graceful
shutdown runs the attacker's shutdown scripts and changes the disk. Neither
power-off option is free.
There is no universally correct choice; there is a choice appropriate to this
incident, made deliberately and recorded. The wrong move is to back into one by habit.
Step 3 — Minimize and record the footprint you cannot avoid
You will alter the scene; the discipline is to do it as little as possible and to log
exactly what you did, so a later analyst can subtract your footprint from the
attacker's:
- Prefer read-only / write-blocked access to disk; use a hardware or software
write-blocker for imaging.
- Run collection tools from external, trusted media, not from the suspect disk.
- Record every command you ran, when, as whom, and what it touched — your actions are
part of the timeline and must be distinguishable from the adversary's.
Unrecorded analyst activity is indistinguishable, later, from attacker activity — and
that ambiguity can sink both the investigation and its admissibility.
Step 4 — Hash at the source; custody starts here
The integrity claim you will need later — "this image is exactly what was on the disk,
unaltered since collection" — can only be made if you anchor it at the moment of
collection:
- Compute a cryptographic hash of the acquired image (and of memory) at acquisition,
and record it (
tamper-evident-audit-chain).
- Work from copies; preserve the original acquisition untouched (
finding-custody).
- Note who collected it, when, from what, and how — the chain of custody is a line that
starts at your hands, not one you can back-fill from memory later.
Step 5 — When containment forces a bad order, say so honestly
Sometimes the incident does not let you follow the order: ransomware is encrypting and
you must pull power now, or the box was already rebooted before you arrived. That is a
legitimate operational reality, and the honest response is not to pretend the evidence
is pristine — it is to record the degradation:
- "Memory not captured; host was powered off for containment at 14:02 before
acquisition" is a WARN attached to the evidence, and it tells every downstream
conclusion which questions can no longer be answered.
- Evidence collected out of order, or after a reboot, is still evidence — but it is
scoped evidence, and presenting it as clean is the forensic version of the overclaim
this library forbids everywhere.
ABSTAIN on the questions the lost volatile state
would have answered.
The one-line test
If your first action on a suspect machine was to log in and look around, you began by
overwriting the evidence you came for. Order the targets by how fast they vanish,
capture memory before anything reboots it, hash at the source, and log your own
footprint — because acquisition is the one phase where a mistake is not a wrong answer,
it is the permanent absence of the right one.
1---2name: acquisition-order-of-volatility3description: Acquisition Order of Volatility4---56# Acquisition Order of Volatility78The evidence you most need is the evidence that disappears fastest. The contents of9RAM, the live network connections, the running process list, the routing and ARP10tables — all of it is gone the instant someone pulls power or, almost as bad, starts11poking at the box to "see what's going on." Disk survives; volatile state does not. So12the first law of acquisition is not "make a copy" — it is **collect in order of13volatility**, most-perishable first, because the order is the difference between having14the evidence and having overwritten it.1516The second law follows from the first: **the act of collecting alters the scene.**17Mounting a filesystem writes access times; running a tool allocates memory over the18very RAM you wanted; opening a file changes its metadata. You cannot observe the19system without touching it, so the discipline is to *minimize and record* your20footprint, not to pretend you left none.2122The two failure modes that ruin evidence before analysis even begins:2324- **The "quick look."** An analyst logs in, browses the disk, runs a few commands,25 reboots to "check something" — and overwrites the memory, the timestamps, and the26 free space that held the answer. The investigation is now archaeology of the27 investigator's own footprints.28- **Disk-first.** Imaging the drive (slow, non-volatile, patient) while the live29 connections to the C2, the injected process, and the decryption keys sitting in RAM30 quietly evaporate. You preserved the part that was in no hurry to leave.3132Composes with the library:3334- **finding-custody** — the chain of custody begins at the moment of collection, not later; this skill is where custody starts35- **tamper-evident-audit-chain** — hash at the source so a verifier can later prove the image was not altered36- **incident-timeline-reconstruction** — the timeline is built from what you collect; collect out of order and the timeline has holes you caused37- **honest-degradation** — evidence collected imperfectly is a WARN on that evidence, stated, not a silent gap presented as clean38- **containment-under-uncertainty** — the "pull the plug now" containment instinct collides with acquisition; sequence them deliberately3940---4142## Step 1 — Order the targets by volatility before you touch anything4344Write the collection order most-perishable to least, and follow it:45461. **CPU state, memory (RAM)** — the most volatile and often the richest: injected code,47 decryption keys, cleartext credentials, unpacked malware, network buffers.482. **Live network state** — active connections, listening ports, ARP/routing tables,49 DNS cache: the map of what the box is talking to *right now*.503. **Running processes and open handles** — the process tree, loaded modules, open51 files, which the reboot will erase.524. **Ephemeral disk state** — temp files, swap/pagefile, unallocated space that the next53 write may reuse.545. **Persistent disk** — the full image; non-volatile, patient, collect it after the55 perishable state is safe.566. **Archived/remote logs, backups** — least volatile; collect but do not let them jump57 the queue ahead of RAM.5859The one non-negotiable ordering error: never reboot or power-cycle *before* memory is60captured, unless a containment decision forces it — and if it does, say so (Step 5).6162---6364## Step 2 — Decide live vs dead acquisition, knowing each destroys something6566Two paths, and each has a cost you must name:6768- **Live acquisition** (collect from the running system) — preserves volatile state, but69 every tool you run alters memory and the running OS could be lying to you (a rootkit70 hides the very processes you are listing). Use trusted, statically-linked tools from71 external media; assume the compromised OS's answers are suspect.72- **Dead acquisition** (power off, image the disk) — gives a clean, repeatable disk73 image, but *pulling power destroys all of Step 1's volatile state* and a graceful74 shutdown runs the attacker's shutdown scripts and changes the disk. Neither75 power-off option is free.7677There is no universally correct choice; there is a choice appropriate to *this*78incident, made deliberately and recorded. The wrong move is to back into one by habit.7980---8182## Step 3 — Minimize and record the footprint you cannot avoid8384You will alter the scene; the discipline is to do it as little as possible and to log85exactly what you did, so a later analyst can subtract your footprint from the86attacker's:8788- Prefer read-only / write-blocked access to disk; use a hardware or software89 write-blocker for imaging.90- Run collection tools from external, trusted media, not from the suspect disk.91- Record every command you ran, when, as whom, and what it touched — your actions are92 part of the timeline and must be distinguishable from the adversary's.9394Unrecorded analyst activity is indistinguishable, later, from attacker activity — and95that ambiguity can sink both the investigation and its admissibility.9697---9899## Step 4 — Hash at the source; custody starts here100101The integrity claim you will need later — "this image is exactly what was on the disk,102unaltered since collection" — can only be made if you anchor it at the moment of103collection:104105- Compute a cryptographic hash of the acquired image (and of memory) *at acquisition*,106 and record it (`tamper-evident-audit-chain`).107- Work from copies; preserve the original acquisition untouched (`finding-custody`).108- Note who collected it, when, from what, and how — the chain of custody is a line that109 starts at your hands, not one you can back-fill from memory later.110111---112113## Step 5 — When containment forces a bad order, say so honestly114115Sometimes the incident does not let you follow the order: ransomware is encrypting and116you must pull power *now*, or the box was already rebooted before you arrived. That is a117legitimate operational reality, and the honest response is not to pretend the evidence118is pristine — it is to record the degradation:119120- "Memory not captured; host was powered off for containment at 14:02 before121 acquisition" is a WARN attached to the evidence, and it tells every downstream122 conclusion which questions can no longer be answered.123- Evidence collected out of order, or after a reboot, is still evidence — but it is124 *scoped* evidence, and presenting it as clean is the forensic version of the overclaim125 this library forbids everywhere. `ABSTAIN` on the questions the lost volatile state126 would have answered.127128---129130## The one-line test131132If your first action on a suspect machine was to log in and look around, you began by133overwriting the evidence you came for. Order the targets by how fast they vanish,134capture memory before anything reboots it, hash at the source, and log your own135footprint — because acquisition is the one phase where a mistake is not a wrong answer,136it is the permanent absence of the right one.