Professor Franklin
Accessibility settings

Preferences are saved in this browser when storage is available.

Getting Started

Chapter 15 · Reading 1 of 3

Acquiring and reading memory

CHFI domains 1, 4, 5, 6

The endpoint alert at the Mercer County Public Library names a process, svchost.exe, connecting to an outside address from the workstation MCPL-STAFF-07. The path recorded for its executable leads to a file that is no longer on the disk. If the workstation is shut down, the only copy of whatever is running will be lost. Memory comes first.

Acquire memory before anything else

A memory image is a copy of a system’s physical RAM. It contains running and recently ended processes, their loaded code, network connections, open files and registry keys, command lines, decrypted data and sometimes credentials. Following the order of volatility (Chapter 3), it is collected before the disk.

On Windows, tools such as WinPmem, Magnet RAM Capture and DumpIt load a kernel driver and write RAM to a file on an external drive or network share. On Linux, LiME (Linux Memory Extractor) is a loadable kernel module that writes memory to a file or over the network. It must be compiled for the exact running kernel, so preparing builds in advance for common kernels saves time. AVML is a userland alternative that works on many distributions without a kernel module. On cloud virtual machines and hypervisors, a VM snapshot that includes memory may serve.

Figure 1. Memory acquisition at the library
  1. Isolate the network, if authorized, without powering off. The library’s team blocks the workstation at the switch port so the process cannot receive new instructions.
  2. Run WinPmem from the examiner’s USB drive, writing to that drive. Record the tool version, the command and start and end times.
  3. Hash the image and note its size. 16 GB of RAM produces about 16 GB of image.
  4. Then collect secondary memory sources and the disk.

Secondary sources: hibernation and page files

Windows writes parts of memory to disk. hiberfil.sys, in the root of the system drive, holds a compressed copy of memory when the system hibernates and is also used by Fast Startup. It can be decompressed and analyzed like a memory image, giving a snapshot from the last hibernation. pagefile.sys holds memory pages moved out of RAM, and swapfile.sys serves modern apps. Page files are fragments without the structures that tie them to processes, so they are searched with strings, YARA rules and carving rather than parsed. Linux uses a swap partition or swap file in the same way.

Read the image with Volatility 3

Volatility 3 is the standard open-source memory analysis framework. It identifies the operating system and its symbols automatically for Windows images, and requires a symbol file matching the kernel for Linux and macOS images. Analysis is run as plugins named by platform:

Figure 2. Plugins that answer the first questions
PluginAnswers
windows.pslist / windows.pstreeWhich processes are on the active process list, and which started which
windows.psscanProcess structures found by scanning memory, including exited and unlinked (hidden) processes
windows.cmdlineThe command line each process was started with
windows.netscanNetwork connections and listening sockets, with owning process
windows.dlllist / windows.handlesModules loaded and objects such as files and registry keys each process holds open
windows.svcscanServices and their binaries
windows.malfindMemory regions that look like injected code (Reading 2)
linux.pslist / linux.bashLinux processes; bash command history recovered from memory

A typical command is vol -f MCPL-STAFF-07.raw windows.pstree. The results of each plugin are saved with the plugin name and Volatility version so that another examiner can rerun them.

Figure 3. Part of windows.pstree for MCPL-STAFF-07
PID   PPID  ImageFileName  CreateTime (UTC)
 704   596  services.exe   2026-11-20 08:01:12
* 1188  704  svchost.exe   2026-11-20 08:01:14
3920  3880  explorer.exe   2026-11-20 08:03:40
* 4412 3920 wscript.exe    2026-11-20 14:07:29
** 6120 4412 svchost.exe    2026-11-20 14:07:33
  1. The Windows Script Host, started from Explorer: the user opened a script file.
  2. An svchost.exe started by wscript.exe. A genuine svchost.exe is started by services.exe and runs from C:\Windows\System32.

windows.cmdline shows PID 4412 ran wscript.exe "C:\Users\rcole\Downloads\Library_Lease_Agreement_template.js", and PID 6120’s path is under AppData\Roaming. windows.netscan shows PID 6120 connected to 203.0.113.61 on port 443. The process tree, the command line and the connection together describe a script that launched a masquerading process which is talking to an external server.

On the exam, the order is memory before disk, WinPmem for Windows and LiME for Linux, and Volatility 3 plugins named by platform. pslist walks the active list, while psscan finds hidden and exited processes too. The next reading, Injected and fileless code, looks inside PID 6120.

windows.netscan

Inspect the three records, then use the evidence to answer the question.

1. Local

10.12.3.44:51022

2. Remote

203.0.113.61:443, state ESTABLISHED

3. Owner

PID 6120, svchost.exe

Apply the reading

pslist shows 84 processes but psscan shows 86. What could the two extra processes be?

Compare your reasoning

They may be processes that have exited but whose structures remain in memory, or processes hidden by unlinking from the active process list. Check their exit times and compare with pstree and other plugins.