RAM acquisition: how it works
What volatile memory is, why its data vanishes at shutdown, what paging and hibernation files contain and why every acquisition leaves a footprint on the system.
Volatile memory
RAM keeps data only while it is powered. The operating system uses it for everything in progress: each program loads its code and the data it works on into it. It is therefore the richest source on the state of the computer at that moment, but also the most fragile.
Traces of memory on the disk
- Paging file
- The system moves the least used parts of memory to disk: fragments of RAM remain in the paging file.
- Hibernation file
- When the computer hibernates, memory content is saved to disk, often compressed.
- Crash dumps
- After a serious error the system may write a full or partial copy of memory.
- Virtual machines
- Snapshots of a virtual machine also contain its memory.
The unavoidable footprint
To copy memory you must run a program on the computer itself, and that program in turn occupies some memory. The alteration is minimal but unavoidable: the principle is not to avoid it entirely, but to keep it to a minimum, know it and document it.
RAM acquisition: step-by-step procedure
The stages of a proper memory acquisition: assessing the situation, documenting the screen, running the tool from external media, saving the copy elsewhere, computing hashes.
The pages of this topic
Back to the overviewRAM acquisition: tools
The tools to acquire Windows, Linux and macOS memory and the programs to analyse it, such as Volatility and MemProcFS.
RAM acquisition: mistakes to avoid
The most serious mistakes in memory acquisition: shutting down too early, saving the copy to the computer’s disk, running unnecessary programs, letting the screen lock, not documenting.
RAM acquisition: value in court
Why memory acquisition is a non-repeatable examination, which safeguards it requires in criminal proceedings and how it is made verifiable.
RAM acquisition: case study
A running laptop with a mounted encrypted volume is found during an inspection: how the expert acquires memory and what it yields.
RAM acquisition: checklist
The checks to acquire the memory of a running computer properly.
RAM acquisition: frequently asked questions
Short answers to the most common questions about forensic memory acquisition.