1. Vol2 vs Vol3 at a glance

AspectVolatility 2Volatility 3
Python2.73.x
Invocationpython2 vol.py -f mem.raw --profile=<P> <plugin>vol -f mem.raw <os>.<plugin> (or python3 vol.py ...)
OS detectionimageinfo / kdbgscan -> pick profileAutomatic via symbol tables (ISF)
Plugin namingpslistwindows.pslist.PsList (short form windows.pslist works)
Linux/MacNeeds custom profileNeeds matching symbol table (ISF)

2. Basics (Vol3)

vol -h                                  # global help, lists all plugins
vol -f mem.raw windows.info             # OS/kernel info of the image
vol -f mem.raw windows.pslist -h        # help for a specific plugin
vol -f mem.raw -s /path/to/symbols windows.pslist   # custom symbol dir
vol -f mem.raw -o ./out windows.dumpfiles --pid 1234  # output dir for dumps
vol -f mem.raw -r json windows.pslist   # renderer: quick/csv/json/pretty (recalled)
vol -f mem.raw windows.pslist > pslist.txt            # redirect for diffing

Symbol tables for Windows are fetched from the Volatility Foundation download site or auto-downloaded when internet is available. Linux/Mac need a matching ISF for the exact kernel build.

Vol2 basics:

python2 vol.py -f mem.raw imageinfo               # suggest profiles
python2 vol.py -f mem.raw kdbgscan                # more accurate profile detection
python2 vol.py -f mem.raw --profile=Win7SP1x64 pslist

3. Workflow: Triage Order

  1. Identify image: windows.info
  2. Processes: pslist, psscan, pstree
  3. Command lines: cmdline, consoles
  4. Network: netscan, netstat
  5. Injection/malware: malfind, dlllist, handles
  6. Persistence: registry Run keys, svcscan
  7. Credentials: hashdump, lsadump, cachedump
  8. Extract artifacts: dump processes/files for AV, YARA, strings, reverse engineering

4. Processes

GoalVol3Vol2
List processes (walks EPROCESS linked list)windows.pslistpslist
Scan pool memory (finds unlinked/hidden/terminated)windows.psscanpsscan
Parent/child treewindows.pstreepstree
Cross-view comparisondiff pslist vs psscanpsxview
Command line argswindows.cmdlinecmdline
Environment variableswindows.envars --pid <PID>envars
Loaded DLLswindows.dlllist --pid <PID>dlllist -p <PID>
Open handleswindows.handles --pid <PID>handles -p <PID>
Token SIDswindows.getsidsgetsids
Privilegeswindows.privileges (recalled)privs
Sessionswindows.sessionssessions

Hidden process hunting: pslist is fast but can be fooled by DKOM (unlinking). psscan scans raw pool memory, so a process in psscan but missing from pslist is suspicious (or simply terminated; check exit time).

vol -f mem.raw windows.pslist > pslist.txt
vol -f mem.raw windows.psscan > psscan.txt
diff pslist.txt psscan.txt

Things to look for in pstree/cmdline:

  • Wrong parents (e.g. svchost.exe not child of services.exe, lsass.exe not child of wininit.exe)
  • Misspelled system process names (scvhost.exe, lsasss.exe)
  • Wrong path (system binaries outside C:\Windows\System32)
  • Office/browser spawning cmd.exe / powershell.exe
  • Encoded PowerShell (-enc), rundll32, regsvr32, mshta with odd arguments

5. Network

GoalVol3Vol2
Scan for connections/sockets/listeners (incl. closed)windows.netscannetscan (Vista+)
Active connection statewindows.netstatnetstat
WinXP/2003n/aconnections, connscan, sockets, sockscan
vol -f mem.raw windows.netscan

Look for: unusual remote IPs/ports, system processes with outbound connections, listeners on odd ports, owner PID mapping to suspicious processes.


6. Code Injection / Malware

vol -f mem.raw windows.malfind                     # RWX regions, MZ headers, shellcode
vol -f mem.raw windows.malfind --dump -o ./out     # dump flagged regions (recalled flag)
vol -f mem.raw windows.ldrmodules                  # unlinked DLLs (recalled)
vol -f mem.raw windows.callbacks                   # kernel callbacks (DKOM/rootkit hunting)
vol -f mem.raw windows.driverscan                  # loaded/unloaded drivers
vol -f mem.raw windows.modules                     # kernel modules
vol -f mem.raw windows.mutantscan                  # mutexes (malware IOCs)
vol -f mem.raw windows.svcscan                     # services

Vol2 equivalents: malfind -D ./out, ldrmodules, callbacks, driverscan, modules, mutantscan, svcscan.

malfind tips: Hits with PAGE_EXECUTE_READWRITE and a MZ header or shellcode-like bytes are strong leads. False positives are common (JIT engines, some AV/browsers), so correlate with process, parent, and network.


7. Dumping Artifacts

GoalVol3Vol2
Dump process executablewindows.pslist --pid <PID> --dumpprocdump -p <PID> -D out/
Dump process memorywindows.memmap --pid <PID> --dumpmemdump -p <PID> -D out/
Dump DLLs of a processwindows.dlllist --pid <PID> --dump (recalled)dlldump -p <PID> -D out/
List files in memorywindows.filescanfilescan
Dump cached fileswindows.dumpfiles --pid <PID> or --virtaddr / --physaddrdumpfiles -Q <addr> -D out/
vol -f mem.raw windows.filescan | grep -i "evil\|\.exe\|\.ps1"
vol -f mem.raw -o ./out windows.dumpfiles --physaddr 0x1e5a4b30
strings -a out/*.dmp | less
strings -a -el out/*.dmp | less     # UTF-16LE strings

8. Registry

vol -f mem.raw windows.registry.hivelist
vol -f mem.raw windows.registry.printkey \
  --key "Software\Microsoft\Windows\CurrentVersion\Run"
vol -f mem.raw windows.registry.userassist      # recalled

Vol2: hivelist, printkey -K "<key>", userassist, shellbags, shimcache.

Common persistence keys to check: ...\CurrentVersion\Run, RunOnce, Services, Winlogon (Shell/Userinit).


9. Credentials

vol -f mem.raw windows.hashdump      # local SAM NTLM hashes
vol -f mem.raw windows.lsadump       # LSA secrets
vol -f mem.raw windows.cachedump     # cached domain credentials

Vol2: hashdump, lsadump, cachedump. Mimikatz-style credential extraction from lsass is not a built-in default; analyze via a dumped lsass.exe process with external tools. Handle results as sensitive data.


10. YARA Scanning

vol -f mem.raw windows.vadyarascan --yara-rules "rule x { strings: $a=\"evil\" condition: $a }"  # recalled flag name
vol -f mem.raw windows.vadyarascan --yara-file rules.yar                                          # recalled flag name
vol -f mem.raw yarascan.YaraScan --yara-file rules.yar                                            # recalled (raw memory scan)

Vol2: yarascan -y rules.yar (add -p <PID> to limit to a process).

Flag names differ between Vol3 versions. Run vol windows.vadyarascan -h to confirm.


11. Linux (Vol3) (recalled, requires matching ISF symbols)

vol -f mem.lime banners.Banners           # identify kernel banner -> pick symbols
vol -f mem.lime linux.pslist.PsList
vol -f mem.lime linux.pstree.PsTree
vol -f mem.lime linux.bash.Bash           # bash history from memory
vol -f mem.lime linux.lsmod.Lsmod         # kernel modules
vol -f mem.lime linux.lsof.Lsof
vol -f mem.lime linux.sockstat.Sockstat   # availability depends on version

macOS: plugins under mac.* (e.g. mac.lsmod), also needing matching symbols.


12. Quick Reference: Which plugin for which question?

QuestionPlugin
What OS/build is this?windows.info (Vol2: imageinfo)
What was running?pslist + psscan + pstree
Was something hidden?diff pslist vs psscan, psxview (Vol2), callbacks
What command was run?cmdline, consoles (Vol2: cmdscan, consoles)
Who did it talk to?netscan, netstat
Injected code?malfind, ldrmodules
How does it persist?registry.printkey (Run keys), svcscan
What files were touched?filescan, dumpfiles
Credentials exposed?hashdump, lsadump, cachedump
Matches known IOC?vadyarascan / yarascan

13. Tips and Gotchas

  • Vol3 plugin output is per-plugin tabular text. Redirect to files and use grep, awk, diff.
  • Always record the image hash (sha256sum mem.raw) before analysis.
  • Wrong or missing symbols are the most common Vol3 failure. Check the OS build, symbol path, and internet access.
  • Vol2 profile choice matters: a wrong profile gives garbage or empty output.
  • psscan can show terminated processes. Check start/exit times before calling something “hidden”.
  • Absence of evidence is not evidence of absence: memory is a snapshot, and some artifacts are paged out.

14. Common Attacks and How to Spot Them

AttackWhat it isHow to spot it (plugin -> indicator)
Process masqueradingMalware named/placed like a system processpslist/pstree/cmdline: typo names (scvhost.exe), wrong path (not System32), wrong parent. Expected: svchost.exe <- services.exe, lsass.exe/services.exe <- wininit.exe, smss.exe <- System. Only one lsass.exe.
Dropper / self-extracting archiveSFX or installer unpacks payload to a temp folder and runs itcmdline: path like ...\AppData\Local\Temp\RarSFX0\; parent WinRAR.exe/explorer.exe; random-looking exe name. mftscan/filescan: sibling files with same timestamp in the same folder.
Process injection / DLL injectionCode written into another processmalfind: PAGE_EXECUTE_READWRITE region with MZ header or shellcode. ldrmodules: DLL missing from one or more loader lists. dlllist: odd DLL path.
Process hollowingLegit process started suspended, image replacedmalfind hit in a legit-looking process; pstree shows normal name but odd behavior (network, children). Image on disk and in memory differ.
Living off the land (LOLBins)Abuse of built-in toolscmdline: powershell -enc, -w hidden, -ep bypass, IEX, DownloadString; certutil -urlcache, bitsadmin, mshta, regsvr32, rundll32 with URL or odd DLL, wmic.
Macro / phishing executionOffice spawns a shellpstree: winword.exe/excel.exe -> cmd.exe/powershell.exe.
C2 / reverse shell / beaconingHost calls out to attackernetscan/netstat: outbound ESTABLISHED or CLOSED entries to external IPs owned by unexpected processes (e.g. a temp-folder exe, cmd.exe, notepad.exe); odd ports; repeated connections to the same IP.
PersistenceSurvives rebootregistry.printkey on Run/RunOnce/Winlogon; svcscan for new or oddly named services with binaries in user/temp paths.
Credential theft (LSASS)Dump creds from lsass.execmdline: procdump ... lsass, comsvcs.dll, MiniDump, mimikatz; handles --pid <lsass> shows non-system processes with a handle to it; hashdump/lsadump succeed.
Lateral movement (PsExec / WMI / WinRM)Remote execution on other hostssvcscan: PSEXESVC service; pstree: wmiprvse.exe/services.exe spawning shells; netscan: connections on 445, 135, 5985/5986.
Rootkit / DKOMHide processes or driverspslist vs psscan mismatch; callbacks with unknown modules; driverscan/modules with unsigned or oddly named drivers; ssdt hooks (recalled plugin name windows.ssdt).
RansomwareEncrypt files, demand paymentcmdline: vssadmin delete shadows, wbadmin delete, bcdedit recovery changes; filescan: ransom note filenames, mass renamed extensions; one process with very many file handles.
Web shell on server (e.g. Exchange/IIS)Attacker code via web apppstree: w3wp.exe (or Exchange worker processes) spawning cmd.exe/powershell.exe; filescan: new .aspx in web directories.

Quick checklist when you see a suspect process:

  1. Path correct? 2. Parent correct? 3. Command line sane? 4. In psscan only? 5. malfind hit? 6. Network connection? 7. Same-timestamp siblings in mftscan?

15. Sources


16. Use Examples (from your earlier sessions)

16.1 Typical task flow: memory image with eight questions

QuestionCommandLook for
Collection timestampvol -f mem.mem windows.infoSystemTime field
Which plugin shows the process tree?windows.pstreePlugin name windows.pstree.PsTree
Host IPwindows.netscanLocal address of the machine’s own connections
Malicious process name and PIDwindows.cmdline then windows.pstree, windows.netscan, windows.malfindOdd path, random name, suspicious parent
Other executables with same path/timewindows.mftscan.MFTScanContiguous MFT record block with identical timestamp
Malicious URL / registrardump process, then strings and whoisURLs inside the dump; registrar from WHOIS
DLL responsible for HTTPwindows.dlllist --pid <PID>Candidates such as wininet.dll / winhttp.dll (recalled)
User SIDwindows.getsids --pid <PID>SID of the owning user account

16.2 Example: finding the malicious process

vol -f mem.mem windows.cmdline
vol -f mem.mem windows.pstree
vol -f mem.mem windows.netscan
vol -f mem.mem windows.malfind

Earlier example (training image): gcttt.exe, PID 5040, ran from ...\AppData\Local\Temp\RarSFX0\ with WinRAR.exe running at the same time. That is the classic SFX dropper pattern. Ruled out: the memory acquisition tool (RamCapture64.exe, expected) and GDIView.exe (normal install path). Always cross-check with pstree (parent plausible?) and netscan (outbound connection owned by that PID?).

vol -f mem.mem windows.mftscan.MFTScan > mft.txt
grep -i "RarSFX0" mft.txt
grep -i "\.exe" mft.txt | grep "<timestamp-of-malware>"

In the earlier task, five more executables sat in a contiguous record block with the same timestamp as the malicious exe. A .url file in the same block was excluded (not an executable). Check neighboring record numbers too; one extra record was flagged for follow-up.

16.4 Example: dump the process and extract URLs

mkdir -p ~/out
vol -f mem.mem -o ~/out windows.pslist --pid 5040 --dump
strings -a ~/out/*.dmp | grep -Ei "https?://"
strings -a -el ~/out/*.dmp | grep -Ei "https?://"      # UTF-16LE
whois <domain>

If a domain is no longer registered (old sample), live WHOIS may not confirm the registrar. Note that in your answer instead of guessing.

16.5 Environment troubleshooting seen before

ProblemCauseFix
python3 -m venv fails with symlink error in a VirtualBox shared foldervboxsf does not support symlinks by defaultCreate the venv outside the share, e.g. python3 -m venv ~/venvs/volatility3
Volatility dump fails with rename error on the shared folderShare rejects write-then-renameUse a local output dir: -o ~/out
pip install of [full] extras fails building Pillow (Python 3.14, no wheels)Source build needs libjpeg-dev, zlib1g-dev, etc.Install without [full], use an older Python, or install build deps. Pillow is not needed for core Vol3.
Explorer extract fails with 0x80004005 on a ~2 GB infected .memExplorer zip handler and/or Defender scanningExtract with 7-Zip, verify with sha256sum or windows.info; analyze in an isolated VM
Where to install Vol3/tmp can be cleared on reboot~/tools/volatility3 (single-user) or /opt/volatility3 (multi-user); alternatives pipx install volatility3 or apt install volatility3 on Kali
Keep casesn/a~/cases/<casename>/ (persistent), /tmp only for scratch

16.6 Report-writing tips (from graded practice tasks)

  • Cite the exact command you used for each answer.
  • Convert device paths to drive-letter paths where possible.
  • Label hash outputs with the file they belong to.
  • Keep answers short and exact; explain only when the question asks for it.