Volatile Data and the Order of Volatility
Digital evidence degrades or disappears at different rates, from CPU registers and RAM through running processes, network connections, and on-disk artefacts. RFC 3227 formalises the sequence in which live data should be captured during an incident, ensuring investigators collect the most transient evidence before it is lost.
Last updated:
The order of volatility is the principle that digital evidence exists at different levels of persistence and must be collected in sequence from most to least transient. When a security incident is under investigation and the affected system is still running, an investigator who shuts the machine down immediately destroys RAM contents, active network connections, running process data, and any malware that exists only in memory. RFC 3227, published by the Internet Engineering Task Force in 2002, codifies the collection sequence that preserves the most valuable live evidence: CPU registers and cache first, then main memory, then network state, then disk and swap, then remote logs and physical media last.
The concept matters in practice because incident responders face a genuine trade-off between speed and completeness. Pulling the power cable is fast and stops the attacker immediately, but it destroys live evidence that may be the only record of what the attacker did and how they got in. Keeping the system running while collecting volatile data preserves that record but leaves the attacker active for longer. Understanding the order of volatility lets responders collect the most important evidence quickly, then make an informed containment decision.
Although RFC 3227 was written when most computing was physical and on-premises, its underlying logic applies to virtual machines, cloud instances, and containers, though the practical procedures differ. Cloud providers and virtualisation platforms offer snapshot capabilities that can capture memory state faster than traditional live-response tools, but the sequence of what to capture first remains the same. Jurisdictions including India under the Digital Personal Data Protection Act 2023, the UK under PACE and the Computer Misuse Act, and the US under the Federal Rules of Evidence all require that evidence collection be documented and defensible; the RFC 3227 collection framework provides that documentation structure.
By the end of this topic you will be able to:
- State the RFC 3227 order of volatility and explain the reason each category is ranked where it is.
- Describe what information is held in RAM that cannot be recovered from disk after a shutdown.
- Explain the trade-off between preserving live evidence and containing an active attacker, and identify the decision point at which containment takes priority.
- List the documentation requirements that RFC 3227 places on live evidence collection, including time-stamping and hashing.
- Apply the order-of-volatility principle to cloud, container, and virtualised environments where standard live-response tools may not function.
- Volatile data
- Any digital information that is lost when power is removed or the system state changes. Examples include RAM contents, CPU register values, active network connections, the ARP cache, and the process table. Volatile data must be collected while the system is running.
- Non-volatile data
- Data that persists without power, such as files on a hard disk, SSD, or optical media, and data in non-volatile memory chips. Non-volatile data can be collected after shutdown, though best practice is to collect it after volatile data in a live-response scenario.
- RFC 3227
- Guidelines for Evidence Collection and Archiving, published by the IETF in February 2002. It defines the order of volatility, the documentation requirements for live evidence collection, and the principle that the collection process should alter evidence as little as possible.
- Live response
- The practice of collecting forensic evidence from a running system before any shutdown or imaging. Live response is required whenever volatile data such as encryption keys, running malware, or active network sessions must be preserved.
- Memory-resident malware
- Malicious code that executes entirely in RAM and writes no files to disk. Fileless malware, PowerShell-based loaders, and certain rootkits fall into this category. A shutdown destroys the only copy; live memory acquisition is the sole means of capturing it.
- Chain of custody
- The chronological record documenting who collected evidence, when, by what method, and how it was stored and transferred. RFC 3227 specifies the minimum chain-of-custody data for live evidence: the system clock offset, commands used, collector identity, and cryptographic hash of each acquired item.
What volatile data is and why it disappears
A running computer holds data in several storage layers simultaneously. The fastest and most transient are the CPU registers and cache: small, extremely fast memory circuits that hold the values the processor is currently working on. These are overwritten many times per second and their state at any given moment is meaningful only in the context of a specific running process. Below that is main memory (RAM), which holds the full working state of all running processes, the operating system kernel, network buffers, and cached file data. RAM is volatile: its contents are lost when power is removed, typically within milliseconds to seconds depending on chip type, temperature, and whether a remanence attack is being performed.
Beyond RAM, the system maintains several other volatile data stores. The routing table and ARP cache record how the machine communicates with other hosts and which MAC addresses correspond to which IP addresses. These are built dynamically and refreshed continuously; they are gone when the system shuts down or when the network interface is reset. The process table records every running process, its process ID, the user it runs as, and the files and network sockets it has open. A running attacker process appears in the process table; after shutdown it does not.
The system clock is also included in the RFC 3227 ordering, not because clock data disappears on shutdown but because the clock's relationship to accurate time must be recorded at the moment of collection. If the system clock is twelve minutes fast, timestamps on every log entry are twelve minutes off. Recording the clock deviation at collection time allows analysts to correct all timestamps in post-processing.
RFC 3227: the standard collection sequence
RFC 3227 lists the order of volatility as a sequence of data categories, each less transient than the previous. The document is concise and the ordering is the foundation of every live-response methodology that followed it. The sequence is not arbitrary: each position reflects how quickly the data changes and how difficult it is to reconstruct after it is gone.
| Priority | Data category | Why it is ranked here | Typical collection method |
|---|---|---|---|
| 1 | CPU registers and cache | Overwritten constantly; meaningful only at the instant of capture | Rarely captured in practice; specialist crash-dump tools |
| 2 | Routing tables, ARP cache, process table, kernel statistics | Change with every network packet and process event; lost on shutdown | netstat, arp -a, ps, ipconfig, route print |
| 3 | Main memory (RAM) | Lost on power removal; holds encryption keys, malware, sessions | Memory acquisition tools: WinPmem, LiME, Magnet RAM Capture |
| 4 | Temporary file systems and swap space | Swap can persist but is overwritten by new page-outs; tmp files deleted on reboot | Logical copy of swap partition; tmp directory copy |
| 5 | Disk (fixed media) | Persists without power; changes only on writes | Forensic imaging: dd, FTK Imager, DC3DD with hash |
| 6 | Remote logging and monitoring data | Controlled by a remote system; not lost on local shutdown but may be overwritten by rotation | Request log pull from SIEM, syslog server, cloud trail |
| 7 | Physical configuration and network topology | Durable; documents the environment at the time of the incident | Photographs, cable labels, switch port maps |
The practical implication is that an investigator arriving at a compromised host should not touch the keyboard until they have decided what to capture. Every command typed on the live system modifies last-access timestamps on files, can overwrite swap space, and may trigger the malware to take an evasive action. The investigator should use a write-protected forensic toolkit run from a USB drive or remote tool to issue commands, and should record every command issued and its output before moving to the next collection step.
What RAM contains and why it is high-priority
Main memory is the single most valuable source of live evidence in most incident investigations. Its contents at the time of acquisition can include: decrypted versions of files that are encrypted on disk; cleartext credentials passed through an authentication process that were never written to a log; the full working memory of a malicious process including its configuration and command-and-control address; active TLS session keys that allow retrospective decryption of captured network traffic if the session was recorded; and injected shellcode that exists nowhere on disk.
Memory-resident malware is a category that specifically exploits the disconnect between RAM and disk. A loader delivered by a phishing email may execute entirely in memory, inject shellcode into a legitimate process such as svchost.exe, and delete the original loader file. On disk there is no malware file to find. In RAM, the injected code is present in the memory space of the host process, the network connections it opened are in the process table, and the strings in its working memory may include the C2 server address. Analysts using tools such as Volatility or Rekall can extract these artefacts from a memory image, but only if the image was captured while the system was running.
Documentation requirements and chain of custody
RFC 3227 specifies that the act of collection must be documented to a standard that allows another expert to evaluate the integrity of the evidence. The minimum documentation requirements are: the system clock time at the start and end of each collection step, the offset between the system clock and a trusted time source such as an NTP server, every command issued to the system during collection and its output, the identity of the person performing the collection, a cryptographic hash (MD5 and SHA-256 are both common) of every acquired file computed immediately after acquisition, and the hash of any tool or script used to collect evidence.
The clock offset is particularly important and often overlooked. Courts in multiple jurisdictions require that log timestamps be interpreted in context. A log showing a file access at 14:32:07 means nothing unless the investigator also recorded that the system clock was seven minutes ahead of UTC at the time. Without that note, the timestamp cannot be correlated with firewall logs, authentication records, or CCTV footage. Indian courts applying the Bharatiya Sakshya Adhiniyam 2023 require that electronic evidence be accompanied by a certificate of the kind described in Section 63, which includes details of the device and the manner of collection. US courts under FRE 902(13) and (14) allow self-authentication of electronic records if accompanied by a qualified certificate. Both requirements are satisfied by careful RFC 3227 documentation.
The hash requirement serves two purposes. First, it proves that the copy made at collection matches the original at the moment of collection. Second, it allows anyone who later handles the evidence to verify that it has not been altered since acquisition. A RAM image of 16 GB with a documented SHA-256 hash computed at the scene is admissible evidence in a way that an undocumented copy is not, because the hash creates a verifiable link between the original system state and the file presented in court.
The containment trade-off
Live evidence collection and rapid containment are in tension. Every minute the system stays running while the investigator collects RAM is a minute the attacker can continue operating: exfiltrating data, destroying logs, or moving laterally to other hosts. The investigator must decide how long to run live collection before isolating or shutting down the system.
The decision depends on what is at risk. If the compromised host is actively exfiltrating personally identifiable data, containment takes priority over a complete live collection: isolate the host from the network first, then collect what volatile data remains (RAM is still acquirable from an isolated host, network state data will now reflect the isolation). If the attacker appears to be dormant and the investigation team needs to understand the full scope before containment tips the attacker off, a longer live-collection window is justified.
Most IR playbooks describe a triage collection phase: a short list of high-priority commands that capture the most valuable volatile data in five to ten minutes, followed immediately by network isolation. The triage list typically covers the process table, active network connections, ARP cache, logged-on users, and a memory acquisition if a tool is available. A full disk image can follow after isolation, since disk contents are stable and not time-critical.
Applying the order of volatility to cloud and container environments
The order of volatility as stated in RFC 3227 assumes a physical machine running a conventional operating system. Cloud instances, virtual machines, and containers introduce additional constraints and capabilities that change the practical workflow, though not the underlying principle.
In a virtualised environment, the hypervisor can take a snapshot of the entire VM state, including RAM contents, at a point in time while the VM continues running. This is faster and less invasive than running a user-space memory acquisition tool inside the guest OS, and it captures the CPU register state as well. Major cloud providers including AWS (EC2 instance snapshots and memory capture via SSM), Microsoft Azure (Azure Disk Snapshot and VM memory capture), and Google Cloud Platform (GCP disk snapshots) all provide mechanisms for this. The order of volatility still applies: capture the snapshot before any other action, before stopping the instance, before detaching disks.
Containers present a harder problem. A container shares the kernel with its host and has no separate OS of its own. When a container stops, its writable layer is typically deleted, along with any data that was written inside the container but not mounted to a persistent volume. Container memory is shared with the host kernel memory space and is not separately addressable in the way a VM's memory is. Responders investigating a compromised container should capture the container's running state (docker inspect, kubectl describe), the process tree inside the container, the container's network connections, and environment variables before stopping it. The host's memory image will include container memory, though interpreting it requires additional analysis.
Cloud environments also change the remote logging category. On-premises systems send logs to a remote syslog server, which an attacker could also compromise. In cloud environments, logs are typically written to a managed service (AWS CloudTrail, Azure Monitor Logs, GCP Cloud Logging) that the attacker cannot access through the compromised instance. This makes remote logs more reliable as a secondary evidence source, but they still need to be preserved quickly: log retention windows vary by configuration, and an attacker who has administrative access to the cloud account can delete logs.
An investigator arrives at a compromised server that is still running. In what order should the following items be collected according to RFC 3227?
Key Takeaways
- The order of volatility ranks digital evidence from most to least transient: CPU registers and cache, then network state and process table, then RAM, then swap and temporary files, then disk, then remote logs. Collection must follow this sequence to preserve the most perishable evidence first.
- RAM holds evidence that cannot be recovered after shutdown, including decrypted file contents, cleartext credentials, active session keys, memory-resident malware code, and the working state of every running process.
- RFC 3227 requires investigators to document the system clock offset, every command issued, the collector's identity, and a cryptographic hash of each acquired item. This documentation creates the chain of custody that satisfies evidentiary requirements across jurisdictions including India's Bharatiya Sakshya Adhiniyam 2023, the US Federal Rules of Evidence, and UK PACE.
- The containment trade-off requires a decision: network isolation stops the attacker while preserving volatile data; power removal destroys RAM. IR playbooks resolve this with a triage collection phase capturing the highest-priority data in five to ten minutes before isolating the host.
- In cloud and virtualised environments, hypervisor snapshots can capture full VM memory state without running tools inside the guest OS, but the underlying sequence of what to capture first, and the requirement to do so before any containment action that stops the workload, remains the same as in physical environments.
What is the order of volatility in digital forensics?
Why is RAM collected before disk in live response?
What does RFC 3227 require investigators to document?
What is memory-resident malware and why does order of volatility matter for it?
How does the order of volatility apply to cloud and containerised environments?
Test yourself on Incident Response and Management with free, timed mocks.
Practice Incident Response and Management questionsSpotted an error in this page? Report a correction or read our editorial standards.