CTF Arsenal
DFIR/Memory Forensics

RAM Image Triage with Volatility 3

Concept

A memory image is a snapshot of a running system's RAM — processes, open network connections, loaded modules, and often cleartext credentials/command history that never touch disk. Volatility 3 parses these structures from the raw image without needing the original OS running.

When to Use

  • Challenge provides a .mem/.raw/.vmem memory image.
  • Investigating what was running at the moment of compromise.

Workflow

  1. 1
    Identify the OS/profile

    Volatility 3 auto-detects symbols for most images.

  2. 2
    Enumerate processes

    pslist/pstree for a process overview, including hidden/orphaned ones.

  3. 3
    Inspect network connections

    netscan for active/historical connections.

  4. 4
    Pull command-line history and loaded modules

    cmdline, dlllist/maps.

  5. 5
    Dump and analyze a suspicious process

    procdump, then static analysis.

Commands

vol -f FILE_PATH windows.pslist
vol -f memory.raw windows.pslist

Lists running processes (PID, PPID, name, creation time) at the time of capture.

  • -f — Path to the memory image.

When to use: First command after confirming the image loads correctly — orients you to what was running.

Expected output:

PID   PPID  ImageFileName
1337  652   svchost.exe
4210  1337  powershell.exe

Look for: Unexpected parent/child relationships (e.g. a PowerShell spawned from an Office process), unfamiliar process names.

Next step: Use windows.pstree for the hierarchy view to spot suspicious ancestry; investigate standout PIDs further.

vol -f FILE_PATH windows.pstree
vol -f memory.raw windows.pstree

Same process listing as a parent-child tree, making injected/orphaned process chains obvious.

When to use: After pslist, to see relationships rather than a flat list.

Expected output:

explorer.exe
  └─ cmd.exe
       └─ powershell.exe -enc BASE64...

Look for: A process spawned from an unusual parent, or a command line containing obfuscated/encoded arguments.

Next step: Pull the full command line for the suspicious PID with cmdline.

vol -f FILE_PATH windows.cmdline
vol -f memory.raw windows.cmdline

Shows the full command-line arguments each process was launched with — often reveals exact attacker commands.

When to use: Once a suspicious PID is identified from pslist/pstree.

Expected output:

powershell.exe -nop -w hidden -enc <base64 payload>

Look for: Encoded/obfuscated PowerShell, download cradles (IEX, DownloadString), unusual flags (-w hidden, -enc).

Next step: Decode the base64 argument to reveal the actual script executed.

vol -f FILE_PATH windows.netscan
vol -f memory.raw windows.netscan

Lists network connections/sockets recorded in memory, including some that have since closed.

When to use: To find C2 connections or data exfiltration destinations active at capture time.

Expected output:

TCPv4  10.0.0.5:49213  203.0.113.7:443  ESTABLISHED  powershell.exe

Look for: Connections to external IPs from processes that shouldn't normally need network access.

Next step: Treat the remote IP as an IOC; cross-reference against any pcap evidence from the same incident.

vol -f FILE_PATH windows.memmap --pid PID --dump
vol -f memory.raw windows.memmap --pid 4210 --dump

Dumps a specific process's memory pages to disk for further static/string analysis.

  • --pid — Target process ID to dump.

When to use: Once a specific suspicious process is identified and you need its in-memory content (decrypted payload, strings, config).

Expected output:

pid.4210.dmp written to the output directory.

Look for: Readable strings in the dump: URLs, decoded scripts, credentials.

Next step: Run 'strings' against the dump, same as any malware-forensics static analysis.

Tools

Volatility 3

Memory-image analysis framework: process, network, registry, and malware-artifact plugins.

When to use: Standard tool for any RAM image challenge.

pip install volatility3
vol -f FILE_PATH PLUGIN_NAME
  • windows.*/linux.* — Plugin namespace matches the OS of the captured image.

Example workflow: pslist -> pstree -> cmdline -> netscan -> memmap/procdump on anything suspicious.

Findings & Interpretation

Interesting

  • Encoded/obfuscated command lines
  • Active connections to external IPs at capture time
  • Cleartext credentials found via a credential-specific plugin (e.g. hashdump, or a browser-memory string search)

Suspicious

  • Processes with no parent (orphaned), or a parent that doesn't normally spawn that child (e.g. Word spawning cmd.exe)

False Positives

  • Many legitimate background Windows services look unfamiliar by name alone — verify against a known-good process baseline before flagging

How to Validate

  • Corroborate a suspicious process/connection with at least one other signal (command line, network destination, dumped strings) before treating it as confirmed malicious

Next Step

  • Dumped process memory and extracted IOCs feed into Malware Forensics and Incident Response IOC extraction.

Troubleshooting

Volatility fails to detect the OS/symbol table for the image.

Likely cause: Unsupported/corrupted image, wrong file format, or missing symbol table for that exact OS build.

Verify: Run 'vol -f FILE_PATH windows.info' (or linux.info) to see what Volatility can determine; check the image isn't truncated (file size sanity check).

Fix: Ensure you're using Volatility 3 (not legacy vol.py 2.x syntax); for Linux images, a matching symbol table (ISF) may need to be supplied or built.

Recovery: If the exact build's symbols aren't available, try the closest matching kernel version's ISF, noting results may be partial.

Avoid repeating: Confirm the tool version and image integrity before assuming the image itself is unusable.