Volatility Basics: Analyze a Memory Dump Like a Forensics Pro (Free)


When a computer is attacked, the disk only tells half the story. The other half lives in RAM: running processes, injected code, open network connections, decrypted passwords. Volatility 3 is the free, open-source tool that reads that memory — and it is a core skill for anyone who wants to do incident response.

This guide uses your own lab only. Never analyze a memory dump from a machine you do not own or do not have written permission to investigate.

Step 1: Get a memory image

You need a RAM capture to practice on. In your lab, take a snapshot of a test virtual machine, or use a sample image from a public forensics training set. Save it as mem.raw.

Step 2: Install Volatility 3

git clone https://github.com/volatilityfoundation/volatility3.git
cd volatility3
pip install -r requirements.txt
python3 vol.py --help

Volatility 3 is pure Python and runs on Linux, Windows and macOS.

Step 3: Identify the operating system

Volatility needs to know which OS the dump came from:

python3 vol.py -f mem.raw windows.info

This prints the OS version, build and architecture. If it fails, your image may be corrupt — or from a different OS family. Try linux.info or mac.info instead.

Step 4: List running processes

python3 vol.py -f mem.raw windows.pslist

Look for processes with strange names, processes running from odd paths like C:\Users\Public\, or a process with no parent. Malware often hides by naming itself after a real Windows process — check the path, not just the name.

Step 5: Check network connections

python3 vol.py -f mem.raw windows.netscan

This shows every open connection at capture time. An unknown process talking to an unknown external IP is one of the strongest signs of compromise.

Step 6: Hunt for injected code

python3 vol.py -f mem.raw windows.malfind

malfind finds memory regions that look like injected code — a classic sign of process injection, the technique most modern malware uses to hide inside legitimate programs.

Step 7: Dump suspicious processes for deeper analysis

python3 vol.py -f mem.raw -o ./out windows.memmap --pid 1234 --dump

You can then scan the dumped file with an antivirus engine or a strings tool in your lab.

What to practice

  • Capture memory from your own VM before and after running a known test sample in an isolated lab, and compare the process lists.
  • Learn one plugin a week. pslist, netscan, malfind and cmdline cover most real investigations.
  • Write down what “normal” looks like on your lab machine first. Forensics is mostly spotting what does not belong — and you cannot spot it if you never learned normal.

Memory forensics sounds advanced, but the workflow is simple: capture, identify, list, compare. Master these four commands and you can already answer the question every incident starts with — what was actually running on this machine?

Comments

Popular Posts