A rushed response destroys the evidence you need to answer four questions: how the attacker got in, what they touched, whether they are still there, and what they took. Most of the loss happens in the first hours, and most of it comes from well-meant actions: powering off a server, reimaging a laptop, letting antivirus clean up, resetting a password.

This note is for the people making those calls: incident commanders, SOC leads, infrastructure and cloud teams. It lists what disappears, why, and what to do first. It does not slow containment. It changes the order of a few actions.

What gets lost

Eight categories of evidence are routinely lost in a fast response. The first three are the hardest to get back.

EVIDENCEHOW A RUSHED RESPONSE LOSES ITWHAT TO DO FIRST
Memory and running statePower-off or reboot clears processes, network connections and loaded code. CISA treats power-down as a last resort for this reason.Isolate at the network layer. Capture memory from a sample of affected hosts before any shutdown.
Short-retention logsLogs roll over while the team works. Microsoft Entra keeps sign-in and audit logs for 7 days on the free tier and 30 days on P1 and P2. AWS CloudTrail event history covers 90 days of management events per Region.Export and forward now. Extend retention before analysis starts, not after.
Disk stateReimaging or rebuilding a host before it is imaged removes deleted files, timestamps and tooling the attacker left.Take a bit-level copy of a sample of affected servers and workstations first. Rebuild second.
Malware and precursor samplesAntivirus cleanup deletes or quarantines binaries. CISA advises identifying precursor malware before restoring from backups, which is impossible if the sample is gone.Copy the sample, its hash and the quarantine record before remediation runs.
Original timestampsTriage on the live host changes access times. RFC 3227 warns that tools which touch every file alter the evidence.Run trusted tools from read-only media. Analyze copies, not originals.
Cloud and virtual stateInstances are terminated, replaced or autoscaled, and the volume goes with them. Field judgment: this is the fastest-moving category in cloud estates.Snapshot volumes to keep a point-in-time copy, as CISA advises, before any termination or rebuild.
Account and session recordsField judgment: accounts get deleted rather than disabled, mailboxes get cleaned of phishing messages, and passwords get reset before anyone has recorded what the account did.Disable, do not delete. Export activity and mailbox content, then reset.
The record of what responders didWithout an action log, nobody can separate attacker activity from responder activity. RFC 3227 requires evidence to be authentic, complete and reliable, and that needs documented handling.Start the action log in the first hour: who did what, on which system, when.

Seven field rules

  1. Isolate before you power off. CISA’s first step is to isolate affected systems, at the switch if several subnets are involved. Power down only when a host cannot be disconnected and the network cannot be shut down, because it erases volatile memory.

  2. Capture in order of volatility. RFC 3227 gives the sequence: registers and cache; routing table, ARP cache, process table, kernel statistics and memory; temporary file systems; disk; remote logging and monitoring data; physical configuration and topology; archival media.

  3. Do not trust the host. Run collection tools from protected, read-only media. RFC 3227 notes that rootkits can hide state from tools running on the compromised system, so what you see may be incomplete.

  4. Image a sample before you rebuild. CISA asks for a system image and memory dump from a sample of affected devices: workstations, servers, and virtual and cloud servers. Include a domain controller if identity is involved.

  5. Pull the logs that expire. Preserve Windows Security logs and firewall log buffers, as CISA lists. Add identity-provider and cloud audit logs, which have fixed retention windows.

  6. Coordinate out of band. Use phone calls or a channel outside the affected environment. CISA notes that attackers watching your communications will learn they have been detected.

  7. Keep custody records. Record where, when and by whom each item was collected, who held it, and how it was stored. Generate checksums at collection.

The isolation trade-off

The advice pulls two ways. RFC 3227 warns that cutting the network abruptly can trigger deadman switches that wipe evidence. CISA puts isolation first because encryption and spread are happening now. Field judgment: isolate at the network layer rather than by touching the host, capture memory immediately after, and treat any host that changes behavior on isolation as a finding in its own right. The RFC is an older document, so treat the deadman-switch risk as a reason for care, not a rule that outranks containment.

A hypothetical first day

This is a constructed example, not a documented incident. A file server starts encrypting at mid-morning. The team reimages the three most affected servers by noon and resets domain administrator passwords by early afternoon. By evening, leadership asks which account reached the file server and whether data left the network. The team cannot say. The servers have no images, the domain controller logs have rolled, and nobody recorded which administrator account touched which host. The scope is now a guess, and every later decision, from restore order to notification, rests on it.

The first-hour evidence set

Capture these before rebuilding, resetting or cleaning anything. Skip an item only by decision, and record the decision.

  • Memory from a sample of affected hosts, including at least one server.

  • Disk images from the same sample.

  • Windows Security logs, firewall log buffers, VPN and remote-access logs.

  • Identity-provider sign-in and audit logs, cloud control-plane logs, with retention extended.

  • Cloud volume snapshots for affected instances.

  • Ransomware binaries, ransom notes, precursor malware samples and the indicators they expose.

  • A list of accounts that were active on affected hosts, exported before any reset.

  • The action log and a named owner for it.

Two decisions that need a named owner

Keep a live host running to capture it, or isolate and move on. The incident commander decides, with the forensic lead. If the host is still encrypting, isolate first. If it is quiet, capture first. Write down which was chosen and why.

When to rebuild and reset. Rebuilds and credential resets are necessary, and they also remove evidence. CISA sequences the rebuild and the credential reset after extended analysis for persistence. Set the trigger in advance: for example, sample imaged, logs exported, account list recorded.

Handling rules for evidence differ by jurisdiction. NIST SP 800-86 advises consulting management and legal counsel before applying forensic practices, so settle the legal position before an incident, not during it.

What the forensic team needs at handoff

  • An inventory of what was captured, from which host, by whom, with hashes.

  • The action log, including every containment step and its time.

  • A list of what was not captured, and why.

  • The current retention settings on every log source in scope.

NEXT STEP

Check whether your current response plan captures memory, expiring logs and an action record before the first rebuild.

Sources

  1. IETF, RFC 3227: Guidelines for Evidence Collection and Archiving. https://www.rfc-editor.org/rfc/rfc3227

  2. CISA and partners, #StopRansomware Guide. https://www.cisa.gov/stopransomware/ransomware-guide

  3. NIST, SP 800-86: Guide to Integrating Forensic Techniques into Incident Response. https://csrc.nist.gov/pubs/sp/800/86/final

  4. Microsoft Learn, Data retention in Microsoft Entra monitoring and health. https://learn.microsoft.com/en-us/entra/identity/monitoring-health/reference-reports-data-retention

  5. AWS Documentation, Working with CloudTrail event history. https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events.html

How we label evidence

Facts carry a source. Analysis and recommendations are marked as ours. Examples that are hypothetical are labeled as hypothetical.