Skip to content

Windows Memory Forensics Lab with Volatility 3

Analyze a public Windows memory dump with Volatility 3. Compare process lists and check your notes against real output and an answer key.

By Sourabh4 min read

One Volatility plugin finds a process that another misses. Before you call it hidden, check whether the scan recovered a recorded exit time. In this lab, you’ll compare two views from the same Windows memory dump, follow one process into its command line and loaded libraries, and write a finding someone else can check.

Quick start

  1. Download Pat’s December 6, 2009 memory capture from the Digital Corpora M57-Patents training scenario. Extract the file and work from a copy.
  2. Use Volatility 3 version 2.28.2 to reproduce the results below. If you still need to install it or configure Windows symbols, use the Windows memory dump tutorial.
  3. Compare the recovered process records before opening the answer key. Allow space for the roughly 160 MB download, the 535 MB extracted image, and a working copy.

Get the memory image and check the hash

macOS or Linux

bash
dump=pat-2009-12-06.mddramimage
shasum -a 256 "$dump"

Windows PowerShell

powershell
$dump = ".\pat-2009-12-06.mddramimage"
Get-FileHash -Algorithm SHA256 $dump
  • Run the commands from the folder containing the extracted image. Use the working copy for the hash and all subsequent commands.
  • Compare the hash with the value below. If yours differs, check the archive date and make sure you hashed the extracted image.
  • If you installed Volatility in a Windows virtual environment without activating it, substitute .\volatility-env\Scripts\vol.exe for vol.
text
42063da07be9cb515685db8419982ab836b5c767500513d2801bf268e50b2093

Run the plugins and record your answers

bash
vol -f "$dump" windows.info
vol -f "$dump" windows.pslist
vol -f "$dump" windows.psscan
  1. From windows.info, record the Windows version, architecture, and recovered system time. What separate record would confirm when the capture started?
  2. In both process views, find a row with the same process ID (PID), name, and creation time. Record its parent process ID (PPID). Then find a row only in the pool scan and check its exit time.
  3. Replace 1234 in the commands below with the PID you matched. Record the recovered invocation and one dynamic-link library (DLL). Say what each observation supports.
bash
vol -f "$dump" windows.cmdline --pid 1234
vol -f "$dump" windows.dlllist --pid 1234
text
Image name, SHA-256, and Volatility version:
Windows build, architecture, and recovered system time:
Process found in both views and matching fields:
Scan-only process and recorded exit time:
Recovered invocation and one mapped DLL:
Finding, supporting output, and what I would check next:

If a command reports an unsatisfied symbol requirement, use the troubleshooting checks below. Once you have your results, compare them with the answer key. A defensible note should let another examiner find the row behind each claim.

Check your findings

Identify the system and its recorded time

The sample is 32-bit Windows XP SP3. The windows.info output also gives the recovered system time. Compare that value with acquisition notes or tool logs before reporting when the image was captured.

text
Is64Bit         False
NTBuildLab      2600.xpsp_sp3_gdr.090804-1435
SystemTime      2009-12-06 16:32:25+00:00
Annotated output from windows.info. Is64Bit is False, the build label indicates Windows XP SP3, and SystemTime is shown in UTC.

Explain why the two process lists differ

Both views showed cmd.exe (PID 3432, parent PID 4000) created at 16:26:21 UTC on December 6. The active list identifies PID 4000 as explorer.exe. Compare name and creation time alongside the PID, because Windows can reuse a PID after a process exits.

text
Selected columns from the recorded output

Plugin  PID   ImageFileName  ExitTime (UTC)
pslist  3432  cmd.exe        N/A
psscan  3432  cmd.exe        N/A
psscan  564   ctfmon.exe     2009-12-06 16:14:32

The exit time makes an ordinary explanation plausible. The scan recovered a process object that was still in memory after ctfmon.exe exited. In an exit-time field, N/A means no value is available in that output. Use the remaining fields and independent records if you need to resolve a less clear discrepancy.

Annotated output from both plugins. cmd.exe has the same process identifier (PID) and parent process identifier (PPID) in both views. ctfmon.exe has a recorded exit time.

Follow the shell into its command line and DLLs

bash
vol -f "$dump" windows.cmdline --pid 3432
vol -f "$dump" windows.dlllist --pid 3432

The recovered argument field shows how the shell was invoked. It does not tell you what someone typed after it started. The DLL rows show the two named libraries mapped in the shell at the reported base addresses.

text
Selected output for PID 3432
Args: "C:\WINDOWS\system32\cmd.exe"

Module        Base
ntdll.dll     0x7c900000
kernel32.dll  0x7c800000
Annotated windows.dlllist output for PID 3432. Base is the address at which each module is mapped.

A short finding for this exercise would be: “Both plugins reported cmd.exe as PID 3432 with the same parent and creation time. Only the pool scan reported ctfmon.exe as PID 564, with an exit time of 16:14:32 UTC. The recorded exit is consistent with a process object that remained after termination.” Save the relevant rows with the finding so another reader can check it.

What to check if you get stuck

Scroll horizontally if needed to see the full table.

ProblemWhat to check
The hash differsCheck the archive date and hash the extracted image.
windows.info cannot resolve the kernelCheck that the path points to the extracted image. Confirm matching Windows symbols are available locally or that the analysis host can reach the symbol server.
The same PID has a different name or start timeCompare the name and creation time before treating the two rows as one process.
The command line is blank or unreadableRecord the field as unavailable. Check other records for how the process started.

Why the network plugin fails on this image

On this Windows XP image, windows.netscan returned an unsupported-version error. Record the network view as unavailable and use a packet capture or host telemetry if the investigation depends on communications.