Before any memory forensics or analysis can proceed, an acquisition of the system's volatile memory must first be obtained. Unlike imaging an unmounted or write-blocked disk, memory acquisition is inherently non-deterministic. Because RAM is volatile and its contents are in constant flux—driven by process scheduling, kernel activity, network I/O, and cache churn—no two acquisitions of the same live system will be bit-for-bit identical. Compounding this, the acquisition process is itself intrusive: loading a kernel driver, allocating buffers, and executing the imaging tool all perturb the very memory space being captured. The degree of variance between successive acquisitions is not fixed—it scales with system activity, so a relatively idle host may show minimal drift (concentrated in scheduler state, buffers, and timestamps) while an active host may show substantially more. In either case, however, the result is never strictly repeatable.
Because the process lacks repeatability, there is no consensus in the forensics community on what to properly call the resulting artifact. Practitioners favoring the term "sample" argue that "image" implies a static, verifiable, bit-identical copy—a guarantee memory acquisition cannot offer—and that "sample" more honestly reflects a snapshot of a system in flux.
Acquisition is further complicated by the physical address space itself. Portions of a system's physical memory map are not backed by RAM at all but are mapped to hardware devices—a region known as memory-mapped I/O (MMIO). These regions must be identified and excluded during acquisition; reading from them can hang the imaging tool or crash the target system outright. Robust imagers account for this by enumerating the system's physical memory map (via mechanisms such as the BIOS/UEFI-provided memory map or equivalent OS APIs) before acquisition, rather than attempting a naive linear read from address zero to the top of physical memory.
In this post, we will walk through several methods for memory acquisition, beginning with the more straightforward approaches and progressing to more exotic techniques. While not universally applicable, these exotic methods may prove to be the best—or only—viable option in certain forensic scenarios.
There is an established standard governing the order in which evidence should be collected during incident response: RFC 3227, "Guidelines for Evidence Collection and Archiving." Its order of volatility places registers and cache at the top of the list, followed by a tier that includes memory alongside routing tables, ARP cache, process tables, and kernel statistics. In practice, registers and cache are rarely, if ever, meaningfully acquired by IR tooling, which makes memory the first practically actionable item in the RFC's ordering—and, for most incident responders, the first real acquisition step performed on a live system. If you intend to deviate from the RFC's recommended order, you had better have a sound justification, and one you can articulate and defend under cross-examination. This is not to say the RFC should never be deviated from—only that any deviation must be deliberate and defensible.
Acquiring memory from a potential victim machine should be the first substantive action taken during incident response. Every subsequent action—every program run, every command executed in the name of the investigation—will alter the state of memory and risks damaging or overwriting the very evidence most likely to be probative. The objective is to preserve and observe the actions of the threat actor (and of any other responders who touched the system before you arrived), not to generate evidence of your own intervention.
Numerous methods exist for capturing memory, and the least invasive method sufficient to meet your investigative objective should always be preferred. Several such methods will be discussed here, each of which yields a memory image, but the "best" method is contingent on the specific data you're trying to preserve and the degree of disruption the system and its stakeholders can tolerate.
Acquiring memory generally requires Administrator-level privileges—though Administrator access alone is not sufficient. Microsoft restricts direct access to physical memory to kernel-mode code; userland processes, regardless of privilege level, cannot open the physical memory object at all—they can be granted the ability to read from it only if a kernel-mode driver has already opened a handle on their behalf. Consequently, memory acquisition tools rely on signed kernel-mode drivers to perform the actual read, and loading such a driver is what necessitates Administrator privileges in the first place.
There are two notable exceptions that do not require Administrator rights: DMA-based acquisition and the cold-boot method. Both bypass the operating system's access controls entirely—DMA acquisition reads physical memory directly over a hardware bus (e.g., via PCIe, Thunderbolt, or FireWire), while the cold-boot method recovers remnant memory contents from RAM chips after power loss, before charge decay sets in. Neither method is without drawbacks, and each introduces its own form of disruption. As with any deviation from standard practice, using either method requires being able to justify why a less disruptive, conventional approach was not used instead.
RFC 3227: Order of Volatility
You can — and should — consult the governing standard for volatile evidence collection, RFC 3227, "Guidelines for Evidence Collection and Archiving," available at https://www.rfc-editor.org/rfc/rfc3227, among other sources. The RFC provides general guidance for conducting incident response and, notably, prescribes an order of volatility, specifying the sequence in which data should be collected.
The first item in that order is the state of the processor—the contents of the registers and cache, including structures such as the translation lookaside buffer (TLB). Traditional incident response generally does not descend to this level of granularity. The instruction being executed and the processor's exact state at the moment of capture are typically too transient and too disconnected from investigative context to carry meaningful evidentiary weight. Regardless of whether malicious software is present on the system, the specific instruction in flight at capture time has little to no bearing on that determination.
The next tier specified by the RFC comprises the volatile data of greatest investigative interest. The standard breaks this tier into several categories—network state, process state, and system memory, among them. While RFC 3227 groups these items together, modern practice often treats a complete memory image as the single most efficient acquisition that captures the majority of process, network, and kernel artifacts resident in RAM. Targeted collection of individual structures (for example, routing tables via native commands) can be more disruptive and is frequently unnecessary once a full memory dump has been obtained. That said, the RFC itself does not prescribe full-memory acquisition as universally sufficient or preferable; lighter-weight, purpose-built tools may still be warranted in constrained environments or when minimizing system impact is paramount.
Following this tier, the RFC specifies capture of temporary file systems—RAM disks and the like—followed by persistent file systems (i.e., disk). Beyond that lies data more commonly addressed in other areas of forensic training: remote logs, physical configuration and network topology information, and comparable artifacts. This hierarchy continues to guide sound forensic methodology: collect the most ephemeral evidence first, minimize alteration of the system under examination, and document every action to support later authentication and chain-of-custody requirements.
Memory imaging is not analogous to disk imaging in the way many examiners initially assume. When imaging a disk, the examiner can read every byte of the drive and commit those bytes to a file; provided the drive is properly preserved as evidence—written-blocked and stored without alteration—the process can be repeated months or years later and will produce an identical result.
Computer memory obeys no such constraint. Its contents are in constant flux, and because the imaging software itself must execute on the very system it is attempting to capture, it necessarily occupies space within that memory—meaning the memory is altered both by ongoing system activity and by the acquisition process itself. The result is therefore not repeatable: running a memory imager twice against the same system in rapid succession will yield two distinct images.
This lack of repeatability has a direct consequence for validation: there is no ground truth against which the result can be checked. Because two tools—or even the same tool run twice—cannot be meaningfully compared against an identical, static target, evaluating whether a given memory acquisition tool has performed "correctly" is inherently difficult. Some degree of sanity-checking is still possible—comparing static, rarely-changing regions such as kernel code across runs, or checking a capture's completeness against installed physical RAM—but exact, byte-level validation is not achievable in principle.
Even the terminology used to describe the output of this process remains contested. Some examiners reserve the term "image" strictly for disk captures or other media obtained via a repeatable process and instead favor "capture," "sample," or "snapshot" for the product of memory acquisition. If any single description fits, it is that a memory capture is a blurry snapshot—an artifact that can legitimately omit data that was, in fact, resident in memory at the time acquisition began. Consider a datum stored at a high memory address that is relocated, mid-acquisition, to a low address the imaging tool has already read past. That datum will never be captured by the tool at all—an example of a broader class of acquisition artifacts known as memory smearing, in which the non-atomic nature of the capture process causes data to be missed, duplicated, or represented in a state that never coherently existed at any single instant in time.
Triage Versus Full Memory Acquisition
In response to the growing adoption of remote forensic acquisition and analysis tooling, coupled with the increasing volume of RAM installed on enterprise workstations and servers, some response teams have shifted toward audit-based collection rather than capturing physical memory in its entirety. On a server with upward of 64 GB of RAM, the time required to remotely acquire the full physical memory image now rivals—or exceeds—that of a system hard drive acquisition, making full memory capture a poor fit when rapid triage or assessment is the priority.
In such cases, many security teams instead deploy an auditing or triage tool—typically a software agent running on the endpoint that reports system state back to a central controller or collection server. These agents provide low-level access to target systems, enabling live enumeration and analysis of running processes, network connections, and broader system state without requiring a full memory or disk acquisition.
Several live-response/triage tools are available on the market today, including a number of free, enterprise-capable solutions. GRR Rapid Response, originally developed internally at Google and open-sourced, is a well-established free IR framework supporting filesystem and memory analysis at enterprise scale through agent-driven host "flows." Michael Cohen—formerly a lead developer on both GRR and the Rekall memory forensics framework at Google—went on to build Velociraptor, a distinct, ground-up implementation for remote collection and live endpoint analysis, informed by the lessons learned from both prior projects rather than a direct code fork of either. Velociraptor has since matured well beyond its early development stages into a widely deployed, actively maintained open-source DFIR framework, valued for its scalability and its expressive query language (VQL) for endpoint auditing and hunting—and notable enough, at this point, to have itself been observed being abused by threat actors as a persistence mechanism in the wild, underscoring just how broadly it's been adopted across the industry.
One of the foremost concerns in conducting live forensics is the risk of evidence loss. Executing triage or volatile-data-collection tooling inevitably alters both the memory and file system of the target system. Common examples of investigator-induced artifacts include the creation of new Prefetch files (from the execution of the triage tools themselves), new Windows Event Log entries, and, in some cases, transient services spun up by the collection agent.
This alteration of system state can arise from several distinct sources: the investigator's own actions may overwrite data of evidentiary value; a legitimate user's continued activity on the system may do the same; or the attacker, upon detecting the investigation, may delete data outright. This last scenario can occur either autonomously or through direct action—an adversary may pre-program their tooling to self-delete upon detecting the execution of incident response utilities or may notice the responder's activity directly, for instance through their own keystroke-logging implant capturing the investigator's command-line input, and manually trigger anti-forensic cleanup in response.
These risks are mitigated by an unavoidable operational reality: without some initial measure of incident response, no investigation can proceed at all. Until the scope and nature of an incident's impact on a given system is established, there is nothing yet to formally investigate—some threshold of live investigation is a necessary precondition for determining whether a full forensic investigation is warranted in the first place.
Given this, live forensics should be conducted deliberately and cautiously. Live analysis and audit tooling should be tested thoroughly prior to fielding it against a live target. Every command executed during triage — along with its observed effect on the system — should be documented contemporaneously, producing a defensible action log that can later demonstrate the investigator's own activity did not compromise the evidence being relied upon. Finally, rehearsing live-response procedures against a range of investigative scenarios—both routine and edge-case—with the full response team in a test environment, well ahead of a real-world incident, is strongly advised.
A critical consideration in conducting incident response concerns an attacker's potential use of privileged credential harvesting techniques against the responder's own access. When a privileged user—an incident responder among them—establishes a remote connection or logs on locally to assess a suspect system, they risk having their credentials cached on that system. By default, Windows caches ten domain account credentials locally via the CachedLogonsCount registry value (HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon), unless this behavior has been explicitly altered through Group Policy.
If privileged credentials of this kind did not already exist on the system prior to the response, an attacker who subsequently discovers that one of their compromised ("owned") systems has been touched by a responder gains disproportionate advantage—the cached credential material becomes a target in its own right. Privileged domain credentials harvested in this manner are commonly leveraged by attackers to move laterally from system to system across a network.
It's worth noting that disk-persistent credential caching (technically, the domain cached credentials v2 [DCC2] verifier used for offline domain logon) is only one exposure vector. Live credential material residing in memory—NTLM hashes, Kerberos tickets, and related authentication artifacts held in the LSASS process—is exposed the moment a privileged account authenticates to a host, interactively or otherwise, regardless of whether anything is written to the on-disk cache. Tools capable of extracting this in-memory material (e.g., Mimikatz) represent a distinct and arguably more immediate risk than the cached-logon mechanism alone. Mitigating both exposure vectors requires not only limiting or disabling cached logon counts on sensitive systems but also avoiding interactive privileged authentication against a suspect host altogether where possible, in favor of ephemeral, scoped, or just-in-time credentials for response activity.
Attackers—particularly those exhibiting the characteristics of advanced persistent threat (APT) actors—will often come to know a security team's standard operating procedures over time. This is especially true for adversaries who have maintained a presence in the victim network for an extended period: prolonged dwell time allows them to learn the organization's incident response tooling, typical response latency, and analytical workflow.
A common consequence of this awareness is that enterprise endpoint protection agents are frequently killed, disabled, or removed outright from a compromised system once the attacker senses (or simply anticipates) that a response is underway—a pattern formally cataloged under MITRE ATT&CK's "Impair Defenses" technique (T1562), with the specific act of disabling or tampering with security tooling captured under sub-technique T1562.001. In addition, the volatile-data-collection tools commonly relied upon by most security teams tend to be easily fingerprinted—by process name, command-line signature, dropped driver artifacts, or file hash—which can readily tip off an attacker to the fact that they've been discovered.
Every forensic tool should, of course, be tested prior to fielding it in a live response—but this principle warrants heightened vigilance where memory acquisition tools are concerned. If a disk analysis or imaging tool fails, the examiner is, ideally, working against a forensic copy of the original evidence and loses nothing of substance; the acquisition can simply be retried against the same preserved source. If a memory acquisition tool fails, however, there is no equivalent fallback—the volatile state that failed to be captured cannot be regenerated, and its loss may be permanent. Understanding precisely how an acquisition tool operates and what footprint it leaves on the target system in the process is therefore essential to sound incident response and defensible evidence collection.
It should also be understood that the mere act of connecting to a system to conduct triage—whether locally or over the network—inevitably introduces changes to that system's memory and file system. A local interactive logon and a remote network logon (e.g., via RDP) populate distinct logon-type artifacts in the Windows Security Event Log, and responders should know which artifacts correspond to their own access method in order to avoid conflating their own activity with an attacker's. Changes to the registry stemming from USB device insertion, or to the target's Security Event Log stemming from the responder's own account-logon events, can carry significant weight in later reconstructing the narrative of an initial compromise vector and subsequent attacker activity—and, left unaccounted for, can equally confound that reconstruction.
Accordingly, a team's standard operating procedures for incident response and volatile evidence collection should explicitly account for the ramifications of these self-induced changes, weighing the trade-offs among available collection methods and tools with this footprint in mind.
Acquisition Techniques
A number of distinct techniques exist for acquiring memory for subsequent analysis, spanning both hardware-based and software-based approaches. Hardware acquisition methods are generally available only on specific platforms—they depend on the target system exposing a compatible physical interface (as with DMA-based acquisition over PCIe, Thunderbolt, or FireWire) or on particular hardware behavior around power cycling (as with the cold-boot method)—and are therefore constrained by the target's hardware configuration. Software acquisition methods, by contrast, are generally more broadly applicable: provided the tool can execute on the target operating system with the requisite privileges and a compatible kernel-mode driver, it can typically be deployed across a much wider range of hardware than any single hardware-dependent technique would allow. The sections that follow examine several methods from each category in turn.
FireWire Acquisition
FireWire-based devices communicate with host computers over the IEEE 1394 serial bus through a layered protocol stack. The IEEE 1394 standard defines the physical layer—including electrical and mechanical characteristics—and the link layer protocols governing bus communication. The Open Host Controller Interface (OHCI) standard specifies how IEEE 1394 is implemented on the host computer side. Above these, transport protocols such as Serial Bus Protocol 2 (SBP-2) define the mechanisms for transferring commands and data over the bus. At the top layer, device-type-specific command sets—including Reduced Block Commands (RBC) and SCSI Primary Commands 2 (SPC-2)—define the commands a given device class must implement.
To maximize transfer performance, IEEE 1394 grants target devices the ability to access host system memory directly, freeing the host CPU from managing large data transfers. Read and write data packets are transmitted between source and destination nodes using a 64-bit destination address embedded in each packet. This address is composed of two fields: a 16-bit destination_ID field (itself comprising a 10-bit bus address and a 6-bit node address) and a 48-bit destination_offset specifying the target address within the destination node.
The OHCI standard defines how this 48-bit offset is interpreted. When the offset falls below the value stored in the Physical Upper Bound register—or below the default value of 0x000100000000 (4 GB) when that register is not implemented—the host OHCI controller treats it as a physical memory address and services the request through its Physical Response Unit, performing a direct memory transfer without OS involvement. In practice, most, if not all, OHCI-1394 controllers do not implement the optional Physical Upper Bound register, placing the effective DMA ceiling at 4 GB. It bears noting that while the OHCI specification theoretically permits a Physical Upper Bound of up to approximately 256 TB (0xffff'0000'0000), this remains an academic limit given the near-universal absence of hardware support for the register—reinforcing that the 4 GB forensic ceiling is a controller implementation constraint, not a protocol constraint.
Beyond the Physical Upper Bound register, two additional OHCI registers govern whether DMA access is actually granted on a per-node basis: PhysicalRequestFiltersHi and PhysicalRequestFiltersLo. Each bit in these registers corresponds to a device node identified by its 6-bit node address. When a bit is set to 1, the OHCI controller passes the incoming request directly to the Physical Response Unit, granting physical memory access. When cleared to 0, the request is instead routed to the Asynchronous Receive Request DMA context, where it is handled by the device driver and the destination_offset is interpreted as a virtual address—meaning the device cannot access actual physical memory contents. This is why naïve FireWire-based acquisition works against Linux and macOS but not Windows: by default, Windows does not set the PhysicalRequestFilter bits for connected FireWire devices, so physical DMA access is not granted.
The solution, established through Adam Boileau's research, is device identity spoofing. By presenting the Configuration ROM of a known trusted device—such as an iPod or external hard disk—the acquisition device causes Windows to recognize it as an SBP-2-compliant storage device, which triggers Windows to set the appropriate PhysicalRequestFilter bits and grant physical DMA access.
This approach is not without reliability challenges. When Windows recognizes an SBP-2 storage device, its file system drivers (disk.sys, partmgr.sys) begin issuing standard block-device commands to the newly detected device. Because the acquisition device does not actually implement a file system, it cannot respond to these commands. On some Windows versions, this causes repeated command retransmission, which eventually triggers a FireWire bus reset. The bus reset causes the PhysicalRequestFilter bits for the spoofed device to be cleared—revoking DMA access and terminating the acquisition. The stability of this behavior varies across Windows versions and file system driver implementations. The resolution is to implement the mandatory device commands in the acquisition tool itself, so that Windows driver queries are answered correctly and do not trigger a timeout-induced bus reset. For a "Simplified direct-access" device type using the RBC command set, the required commands are listed below:
|
Command |
Opcode |
Referenced Standard |
|
INQUIRY |
12h |
SPC-2 |
|
MODE SELECT |
15h |
SPC-2 |
|
MODE SENSE |
1Ah |
SPC-2 |
|
READ |
28h |
RBC |
|
READ CAPACITY |
25h |
RBC |
|
START STOP UNIT |
1Bh |
RBC |
|
TEST UNIT READY |
00h |
SPC-2 |
|
VERIFY |
2Fh |
RBC |
|
WRITE |
2Ah |
RBC |
|
WRITE BUFFER |
3Bh |
SPC-2 |
With DMA access established, a remaining practical problem is determining the total extent of physical memory. Without knowing when to stop reading, the acquisition tool risks reading into unmapped address space, which can cause a Blue Screen of Death on the target system. The solution is to derive memory extent information from the memory image itself before commencing full acquisition.
On Windows systems, the registry's hardware hive—which resides entirely in memory and is never written to disk during normal operation—contains a record of hardware resources detected at boot time. Specifically, the .Translated registry value located at:
HKEY_LOCAL_MACHINE\HARDWARE\RESOURCEMAP\System Resources\Physical Memory
stores the base addresses and lengths of all physical memory segments. These segments correspond to memory ranges that are safely mapped to actual RAM and can be read without risk. Segments not appearing in this list—including the Upper Memory Area (UMA, 0xA0000–0xFFFFF), which is reserved for legacy ISA and video hardware—must be excluded from the acquisition pass to avoid inducing a system crash.
For a typical x86 memory map, acquisition proceeds as follows: the first conventional memory segment runs from 0x00000000 to 0x000A0000 (the first 640 KB); the UMA is skipped; extended memory begins at 0x00100000 and continues through the rest of installed RAM. A legacy ISA compatibility "hole" sometimes appearing around 0x00FFF000–0x01000000 can generally be treated as RAM in practice on modern hardware, as the physical memory hole maintained for backward compatibility no longer reflects an actual absence of mapped memory on contemporary systems.
By parsing the .Translated value from memory prior to initiating the full acquisition pass, the acquisition tool can enumerate safe memory segments precisely—ensuring complete coverage of addressable RAM while avoiding any unmapped or I/O-mapped region that could destabilize the target.
FireWire-based acquisition has several practical drawbacks today, however. First, it has become increasingly rare on modern systems, having largely fallen out of favor as USB 3.0 and its successors overtook it in transfer speed. Second, in common OHCI-1394 implementations, the address bus exposed to FireWire devices is only 32 bits wide, limiting accessible physical memory to the lowest 4 GB; memory above that boundary is typically inaccessible via FireWire, and—as with any DMA-capable interface—attempting to read a memory-mapped I/O address through it can crash the target system. Finally, Windows has progressively hardened against this class of attack: Windows 8.1 introduced the ability to block DMA-capable ports on a locked, unattended machine, and Windows 10 version 1803 introduced Kernel DMA Protection, a more comprehensive mitigation against DMA attacks via FireWire, Thunderbolt, and similar interfaces. Despite this, FireWire-based imaging tools remain commercially available—Passware, for instance, sells one, documented here.
Cold Boot Attack
In 2008, a team at Princeton University—led by J. Alex Halderman and colleagues—published a paper and accompanying toolset describing what they termed the Cold Boot attack for memory imaging ("Lest We Remember: Cold Boot Attacks on Encryption Keys"). The underlying principle exploits a physical property of DRAM: when power is removed from the chips, their contents do not decay instantaneously to a random state. The rate of decay depends on the type of chips and their temperature. The Princeton team found that by cooling the chips—using, for instance, an inverted can of compressed air to produce extremely cold gas—they could significantly extend the window during which memory contents remain stable. By then quickly power-cycling the target system and rebooting into a minimal operating system, they were able to capture the vast majority of what had been in memory prior to the power loss, with only a small number of pages overwritten by the new OS. Although the Princeton team focused on recovering encryption keys, the resulting memory images are amenable to any of the forms of analysis discussed in this series.
The cold boot method has several significant operational advantages. Because acquisition occurs entirely at the hardware level—bypassing the running OS entirely—any malware resident in memory has no opportunity to detect, react to, or evade the imaging process. Programs cannot unload themselves or take evasive action. The technique is also OS-agnostic: it works equally regardless of whether the target system is running Windows, Linux, macOS, or any other operating system, since the running OS plays no part in the acquisition at all.
There are, however, serious operational trade-offs. Cold boot acquisition terminates the live session on the target system irreversibly—there is no possibility of returning to run further commands or perform additional live analysis after the power cycle. The process is entirely manual, and if anything goes wrong, the memory contents may be lost entirely. This is genuinely a one-shot procedure: it must be practiced thoroughly beforehand, ideally on hardware identical to what will be encountered in the field, before it is attempted in a real response.
One further constraint: the Princeton team's original research was conducted on DDR2 memory. On DDR3 systems using Intel's memory controllers (Sandy Bridge and related chipsets), Intel's proprietary memory scrambling technology is applied to the DRAM contents in order to minimize parasitic semiconductor effects—the result is that a cold-boot acquisition of such a system produces a scrambled image rather than a directly readable one. In 2016, Bauer, Gruhn, and Freiling published "Lest We Forget: Cold-Boot Attacks on Scrambled DDR3 Memory" (Digital Investigation, DFRWS Europe 2016), presenting a descrambling attack requiring at most 128 bytes of known plaintext within the image to achieve full recovery; the attack can be further refined to at most 50 bytes of known plaintext on dual-channel memory systems by exploiting mathematical relationships within the key stream. This work demonstrably extends cold-boot acquisition to systems employing Intel's memory scrambling technology—though practitioners should be aware that DDR3 images, even after successful descrambling, tend to exhibit a higher single-bit error rate than DDR2 images, a practical consideration for downstream forensic analysis.
Virtualization Suspension
One of the most accessible entry points into memory forensics is experimentation with virtual machines. Most hypervisors support suspending the guest operating system, and when a guest is suspended, its memory state is written to disk as one or more files—producing what is known as a serialized memory image. A serialized image is one in which the contents of memory are fixed at a consistent point in time, free from the non-atomicity and smearing problems inherent in live physical-memory acquisition. Because the state is captured instantaneously (from the guest's perspective), data cannot be missed due to relocation between the time a region was read and the time it was written—a significant advantage over live acquisition of a running physical system.
In VMware's case, suspending a VM produces two files that together constitute the complete image: a .vmss file, which holds the suspended CPU and VM state, and a .vmem file, which holds the raw RAM contents. Memory forensics frameworks such as Volatility require both files to correctly analyze a suspended VMware image. An equivalent pairing—.vmsn and .vmem—is created when a memory-inclusive snapshot is taken. Other hypervisors produce their own analogous file formats, which will be addressed in shortly. Two operational considerations warrant attention, however.
First, in configurations where VMware Tools is installed in the guest, the suspend process may involve a guest-preparation phase in which the hypervisor signals the Tools agent in the guest prior to freezing execution—analogous to an ACPI sleep signal. A sufficiently sophisticated malicious process monitoring for such signals could theoretically use this window to take evasive action: deleting files, wiping artifacts, or otherwise interfering with the investigation. The mitigation is to use the snapshot feature rather than suspend. A snapshot freezes the virtual CPU instantaneously with no guest-side preparation phase, offering no window for in-guest evasion. This distinction makes snapshots the preferred option for forensic capture in environments where VMware Tools is present.
Second, it is worth clarifying what VM suspension does not do: it does not cause the guest OS to close open network connections. That behavior is characteristic of an orderly OS shutdown, not suspension or snapshotting. When the virtual CPU is stopped, the guest has no awareness that time has paused; TCP connections and other network states are frozen in place exactly as they were at the moment of capture. This is, in fact, a forensic advantage—the network connection state is preserved in the image and is available for analysis, rather than having been torn down before capture.
VMware, Hyper-V, and VirtualBox all support suspending a guest operating system and capturing portions—or the entirety—of the virtualized system's memory in the process. VMware, as one of the virtualization platforms most commonly encountered in enterprise environments, writes the raw contents of the VM's memory to a .vmem file upon suspension. Note that the state of this file may be undefined while the VM is actively running—it may or may not reflect the current in-memory state—and should only be treated as a reliable memory image once the VM has been fully suspended or snapshotted.
When a VM is suspended, or a memory-inclusive snapshot is taken using VMware's ESXi hypervisor (formerly ESX—Elastic Sky X—which was discontinued after version 4.1 and replaced by ESXi, the "i" denoting "integrated"), two additional files are produced alongside the .vmem: a .vmss file, which stores the suspended CPU and virtual machine state, and a .vmsn file, which stores the snapshot state. Volatility can analyze .vmss and .vmsn files directly without any prior conversion; however, if a raw dd-style image is needed for tools that don't natively support VMware's format, the Volatility imagecopy plugin can convert either file to a raw memory image for downstream use.
Microsoft Hyper-V's file format for saved VM state depends on the version of the platform in use, and practitioners should be clear on which generation of Hyper-V they are dealing with before selecting an acquisition and analysis workflow.
On modern Hyper-V deployments—Windows Server 2016 and later, and Windows 10 and later—suspension produces three file types: a .vmcx file (the VM's binary configuration), a .vmrs file (the runtime state and memory contents, effectively the modern replacement for the older .bin/.vsv pair), and a .vhdx file (the virtual hard disk). The .vmrs file is the primary memory artifact of interest for forensic analysis. Toolchain support for .vmrs should be verified against the specific version of your analysis platform before acquisition, as native support has evolved across Volatility releases. On legacy Hyper-V deployments (pre-2016), suspension produces two memory-relevant files: a .bin file containing the raw physical memory contents of the VM, and a .vsv file holding the virtual hardware device state of the suspended machine—not memory metadata, a distinction that matters when triaging what each file contains. Both files are required together to represent the full saved state. Microsoft's vm2dmp utility can convert this legacy .bin/.vsv pair into a full memory crash dump compatible with Debugging Tools for Windows, which can then be ingested by Volatility or equivalent tooling. No documented size ceiling applies to this conversion.
Practitioners encountering a Hyper-V environment should first establish which format generation is present before committing to a workflow, as the two generations are not interchangeable.
VirtualBox does not automatically produce a complete memory image upon suspension. The .sav file written during a suspend operation represents only a partial saved state—it is not a full memory image and should not be treated as one for forensic purposes. A complete raw memory acquisition from a VirtualBox guest requires the VM to be in a running state and explicit invocation of VirtualBox's debug interface:
VBoxManage debugvm "VMName" dumpvmcore --filename memory.rawThis produces a RAW-format core dump of the guest's physical memory, which Volatility and compatible analysis frameworks can parse directly. Current guidance on analyzing VirtualBox memory images with Volatility is maintained at the Volatility Foundation's GitHub wiki. Additional platform documentation is available at https://www.virtualbox.org/.
Crash Dump
Crash dump files were originally designed for kernel-mode debugging—capturing the system state at the moment of a Blue Screen of Death (BSOD) to allow developers and engineers to diagnose kernel panics, hardware faults, and driver failures after the fact. When the operating system crashes, Windows can be configured to write a crash dump file capturing error codes, call stacks, loaded driver state, and varying extents of memory, depending on the dump type configured.
Examiners can deliberately invoke crash dump generation through two distinct mechanisms. The Sysinternals tool NotMyFault deliberately triggers a kernel panic, causing the system to crash and write a crash dump upon reboot—the running system is terminated by the process. LiveKD (also from Sysinternals/Microsoft), by contrast, generates a point-in-time kernel dump from a live, running system without crashing it by interfacing with kernel debugger infrastructure; the system continues operating after the dump is taken. The two tools therefore carry meaningfully different operational footprints on the target system and should not be treated as interchangeable.
A forensic advantage of crash dump acquisition—particularly when triggered abruptly via a forced panic—is that running processes receive no notification that acquisition is occurring, reducing the window available for malicious code to detect, react to, or evade the capture. However, the forensic utility of a crash dump depends critically on which dump type has been configured, and this is where examiners must exercise precision. Windows supports three primary dump configurations:
- A Minidump captures only basic error metadata, register state, and a minimal stack trace — it is far too limited for substantive memory forensics.
- A Kernel Memory Dump captures kernel-mode memory only, excluding all user-mode process memory. This is the Windows default, and it is this type to which the limitation most commonly cited applies: significant evidence can reside in user-mode process space—injected shellcode, heap artifacts, decrypted payloads, in-process network buffers—none of which is captured in a kernel-only dump.
- A Complete (Full) Memory Dump captures the entirety of physical memory and is equivalent to a raw physical memory acquisition. The incompleteness limitation does not apply to this type.
Examiners should therefore be deliberate about configuring the dump type before invoking acquisition and should default to a complete memory dump wherever the target system's RAM capacity permits. Regardless of type, crash dump output can be analyzed with Volatility, WinDbg, and compatible tooling. In both incident response and controlled malware-analysis lab environments, deliberately invoked crash dumps represent a legitimate and forensically defensible acquisition technique—provided the dump type, acquisition method, and their respective limitations are clearly documented in the case record.
Windows Hibernation
The Windows hibernation feature (ACPI S4 sleep state) allows a machine to save its current state to disk and power off entirely, restoring that state exactly when the machine is next powered on. As one forum commenter aptly put it, "Hibernate lets you cram your laptop safely into its bag." The state saved includes the contents of physical memory and the processor's own register state, written to a file at C:\hiberfil.sys. From a memory forensics standpoint, hibernation produces a serialized image—an atomic, fixed snapshot of memory that does not suffer from the smearing and non-repeatability problems inherent in live acquisition. No data is missed because it relocated while the capture was in progress.
A critical practical point that cannot be omitted: hiberfil.sys is not a raw memory image. The file's contents are compressed using Microsoft's Xpress algorithm (an LZ77 + DIRECT2 implementation), and the file cannot be loaded directly into Volatility or any other memory forensics framework. Conversion to raw format is a required prerequisite step, typically performed via Volatility's imagecopy plugin, the MoonSols/Comae hibr2bin tool, or Arsenal Image Mounter.
Equally critical is knowing which type of hiberfil.sys you are dealing with. Modern Windows (8 through 11) ships with Fast Startup—also called Hybrid Boot or Hibernation—enabled by default. When a user clicks "Shut Down" on a Fast Startup-enabled machine, Windows does not perform a full hibernation: it logs the user out, saves only the kernel and loaded drivers to hiberfil.sys, and powers off. The resulting file contains no user-mode process memory, no open documents, and no application state. On full hibernation, by contrast, the complete memory contents are serialized. Windows 10 and 11 further formalize this distinction through two explicit hiberfile size configurations: a Full type (approximately 40% of installed RAM) supporting complete hibernation, hybrid sleep, and Fast Startup; and a Reduced type (approximately 20% of installed RAM) supporting Fast Startup only. Examiners should establish which configuration is present before drawing conclusions about what a given hiberfil.sys contains—in practice, the majority of systems encountered in the field will have a Fast Startup artifact rather than a full hibernation image.
One further acquisition constraint: Windows maintains an open file handle to hiberfil.sys while the system is running, preventing any user—including Administrator—from reading the file directly on a live system. Reliable acquisition typically requires imaging the storage device offline or using tooling that accesses the file through raw NTFS read operations or a kernel-mode driver.
A downside of hibernation from an investigative standpoint is that Windows issues ACPI S4 sleep preparation notifications before writing memory to disk. Each process is given an opportunity to act before the state is committed. Legitimate software may respond innocuously—prompting the user to save an open document, for instance—but malicious code could exploit this window to push sensitive in-memory data out to the paging file, wipe encryption keys, or take other anti-forensic action before the hibernation write begins. Additionally, network connections are typically torn down and DHCP leases released during hibernation preparation, meaning active TCP connection state may not be recoverable from the hibernation file.
When a full hibernation image is present, however, its forensic value is substantial. It provides a complete, serialized snapshot of system state from a fixed moment in the machine's past—whether that moment was thirty seconds before the examiner acquired the device or three months prior. If full-disk encryption was mounted at the time of hibernation, the encryption keys were in memory and will be present in the hibernation file—though examiners should note that on BitLocker-protected systems with modern Windows configurations, the hibernation file itself may be encrypted by BitLocker, requiring the BitLocker recovery key or VMK before the file's contents are accessible at all.
Memory Acquisition Tools
Whichever memory acquisition tool you intend to deploy during incident response, it must be tested thoroughly—across multiple systems, under varied conditions—before it goes anywhere near a real engagement. If a disk imaging tool fails, you typically have a write-blocked copy to fall back on. If memory acquisition fails, that state of the system is gone. The failure mode is not a retry—it is permanent evidence loss, and in the worst case, a system crash that eliminates everything. When evaluating and testing a memory acquisition tool, the following questions should guide your assessment:
- Does the tool support the operating systems you will realistically encounter? For Windows, this means Windows 10, Windows 11, and current Windows Server versions (2016, 2019, 2022, 2025). Legacy OS versions—XP, Vista, Server 2003 — are end-of-life and no longer relevant to most enterprise engagements. Does the tool support 64-bit and 32-bit architectures? What about Linux distributions and macOS (not "OS X," which was retired as a product name in 2016)?.
- On 64-bit Windows, all kernel-mode drivers must carry a valid code signature — a requirement in force since Windows Vista. Because memory acquisition tools load kernel-mode drivers to access physical memory, an improperly signed or unrecognized driver will simply fail to load. On systems with Hypervisor-Protected Code Integrity (HVCI)—a Virtualization-Based Security feature increasingly enabled by default on modern Windows 10 and 11 hardware — the bar is higher: only drivers that meet WHQL certification requirements are permitted to load at all. Test your tool explicitly against HVCI-enabled systems, because several widely used acquisition tools fail in this configuration.
- Most enterprise endpoints today run an EDR agent. These products are specifically tuned to detect drivers that grant arbitrary physical memory access, because that is exactly what sophisticated malware does too. Your acquisition tool may be detected, blocked, or trigger an alert that tips off a threat actor before you have completed your capture. Know how your tool interacts with the security stack in your environment before an incident forces you to find out under pressure.
- What access level does the tool require, and is there a built-in mechanism to verify those privileges are available before the tool attempts to run?.
- Does the tool produce a raw linear image, an AFF4 container, a crash dump, or a proprietary format? The output format determines which analysis frameworks can consume it directly and whether a conversion step is required before analysis can begin.
- Does the tool compute and record a cryptographic hash of the acquired image? This is a baseline chain-of-custody requirement. Some tools do not include it natively.
- Where is the output written? Writing to the suspect system's own storage risks overwriting unallocated space and other evidence of potential evidentiary value. Preferred alternatives include a network share or dedicated forensic media. Each choice carries trade-offs: network acquisition avoids local writes but introduces network artifacts and may be slow over constrained links; removable storage avoids network exposure but introduces USB insertion artifacts into the registry and event logs. Whatever choice is made must be documented and defensible in court.
- With enterprise servers commonly provisioned with 64 GB to 1 TB of RAM, acquisition time is now an operational variable. A tool that requires two hours to acquire a large server may not be appropriate when rapid triage is the priority.
- Does the tool support compressing the output to reduce transfer time and storage requirements? Can the image be encrypted in transit or at rest to protect its contents?.
It is worth understanding that the kernel-mode driver a memory acquisition tool loads is, by design, an extremely privileged component—one that grants read (and sometimes write) access to arbitrary physical memory. Recent research has demonstrated that even widely trusted acquisition drivers can carry serious vulnerabilities. CVE-2024-12668, for instance, affected WinPmem versions prior to 4.1 with a write-zero-where primitive exploitable to disable Driver Signature Enforcement on the target system. Keep your acquisition tools current, validate their versions before deployment, and understand that loading an acquisition driver is itself a non-trivial, non-zero-impact intervention on the target.
Some specialized tools support acquiring memory from hardware devices beyond main RAM—GPU frame buffer memory, for instance—which can contain forensically relevant artifacts. This is an emerging and niche capability, not yet a standard feature of mainstream acquisition toolkits, but worth evaluating if your investigative scenarios might call for it.
The Windows kernel exposes a section object named \Device\PhysicalMemory that provides direct access to the system's physical memory. Prior to Windows XP Service Pack 2 and Windows Server 2003 Service Pack 1, this object could be opened directly by user-mode programs—a significant security exposure, since any process capable of opening the handle could read or write arbitrary physical memory regardless of OS-enforced access controls. Beginning with those service packs, Microsoft removed user-mode access entirely: all forms of access—read and write alike—are refused when \Device\PhysicalMemory is accessed from a user-mode application, regardless of the privilege level of that application (Administrator, Local System, or otherwise). Kernel-mode access remains unchanged. As a practical consequence, user-mode memory acquisition tools cannot open a handle to \Device\PhysicalMemory directly; they must rely on a kernel-mode driver to open the object on their behalf and mediate all physical memory reads through it—which is why every serious Windows memory acquisition tool ships or loads a signed kernel-mode driver.
Reading from \Device\PhysicalMemory is not without hazard. Portions of the physical address space are not backed by RAM at all—they are mapped to hardware devices attached to the system. The memory space for devices such as video adapters, network cards, and other PCI/PCIe peripherals is mapped into specific ranges of the physical address map, allowing the OS to communicate with those devices by reading and writing those addresses. The hardware responds to accesses in ways entirely determined by the device's own firmware and design. A read may return valid data, return garbage, or trigger the device to perform some internal action. A write may update device state, or it may cause the device to behave unpredictably. In computer science terms, the behavior is undefined—and in practice, accessing these regions during memory acquisition can hang the imaging tool or induce a system crash, destroying the very evidence the acquisition was meant to preserve.
These device-mapped regions are placed below the 4 GB boundary in the physical address space. On 32-bit (x86) systems, this is a direct consequence of the 32-bit address space ceiling. On 64-bit (x64) systems, the operating system itself can address far more than 4 GB of physical memory—but the underlying PCI and PCIe hardware devices commonly implement only 32-bit address decoders, making them physically incapable of responding to addresses above 4 GB. Firmware (BIOS/UEFI) therefore places these MMIO mappings below the 4 GB mark for hardware compatibility, irrespective of the OS's own addressing capability. As a result, the physical address space below 4 GB on any modern system is a mix of actual RAM and device-mapped regions—and the two must be distinguished before any acquisition begins.
This is precisely what the Hardware Resource Tree shown above illustrates. The range 0xa0000–0xbffff, for example, is mapped to the VMware SVGA 3D adapter rather than to physical RAM. Any data written to or read from those addresses is translated into a request directed at the video hardware, not a memory operation. Memory acquisition tools must enumerate the system's physical memory map—from sources such as the BIOS/UEFI-provided memory descriptor tables, the Windows hardware registry hive, or the ACPI memory map—and exclude all MMIO-mapped regions from their read pass. Early memory imaging tools that did not perform this exclusion were susceptible to exactly the kind of hangs, bus errors, and system crashes described above.
A practical forensic consequence of MMIO mappings is that a portion of installed physical RAM may be inaccessible to the operating system. This is an architectural effect specific to 32-bit (x86) Windows configurations: because the entire addressable space is bounded at 4 GB, any portion of that space consumed by MMIO region reservations reduces the RAM the OS can use. On the system shown in the image above, for example, 4 GB of physical RAM was installed, yet only approximately 2.74 GB was visible and usable to the operating system—the remainder of the physical address space below 4 GB having been reserved for device-mapped memory regions. The exact figure varies by hardware configuration depending on how many PCI/PCIe devices are present and how much address space their MMIO windows consume.
On 64-bit Windows with modern BIOS/UEFI firmware, this issue is substantially mitigated: the RAM displaced by MMIO mappings is typically remapped by the firmware to addresses above the 4 GB boundary, where a 64-bit OS can reach it. The usable-RAM-capacity problem described above is therefore primarily encountered on 32-bit Windows installations or on older hardware with firmware that does not perform this remapping.
From a memory forensics standpoint, what matters is not the capacity impact but the acquisition risk: any tool that attempts to read from MMIO-mapped addresses risks unpredictable hardware behavior—up to and including a system crash that destroys the evidence being acquired. ManTech's mdd (Memory DD), a now-legacy imaging tool last updated around 2006–2007 and largely superseded by modern acquisition frameworks, was known to hang the target system when its sequential read pass encountered MMIO regions mapped to certain video adapters. Modern tools handle this by enumerating the safe physical memory ranges from the system's memory map before beginning acquisition and skipping all MMIO-mapped regions. This behavior should be explicitly verified when testing any acquisition tool—confirming that it correctly enumerates and avoids device-mapped memory is a required step in any pre-deployment validation.
Malware Evasion of Memory Imaging
Even more insidious than data that was legitimately not captured by a memory imaging program is malware that evades memory imaging programs. Remember that malware is most likely running on the victim system and has hooked operating system functions. It could detect the name of your imaging program as it's being started and interfere with its operation. It could prevent the program from running at all, feed it false data, or just excise those portions of memory that contain the malicious software itself. This is vastly different from imaging traditional media. When you image a hard drive, the hard drive can't fight back (SSDs with background garbage collection and TRIM are a partial exception, though that's incidental rather than adversarial). Much research has been conducted in the area of "anti-acquisition." Three examples of proof-of-concept tools created by security researchers show the evolution of sophistication in modern malware evasion techniques.
The first example, Shadow Walker, developed in 2005 by Sherri Sparks and Jamie Butler, is a rootkit that evades memory analysis and capture by differentiating and filtering execute, read, and write accesses to its own memory sections. It works by hooking the page fault handler and exploiting the fact that the processor caches address translations separately for instruction fetches and for data accesses (the ITLB and DTLB). By desynchronizing these two caches for a given address, the rootkit can present clean, executable code when the CPU is fetching instructions to run while feeding altered or garbage data to anything reading the same memory as data—which is how signature-based scanners typically inspect memory. This lets it evade analysis while continuing to execute normally.
The "One-Byte Modification for Breaking Memory Forensic Analysis" technique was first presented by Takahiro Haruyama and Hiroshi Suzuki at Black Hat Europe 2012. They presented research that identified the specific signatures and byte offsets that the top three memory analysis tools of the time—Volatility, Memoryze, and Responder Community Edition—used to identify processes and operating system versions. With this analysis, they presented a POC driver that manipulated these identified offsets by a single byte so that the running analysis tool is unable to correctly analyze the resultant memory image.
Another impressive advancement in "anti-analysis" research was presented by Luka Milković at the 29th Chaos Communication Congress (29C3) in December 2012. His tool, Dementia, evades memory capture by intercepting the acquisition tool's writes to its output—either through inline hooking of NtWriteFile or through a file-system minifilter (the two approaches are alternatives, not used together). Whichever driver is used, the buffer being written by the memory acquisition tool is manipulated so that any reference to the target process and its kernel objects is removed, and the resultant memory image file contains no evidence of that running process.
A unique anti-memory-acquisition/analysis proof of concept is ADD (Attention Deficit Disorder), developed by Jake Williams and presented with Alissa Torres at ShmooCon X in 2014. Rather than hiding artifacts, ADD takes the opposite approach: it litters memory with forged EPROCESS, TCP_ENDPOINT, and FILE_OBJECT structures, sending the examiner down false trails—files that appear to have been loaded and network connections to rogue IPs or domains that never actually existed. It's a rough proof of concept by the author's own admission (the fake objects don't hold up well under closer scrutiny), but it illustrates a different kind of anti-forensic strategy: burying the signal in noise rather than removing it.
As with the broader arms race between malware sophistication and analyst tradecraft, anti-analysis techniques keep pushing the boundary of what's detectable. Gargoyle, introduced in 2017 by Josh Lospinoso, is the most recent example. One of the ways analysts detect code injection is by looking for executable memory that isn't backed by a file on disk. Gargoyle evades exactly that check: it keeps its malicious code sitting in read/write-only (non-executable) memory almost all the time. A Windows timer is configured to fire periodically, and on expiry it queues an APC (Asynchronous Procedure Call) whose callback runs a short ROP (return-oriented programming) chain that invokes the underlying NtProtectVirtualMemory syscall directly—meaning there's no ordinary call to VirtualProtectEx for a hook or scanner to catch. That ROP chain flips the memory region to RWX just long enough to execute the payload, then flips it back to RW-only immediately afterward. Because the code is only ever briefly executable and never through a conventional API call, standard "scan for RWX pages" or "hook VirtualProtect" detection strategies miss it entirely. (Full PoC: https://github.com/JLospinoso/gargoyle).
Though all of these remain proof-of-concept tools, it's reasonable to expect future malware to adopt more of these anti-acquisition behaviors, further complicating the process of capturing a trustworthy memory image.
Shadow Walker
The Shadow Walker rootkit uses TLB manipulation to give investigators a false picture of memory. While the investigator is dumping memory and believes the capture is sound, the split between instruction and data TLB entries is quietly substituting altered content for any read that touches the malicious code's memory region—so the dump itself looks clean even though it isn't. If an investigator later identifies the compromise (typically through IDT analysis revealing a hooked page-fault handler or through timing-based side-channel detection of the trap), that discovery usually comes too late to matter: by then the machine has likely been power-cycled, and the volatile evidence of the original compromised state is gone for good. A subsequent dump can be perfectly clean—it just won't contain what you actually needed to find.
One-byte abort or Abort-Factor Attack
By modifying kernel structures in memory, the one-byte modification attack disrupts the analysis of physical memory — and in some documented cases, the acquisition of it as well, where a single altered byte in a structure like NumberOfRuns has caused acquisition tools to fail outright. The authors noted that many of the structures relied on by forensic tools—kernel virtual-to-physical address translation, operating-system version and architecture identification, and location of core kernel objects such as process lists—are not actually consulted by the operating system during normal operation. So corrupting a single byte in one of these fields breaks the forensic tool's ability to correctly identify or parse the structure, without causing any instability or crash on the live system. The authors tested a range of such values across different Windows platforms and tools.
Defeating this class of attack reliably would require the OS itself to actively validate the integrity of these specific structures at runtime—conceptually similar to what Kernel Patch Protection (PatchGuard) already does for a different set of critical kernel structures, triggering a bugcheck (Stop 0x109, CRITICAL_STRUCTURE_CORRUPTION) if tampering is detected. Extending that same kind of integrity-checking to the debug and version-identification structures targeted by this attack would close the gap—but as far as I can confirm, that's not something Windows currently does for these specific fields.
Dementia
Dementia operates against the user-mode side of the acquisition process. For most memory acquisition tools, the kernel driver pulls physical memory into a buffer and hands it up to the user-mode capture application—via calls like DeviceIoControl against a handle to the driver's device object—before that application writes the data to disk. By hooking those calls in user mode, Dementia can substitute what the capture tool actually receives: it can zero out selected regions of memory to hide a targeted process's artifacts, or, taken further, disrupt the tool enough to prevent a usable capture altogether. This approach requires no kernel driver of its own, but it only works against tools that transfer memory through a user-mode buffer—which are most of them, but not all.
A small number of tools (Win32dd, notably) acquire memory and write it to disk entirely from kernel mode, so there's no user-mode buffer to intercept. Against those, Dementia switches to a kernel-mode approach instead—either an inline hook of NtWriteFile or a file-system minifilter driver—that scrubs the same artifacts from the buffer just before it's written to the output file. The two approaches are not used together; which one applies depends on the target tool's architecture. Even so, Dementia's author has reported it does not reliably defeat every tool—Winen and OSForensics were both noted as holdouts.
Rather than needing to know a device file name in advance, Dementia's practical dependency is simpler and cruder: it identifies which tool is running by its process name, which is why running an acquisition tool under its default, unrenamed filename makes it trivially easy to target.
Attention Deficit Disorder (ADD)
By creating fake objects in memory, ADD causes scanning plugins to display erroneous results — it can litter the process list with decoy processes, fake network connections, and phantom files to lead an investigator down false trails. Both ADD and its underlying course were created by Jake Williams and Alissa Torres, co-authors of SANS FOR526 (Memory Forensics In-Depth), who presented it as a proof of concept at ShmooCon X in 2014.
Whether ADD demonstrates real frailty in current memory forensics practice is genuinely disputed. Volatility's own lead developer, Michael Hale Ligh, published a detailed rebuttal arguing the opposite: ADD's decoys are, by his assessment, poorly constructed—its fake network connections appear without an owning process, its fake processes are caught by existing cross-view detection techniques (psxview identifies them through methods the decoys do not account for), attempting to dump one of the fake processes throws an error that draws attention rather than deflecting it, and its fake files appear on devices that do not physically exist. His broader point is that the concept of decoy objects is not new—it was already discussed in 2007 research on pool-tag scanning—and that a well-instrumented analyst using cross-view comparison and corroborating evidence (network logs, packet captures, disk artifacts) will expose the fakes quickly. So rather than treating ADD as proof that memory forensics is fundamentally fragile, it's more accurate to present it as a case study in why cross-view and corroboration-based methodology exists in the first place — and as a reminder that a proof-of-concept anti-forensics tool being possible to build does not automatically mean it is effective against a competent examiner.
Gargoyle
Gargoyle defeats a common heuristic in memory scanning: looking for memory that is marked executable. Rather than sitting in executable memory where a scanner could find it, Gargoyle keeps its code in memory marked read/write (RW)—writable, but not executable—for almost its entire lifetime.
A Windows timer is configured to fire at a set interval. When it expires, the system queues an Asynchronous Procedure Call (APC) to the thread, and that APC's callback invokes a short ROP (return-oriented programming) chain—meaning there's no ordinary function call for a scanner to catch mid-execution. The ROP chain invokes the underlying syscall that VirtualProtectEx would normally wrap, changing the malicious code's memory permissions to executable; the code runs, and then the ROP chain issues the same syscall a second time to flip the permissions back to non-executable RW—at no point going through the ordinary VirtualProtectEx call a hooking-based detector would intercept. The timer then resets, and the cycle repeats at the next interval.
Because the code is executable for only a brief window and otherwise sits in ordinary read/write memory, this technique evades most malware-scanning plugins that rely on flagging suspicious executable regions—including malfind—since a memory dump taken while the code is dormant simply won't show anything worth flagging.
Freeware Memory Acquisition Tools
There is a multitude of third-party memory acquisition tools that support current versions of Windows (and, to varying degrees, Linux and macOS). No single tool is universally recommended; forensic examiners should gain familiarity with several options. The best choice for a given investigation depends on circumstances such as organizational policies, budget, target operating system and architecture, security features (e.g., HVCI or Secure Boot), and the need for minimal footprint or specific output formats.
WinPmem
DumpIt (now Magnet DumpIt)
DumpIt, originally from Moonsols and later Comae, is a simple, fast, kernel-mode memory acquisition tool. Comae was acquired by Magnet Forensics; the tool is now distributed as the free Magnet DumpIt for Windows. It supports x86, x64, and ARM64 Windows systems and produces Microsoft crash-dump format files without requiring a pre-installed agent or triggering a BSOD. A Linux variant also exists. Related conversion utilities (such as the older hibr2bin) may still be referenced in older toolkits but should be verified against current Magnet offerings.
Redline / Memoryze (Mandiant)
Belkasoft Live RAM Capturer
FTK Imager (AccessData / Exterro)
Caveats
Commercial Memory Acquisition Tools
In addition to free tools, many commercial incident-response (IR) and endpoint-detection-and-response (EDR) products include memory-acquisition capabilities. The tools noted below are of particular interest because they offer distinctive or advanced features (remote access, multi-OS support, encryption/compression, or specialized formats). Availability, supported platforms, and feature sets change over time; always verify current details with the vendor.
F-Response
F-Response provides read-only remote access to the physical disks, logical volumes, and physical memory of networked Windows, Linux, and macOS systems. Once connected, an examiner can use virtually any analysis platform (including common memory-forensic frameworks) against the remote target. Memory is typically presented via MemoryShares as a live image file suitable for collection or direct analysis. Current editions (including F-Response Universal and Enterprise) are dongleless in some configurations, support Active Directory authentication, and can also reach certain cloud storage and network shares. Official site: https://www.f-response.com/.
Winen/EnCase memory acquisition (OpenText)
Surge Collect (Volexity)
HBGary Responder Pro/FastDump Pro (retired / historical)
Many other commercial IR/EDR platforms (Magnet AXIOM Cyber, various EDR agents with remote collection modules, etc.) also offer memory-acquisition features. The list above is only a representative sample of tools that have historically stood out for remote capability, multi-platform support, or specialized output options. Always test the chosen tool against the specific target environment, document the version used, and follow organizational and legal requirements for evidence handling.
Paging File
Along with capturing the contents of a computer's memory, you should also capture the paging file. The paging file (pagefile.sys) contains data that is not backed by a file on disk — that is, private or anonymous memory not associated with an executable or DLL that could otherwise simply be re-read from its original file. This includes user data, document fragments, credentials, and malicious programs. Valuable evidence is frequently recovered from it!.
Windows enforces a hard-coded limit of 16 paging files system-wide. In practice these are typically configured one per volume, though Windows does not strictly require that — Microsoft's own guidance notes you can place more than one paging file on a single volume, it just provides no performance benefit and is not recommended. By default, the paging file is stored in the top-level directory of a volume as pagefile.sys, but both its location and size are configurable via the registry or system settings. A second file, swapfile.sys, may also be present on modern Windows versions and is primarily used by Universal Windows Platform (UWP) apps.
The paging file, like the hibernation file and other operating system files, is held open exclusively by the operating system while Windows is running. You cannot copy it from Windows Explorer, for example—any normal file-copy attempt will fail with a sharing violation. Acquisition therefore requires a tool that can read the raw volume, use a kernel driver, or leverage Volume Shadow Copies/specialized forensic utilities (examples include FTK Imager with the “include pagefile” option, certain WinPmem builds, Magnet Response, Belkasoft tools, or raw-copy utilities). The ideal approach is to capture physical memory and the paging file(s) in as short a time window as possible so that their contents remain closely synchronized. If you're working with a VMware virtual machine, one option is to mount the VMware virtual disk with VMware's own utilities and copy the paging file that way. This works especially well when the memory image and paging file come from a memory-inclusive snapshot—one where VMware captures the .vmem file and the disk state together at the same instant—since that guarantees the two are perfectly synced; mounting a live, currently-running VM's disk separately from a memory dump taken at a different moment will not give you that same guarantee.
Your memory acquisition tool should capture the paging file alongside main memory whenever possible, and the goal is to capture both in as little time as possible so the two remain as closely synchronized as they can be. Many analysis programs support incorporating the paging file into their analysis. Volatility 3 can also make use of a pagefile when it is supplied and a swap layer is correctly configured; earlier statements that Volatility cannot use the paging file are outdated. Including the pagefile expands the recoverable address space and can reveal data that was paged out of physical RAM. Using the paging file allows you to recover data that was paged out and is not backed by disk—potentially malicious code, documents, or other key information. You should use the paging file whenever possible.
There is also a ClearPageFileAtShutdown setting that, when enabled, zeroes out inactive pages in the pagefile when the system shuts down. This is maintained in the registry at HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\ClearPageFileAtShutdown (note the space between "Memory" and "Management" — a value of "1" enables clearing; a value of 0 (the default on most systems) leaves the data intact.). This is a relevant value to check when assessing whether the pagefile might still hold notable artifacts—though keep in mind it only zeroes inactive pages at the moment of shutdown; pages still actively in use by a process at that instant are not guaranteed to be cleared, so even a system with this setting enabled is not a guarantee that nothing recoverable remains.
Free Live Response/Triage and Memory Acquisition Tools
Several free tools are specifically useful for live response or for reading and analyzing memory on a running host. A few notable examples include:
Redline (Mandiant / legacy FireEye)
Redline is a free triage tool that collects and analyzes memory, process, file-system, and other host artifacts and can assign a risk index (historically called a Malware Risk Index) to processes. It historically required installation and a compatible .NET runtime; deploying it on a live system can overwrite volatile data and leave a noticeable forensic footprint. After Mandiant’s acquisition by Google, the free standalone Redline package is no longer actively promoted or updated in the same way. Availability and current support should be verified directly; many organizations have moved to other free or commercial triage options.
Kansa (Dave Hull)
Sysinternals Suite (Microsoft)
Many other free and commercial tools also support live memory inspection or host triage. Always weigh the forensic footprint of any live tool against the investigative need, test it in a lab first, and document the exact version and method used.





Post a Comment