Перейти к основному содержимому
Memory Forensics with Volatility 3
Урок 9 из 20

Memory Forensics with Volatility 3

Analyze volatile RAM captures with Volatility 3 to reconstruct running and hidden processes, spot memory injection, map network sockets, and extract files from memory.

Продвинутый 36 мин Форензика и IR
Этого урока пока нет на выбранном языке — показана версия на другом языке. Перевод готовится.

Цели обучения

  • Explain how Volatility 3 uses Intermediate Symbol Format (ISF) tables to parse kernel structures automatically
  • Triage running, parent-child, and unlinked processes using windows.pslist, windows.pstree, windows.psscan, and windows.cmdline
  • Detect code injection and active network connections with windows.malfind and windows.netscan
  • Carve cached executables and documents from a memory dump using windows.filescan and windows.dumpfiles

Рекомендуется заранее: Evidence Acquisition: Disk & RAM Imaging with FTK ImagerWindows Forensics: Registry, Prefetch, Amcache & $MFTLinux Forensics: Logs, Bash History, Persistence & Timelines

#Why this matters

Disk artifacts show what was written to storage, yet modern intrusions frequently run decrypted payloads exclusively in RAM, inject code into trusted system processes, or wipe binaries immediately after launch. Volatile memory captures preserve the live truth: active processes, full command-line arguments, open network sockets, decrypted buffers, and memory-resident files.

Volatility 3 is the current standard framework for analyzing Windows, Linux, and macOS memory images. Mastering its core plugins turns a raw multi-gigabyte .raw or .mem dump into actionable host and network indicators.

  1. Identify OSwindows.info or banners
  2. Process triagepslist, pstree, psscan
  3. Hunt anomaliescmdline, netscan, malfind
  4. Extractdumpfiles and malfind --dump

#How Volatility 3 works

Unlike legacy memory frameworks that required guessing an exact OS profile flag, Volatility 3 automatically detects kernel structures and resolves offsets using Intermediate Symbol Format (ISF) JSON tables. On Windows, it reads PDB GUID metadata directly from the memory image and loads or downloads the matching symbol table.

All Volatility 3 commands follow a consistent structure, with global options such as -f (memory file) and -o (output directory) placed before the plugin name, and plugin-specific options placed after it:

Checking OS metadata in a Windows memory image
$ vol -f /cases/ws14/mem.raw windows.info
Volatility 3 Framework 2.7.0
Variable        Value
Kernel Base     0xf8024a800000
DTB             0x1ad000
Is64Bit         True
NtMajorVersion  10
NtMinorVersion  0

For Linux captures, Volatility 3 includes parallel plugins under the linux.* namespace (such as linux.pslist and linux.bash) when matching Linux kernel ISF symbols are placed in the symbol directory.

#Process triage: pslist, pstree, psscan, and cmdline

Investigators start by mapping what was executing when RAM was acquired. Each process plugin views kernel memory differently, and comparing them reveals tampering:

Plugin Data source What it reveals
windows.pslist Active EPROCESS doubly-linked list Currently active processes, PID, PPID, and creation time
windows.pstree Indented view of pslist Parent-child anomalies (for example svchost.exe under explorer.exe)
windows.psscan Raw memory pool-tag scan Terminated processes or processes unlinked from pslist
windows.cmdline Process environment block (PEB) Full executable path and launch arguments
windows.dlllist Loaded module lists per PID Unexpected DLL paths loaded from user-writable folders
Reviewing process hierarchy and command lines
$ vol -f /cases/ws14/mem.raw windows.pstree
PID   PPID  ImageFileName   CreateTime
4     0     System          2025-10-19 07:50:11.000000 UTC
* 612 4     smss.exe        2025-10-19 07:50:11.000000 UTC
* 820 812   services.exe    2025-10-19 07:50:14.000000 UTC
** 1408 820 svchost.exe     2025-10-19 07:50:15.000000 UTC
* 3104 2890 explorer.exe    2025-10-19 07:51:02.000000 UTC
** 4912 3104 svchost.exe    2025-10-19 09:14:33.000000 UTC

$ vol -f /cases/ws14/mem.raw windows.cmdline --pid 4912
PID   Process      Args
4912  svchost.exe  C:\Users\Public\svchost.exe -k netsvcs

Legitimate svchost.exe instances are spawned by services.exe from C:\Windows\System32\. Here, PID 4912 has explorer.exe as its parent and executes from C:\Users\Public\, confirming process masquerading.

#Detecting injection, network sockets, and dumping files

Once suspicious PIDs stand out, check their network state and memory protections:

  • windows.netscan: Scans pool allocations for TCP endpoints and UDP listeners, displaying local/remote IP addresses, ports, connection state, owning PID, and process name.
  • windows.malfind: Walks each process's Virtual Address Descriptor (VAD) tree to flag private memory regions marked PAGE_EXECUTE_READWRITE that are not backed by a file on disk. It prints a hex dump and disassembly of the first bytes; seeing an MZ (4d 5a) header in an unbacked RWX region strongly indicates an injected PE binary.
  • windows.filescan and windows.dumpfiles: filescan locates _FILE_OBJECT structures in memory and prints their virtual or physical offsets; dumpfiles extracts those cached files to disk for hashing and static inspection.
Detecting injected code and carving a cached file from memory
$ vol -f /cases/ws14/mem.raw windows.malfind --pid 1408
PID   Process      Start VPN     End VPN       Protection              Hexdump
1408  svchost.exe  0x1f4a0000    0x1f4c5000    PAGE_EXECUTE_READWRITE  4d 5a 90 00 03 00 00 00 ...

$ vol -f /cases/ws14/mem.raw windows.filescan | grep -i "payload.bin"
0xbc89142018c0  \Users\Public\payload.bin

$ vol -f /cases/ws14/mem.raw -o /cases/ws14/carved windows.dumpfiles --virtaddr 0xbc89142018c0

Passing -o /cases/ws14/carved before windows.malfind --dump or windows.dumpfiles writes extracted binaries to a dedicated folder without cluttering the case root. Always verify carved files with sha256sum and inspect them in an isolated analysis environment.

#Common mistakes and analyst pitfalls

  • Using legacy Volatility 2 syntax: Passing --profile=Win10x64 fails in Volatility 3. Rely on automatic ISF discovery and place global flags (-f, -o) before the plugin name.
  • Trusting pslist alone: windows.pslist walks the active linked list, so terminated or DKOM-unlinked processes disappear from it. Always cross-check against windows.psscan.
  • Treating every malfind hit as malware: Browsers, .NET CLR applications, and JavaScript JIT engines routinely allocate legitimate PAGE_EXECUTE_READWRITE memory. Inspect the hexdump (MZ headers or shellcode patterns) and corroborate with netscan, dlllist, and cmdline.
  • Running offline without symbol packs: In air-gapped DFIR labs, Volatility 3 cannot fetch Microsoft PDB symbols from the internet. Pre-stage the required Windows and Linux ISF symbol packs inside Volatility's symbols/ directory before triage.

#Summary

  • Volatility 3 parses RAM dumps using ISF symbol tables and global -f/-o options placed before the plugin name (windows.info, windows.pstree, windows.psscan).
  • Comparing pslist against psscan, inspecting parent-child trees in pstree, and checking cmdline exposes process masquerading and hidden processes.
  • windows.malfind and windows.netscan link injected PAGE_EXECUTE_READWRITE regions to active sockets, while windows.filescan and windows.dumpfiles carve memory-resident binaries for hashing and analysis.

Проверка знаний

Войдите, чтобы проходить тест, завершать уроки и сохранять прогресс. Войти в систему

Практика: проверьте свои знания