Skip to content

Volatility 3 Tutorial: Analyze a Memory Dump Step by Step

Learn how to analyze memory dump step by step guide for Volatility 3

By Sourabh11 min readUpdated

If you have a Windows memory dump and want to know what was running, start with windows.info to confirm Volatility 3 can read the image. Then find a process, see which process started it, and check what the capture actually tells you about its activity. We’ll follow one command prompt from a public training capture and show the rows you can reproduce on your own computer. If you already have Volatility 3 and an extracted image, run the commands below from the folder that contains it. Replace memory.raw with your filename.

Quick start with a Windows memory dump

bash
vol -f memory.raw windows.info
vol -f memory.raw windows.pslist
vol -f memory.raw windows.psscan

The first command should give you system information including the kernel build. The next two show process records from different parts of memory. If windows.info cannot resolve the kernel, start with the checks in Step 3. The examples below were reproduced with Volatility 3 version 2.28.2.

What Volatility 3 reads from a memory dump

A memory image can preserve a process and its command line even when you have no useful record of what ran on disk. Volatility 3 reads operating system structures in the image and presents them through plugins. One plugin can list processes, another can read their arguments, and another can enumerate their loaded modules.

Choose the plugin family for the system that produced the dump. A Windows capture uses windows.* plugins even if you analyze it on a Mac. If your capture came from Linux, start with the Linux symbols guide.

If this is your first look at memory forensics, DFIRScience’s introductory video shows what the workflow looks like in a terminal. Follow the written steps below for the pinned version and training file used in this article.

What you need before you start

You need Python, an extracted system-memory image, and enough space for a working copy and your output. A crash dump from a single application has a smaller scope than a system-memory capture. If you're choosing a practice file, use the one in Step 2 so you can compare your results with ours.

Volatility reads a capture you already have. If you collect memory yourself with a tool such as WinPmem, record how and when you captured it separately from the steps you use to examine it.

If someone handed you a file called memory.dmp, ask how they made it. The extension alone tells you little about which memory it contains. A ZIP still needs extracting, and a single application’s dump lacks the system-wide evidence the process and kernel plugins expect. Keep the original file and work from a copy so the bytes you analyze can be checked again later.

Step 1. Install Volatility 3 and check that it runs

Install the volatility3 package with Python’s package installer, pip. Use a virtual environment so the package stays separate from your other Python projects. The commands use version 2.28.2, the version used for the example.

Windows PowerShell

powershell
py -m venv volatility-env
.\volatility-env\Scripts\python.exe -m pip install volatility3==2.28.2
.\volatility-env\Scripts\vol.exe -h

You can use the executable directly without activating the environment. In the rest of the guide, substitute .\volatility-env\Scripts\vol.exe for vol if you use this setup.

macOS or Linux

bash
python3 -m venv volatility-env
source volatility-env/bin/activate
python -m pip install volatility3==2.28.2
vol -h

What the help command should show

Look for the framework version and a list of plugins. If your shell cannot find vol, check which Python environment you used for the install. Run python -m pip show volatility3 from that environment or call vol by its full path in the environment’s bin or Scripts directory.

When you look up a plugin’s flags, put -h after its name. For example, vol windows.cmdline -h lists the options for that plugin. The examples put the input option -f before the plugin and its own --pid filter after it.

Step 2. Download the training image and verify the working copy

Download Pat’s December 6, 2009 memory capture from the Digital Corpora M57-Patents training scenario. The ZIP is about 160 MB and extracts to a file of about 535 MB. Make a working copy named memory.raw in the folder where you will run Volatility. Leave the extracted original in place so you can make another copy if needed.

From the working folder, use the hash command for your system.

  • Windows PowerShell — Get-FileHash -Algorithm SHA256 .\memory.raw
  • macOS — shasum -a 256 memory.raw
  • Linux — sha256sum memory.raw

The extracted file used here returned this SHA-256.

text
42063da07be9cb515685db8419982ab836b5c767500513d2801bf268e50b2093

If yours differs, check that you hashed the extracted image and used the December 6 capture. Record the filename, source, and hash along with any acquisition notes. A matching hash identifies the file used for the exercise. Capture completeness is a separate question.

Step 3. Identify the captured system with windows.info

bash
vol -f memory.raw windows.info

Start with three fields. Here are the values recovered from our training image, with the rest of the output omitted.

text
Variable  Value
Is64Bit  False
NTBuildLab  2600.xpsp_sp3_gdr.090804-1435
SystemTime  2009-12-06 16:32:25+00:00

The build label, version 5.1, and service-pack value 3 identify this 32-bit Windows XP SP3 image. That tells you which plugin family to use and helps explain a compatibility error later. SystemTime is the clock value Volatility recovered from the image. Use the acquisition record for the start and end of collection, and account for possible clock differences before comparing these times with logs from another machine.

Annotated output from windows.info. Is64Bit is False, the build label indicates Windows XP SP3, and SystemTime is shown in UTC.

What happened to imageinfo?

Use windows.info for Windows system identification in Volatility 3. Older guides used imageinfo to suggest a Volatility 2 profile. Version 3 resolves symbols from the captured system. If you copied a command containing --profile, start again with the command above.

What to check when Windows symbols fail to load

First check that -f points to the extracted image. Next check the symbol error. Volatility can use the captured Windows kernel's Program Database (PDB) identifier and age to find a matching symbol table. If it needs to create the table, it can download the matching PDB from Microsoft. Resolve or provision the matching symbols before taking an analysis workstation offline. Once available locally, use --offline before -f to repeat the command without fetching symbols.

Think of a memory layer as Volatility’s way of turning addresses into bytes it can read. A symbol table tells it what structures those bytes represent. Both requirements can appear in the same error. Check that the correct extracted file opens first, then run with verbose logging to see where the attempt stopped.

bash
vol -v -f memory.raw windows.info

For an offline repeat run, add --offline before -f once the matching symbols are available locally. Copying a symbol file from a similar Windows build is unreliable. Volatility looks for the PDB identifier and age that match the captured kernel.

Step 4. Pick a process from the active Windows list

bash
vol -f memory.raw windows.pslist

pslist walks the Windows active process list. Start with ImageFileName, the process identifier (PID), the parent process identifier (PPID), and CreateTime. Keep those fields together when you compare two views. Windows can reuse a PID after a process exits.

Here are two rows from the sample, with selected columns. The times are in UTC.

text
PID   PPID  ImageFileName  CreateTime (UTC)
4000  1008  explorer.exe   2009-12-06 16:25:44
3432  4000  cmd.exe        2009-12-06 16:26:21

Read across the second row. cmd.exe has PID 3432, and Windows recorded 4000 as its parent PID. Looking up 4000 gives you explorer.exe, which started before the shell. A shell under Explorer can occur in ordinary use. This is a starting point for checking what the shell ran, who was logged in, and whether the timing matters.

See the same relationship in the process tree

bash
vol -f memory.raw windows.pstree

Find explorer.exe in the tree and look below it for the indented cmd.exe row. In this output, each asterisk marks a level of nesting. The excerpt keeps the parent and the shell from that branch.

text
PID     PPID  ImageFileName
4000  1008  explorer.exe
* 3432  4000  cmd.exe
Selected rows from windows.pstree. Match the shell’s parent process ID (PPID) to Explorer’s process ID (PID) to read the relationship.

The tree presents the recorded parent PIDs visually. When the parent row is missing or its start time conflicts with the child’s, save the discrepancy in your notes. A parent may already have exited, or the same PID may have been assigned to another process.

Step 5. Compare the active list with the pool scan

bash
vol -f memory.raw windows.psscan

Windows allocates kernel memory for its process records. psscan searches for those objects in memory, including some that are no longer linked in the active list. Look at these two rows from the scan, with selected fields and times shown in UTC.

text
PID   ImageFileName  CreateTime (UTC)     ExitTime (UTC)
3432  cmd.exe        2009-12-06 16:26:21  N/A
564   ctfmon.exe     2009-12-05 02:11:23  2009-12-06 16:14:32

Both plugins found the shell with the same parent PID and creation time. Only the scan found ctfmon.exe with PID 564. Its exit time was 16:14:32 UTC, well before the recovered system time of 16:32:25 UTC. Its record can survive in memory after the process exits. That’s one reason you can see a scan-only row in an otherwise routine comparison.

Join the two lists by checking the PID, name, and start time together. A PID on its own can be reused. N/A means the plugin displayed no value for that field, so an unavailable exit time leaves the reason for a discrepancy open. Record the fields you matched before you move on.

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.

Step 6. Read the process command line

bash
vol -f memory.raw windows.cmdline --pid 3432

This is the recovered command line for the shell in the sample.

text
PID   Process  Args
3432  cmd.exe  "C:\WINDOWS\system32\cmd.exe"

We can see the executable path and no extra arguments in this field. If someone typed a command after the prompt opened, that input would not appear in the shell’s launch arguments. To answer what happened inside the session, look for other evidence such as a child process created at the relevant time or process creation logs if the system recorded them.

Step 7. Check what the capture can tell you about network activity

On a supported Windows capture, windows.netscan can recover network objects with details such as local and remote addresses, ports, or connection state. Start with the endpoint and time fields you have, then compare them with packet captures, firewall records, or host telemetry.

bash
vol -f memory.raw windows.netscan

On the Windows XP image used here, the final line of the error was:

text
NotImplementedError: This version of Windows is not supported: 5.1 15.2600!

In your notes, state that the plugin could not provide a network view for this build. On a supported image, you can start with a remote address and port that matter to your investigation, then check the owning PID and any timestamp against your process notes. A recovered endpoint gives you a place to look in firewall logs or a packet capture. Those sources help establish whether traffic actually flowed and when.

Step 8. See which DLLs the process had mapped

bash
vol -f memory.raw windows.dlllist --pid 3432

The sample returned these two rows for PID 3432. Other modules are omitted.

text
PID   Base  Name  Path
3432  0x7c900000  ntdll.dll  C:\WINDOWS\system32\ntdll.dll
3432  0x7c800000  kernel32.dll  C:\WINDOWS\system32\kernel32.dll

The base is where that module was mapped in this process’s address space. Start by reading the module name and its reported path together. A familiar name can be stored in an unexpected folder, and an unusual path can have a legitimate explanation. If the module matters to your investigation, check the file from a disk image or another independent source. The mapped-module entry alone tells you little about what the code did.

Use windows.modules for the separate question of which modules were loaded in the kernel.

Annotated windows.dlllist output for PID 3432. Base is the address at which each module is mapped.

Step 9. Put the evidence together

A short lab note can capture the result and the open questions in one place. The active list and the pool scan both show cmd.exe (PID 3432) starting at 16:26:21 UTC with parent PID 4000, which the active list identifies as explorer.exe. The recovered launch path is C:\WINDOWS\system32\cmd.exe. The shell’s later input and network activity remain open questions. For the former, check any available process-creation records. For the latter, start with network logs from the same period.

Scroll horizontally if needed to see the full table.

QuestionWhere to look first
Which system produced the dump?windows.info, then the acquisition record for timing.
Which process am I following?windows.pslist and windows.psscan. Compare PID, name, creation time, and recorded exit time.
What was its parent or launch command?windows.pstree for the recorded relationship and windows.cmdline for the launch arguments.
What code did it have mapped?windows.dlllist for module names and paths. Check files or logs for corroboration.
Is a network view available?windows.netscan on supported builds. Record errors separately from successful runs with no relevant rows.

The same distinction applies to flagged memory regions. If you encounter malfind in a guide, it points to process memory ranges for further examination. Confirm any interpretation with other evidence.

Step 10. Save the commands and results together

Use this short record for each process you follow. Keep the image source, SHA-256, tool version, command output, and any plugin errors with your notes.

text
Process name, PID, parent PID, creation time:
Plugins and matching fields:
Observation supported by the output:
Question still open:
Independent record to check next:

Export the process list as CSV

bash
vol -q -r csv -f memory.raw windows.pslist > pslist.csv
vol -q -r csv -f memory.raw windows.psscan > psscan.csv

Open both files and check the header and first data row before using them in a spreadsheet. The shell can create an output file even when a command fails. Keep the original exports with the command and image hash, and record the time zone when copying timestamps into a report.

Fix common Volatility 3 errors

Scroll horizontally if needed to see the full table.

What you seeWhat to check next
The shell cannot find volActivate the environment or run vol by its full path.
The file cannot be openedCheck the path, permissions, and whether you extracted the archive.
Kernel layer or symbol requirement is unsatisfiedConfirm that the file is a supported system capture, then rerun windows.info with -v and check symbol resolution.
A plugin rejects the Windows versionRecord the missing view and check another evidence source for the same question.
The output is blank or the export has only a headerCheck whether the command succeeded and rerun it without PID filters before concluding there were no matching rows.
pslist and psscan disagreeCompare identity and timestamps, then check whether the scan recorded an exit.

What the memory image leaves unanswered

A capture preserves some of the system’s runtime state. Pages can be missing or unavailable, objects can outlive the processes they describe, and a network view depends on the version and the collection. Use logs, disk records, or network captures to test conclusions the memory image cannot settle on its own.

Try the same workflow on your own

Use the Windows memory forensics worksheet to practice matching process records and check your conclusions against the answer key.

Was this page helpful?