Volatility Cheat Sheet
1. Vol2 vs Vol3 at a glance
| Aspect | Volatility 2 | Volatility 3 |
|---|---|---|
| Python | 2.7 | 3.x |
| Invocation | python2 vol.py -f mem.raw --profile=<P> <plugin> | vol -f mem.raw <os>.<plugin> (or python3 vol.py ...) |
| OS detection | imageinfo / kdbgscan -> pick profile | Automatic via symbol tables (ISF) |
| Plugin naming | pslist | windows.pslist.PsList (short form windows.pslist works) |
| Linux/Mac | Needs custom profile | Needs 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
- Identify image:
windows.info - Processes:
pslist,psscan,pstree - Command lines:
cmdline,consoles - Network:
netscan,netstat - Injection/malware:
malfind,dlllist,handles - Persistence: registry
Runkeys,svcscan - Credentials:
hashdump,lsadump,cachedump - Extract artifacts: dump processes/files for AV, YARA, strings, reverse engineering
4. Processes
| Goal | Vol3 | Vol2 |
|---|---|---|
| List processes (walks EPROCESS linked list) | windows.pslist | pslist |
| Scan pool memory (finds unlinked/hidden/terminated) | windows.psscan | psscan |
| Parent/child tree | windows.pstree | pstree |
| Cross-view comparison | diff pslist vs psscan | psxview |
| Command line args | windows.cmdline | cmdline |
| Environment variables | windows.envars --pid <PID> | envars |
| Loaded DLLs | windows.dlllist --pid <PID> | dlllist -p <PID> |
| Open handles | windows.handles --pid <PID> | handles -p <PID> |
| Token SIDs | windows.getsids | getsids |
| Privileges | windows.privileges (recalled) | privs |
| Sessions | windows.sessions | sessions |
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.exenot child ofservices.exe,lsass.exenot child ofwininit.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,mshtawith odd arguments
5. Network
| Goal | Vol3 | Vol2 |
|---|---|---|
| Scan for connections/sockets/listeners (incl. closed) | windows.netscan | netscan (Vista+) |
| Active connection state | windows.netstat | netstat |
| WinXP/2003 | n/a | connections, 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
| Goal | Vol3 | Vol2 |
|---|---|---|
| Dump process executable | windows.pslist --pid <PID> --dump | procdump -p <PID> -D out/ |
| Dump process memory | windows.memmap --pid <PID> --dump | memdump -p <PID> -D out/ |
| Dump DLLs of a process | windows.dlllist --pid <PID> --dump (recalled) | dlldump -p <PID> -D out/ |
| List files in memory | windows.filescan | filescan |
| Dump cached files | windows.dumpfiles --pid <PID> or --virtaddr / --physaddr | dumpfiles -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?
| Question | Plugin |
|---|---|
| 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.
psscancan 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
| Attack | What it is | How to spot it (plugin -> indicator) |
|---|---|---|
| Process masquerading | Malware named/placed like a system process | pslist/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 archive | SFX or installer unpacks payload to a temp folder and runs it | cmdline: 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 injection | Code written into another process | malfind: PAGE_EXECUTE_READWRITE region with MZ header or shellcode. ldrmodules: DLL missing from one or more loader lists. dlllist: odd DLL path. |
| Process hollowing | Legit process started suspended, image replaced | malfind 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 tools | cmdline: powershell -enc, -w hidden, -ep bypass, IEX, DownloadString; certutil -urlcache, bitsadmin, mshta, regsvr32, rundll32 with URL or odd DLL, wmic. |
| Macro / phishing execution | Office spawns a shell | pstree: winword.exe/excel.exe -> cmd.exe/powershell.exe. |
| C2 / reverse shell / beaconing | Host calls out to attacker | netscan/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. |
| Persistence | Survives reboot | registry.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.exe | cmdline: 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 hosts | svcscan: PSEXESVC service; pstree: wmiprvse.exe/services.exe spawning shells; netscan: connections on 445, 135, 5985/5986. |
| Rootkit / DKOM | Hide processes or drivers | pslist vs psscan mismatch; callbacks with unknown modules; driverscan/modules with unsigned or oddly named drivers; ssdt hooks (recalled plugin name windows.ssdt). |
| Ransomware | Encrypt files, demand payment | cmdline: 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 app | pstree: 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:
- Path correct? 2. Parent correct? 3. Command line sane? 4. In
psscanonly? 5.malfindhit? 6. Network connection? 7. Same-timestamp siblings inmftscan?
15. Sources
- Volatility 3 documentation, Windows plugin index: https://volatility3.readthedocs.io/en/v2.5.2/volatility3.plugins.windows.html
- Vol2/Vol3 command comparison: https://github.com/Gaeduck-0908/Volatility-CheatSheet
- Community cheat sheets: https://encient.github.io/cheatsheets/dfir/volatility, https://charlesreid1.com/wiki/Volatility
16. Use Examples (from your earlier sessions)
16.1 Typical task flow: memory image with eight questions
| Question | Command | Look for |
|---|---|---|
| Collection timestamp | vol -f mem.mem windows.info | SystemTime field |
| Which plugin shows the process tree? | windows.pstree | Plugin name windows.pstree.PsTree |
| Host IP | windows.netscan | Local address of the machine’s own connections |
| Malicious process name and PID | windows.cmdline then windows.pstree, windows.netscan, windows.malfind | Odd path, random name, suspicious parent |
| Other executables with same path/time | windows.mftscan.MFTScan | Contiguous MFT record block with identical timestamp |
| Malicious URL / registrar | dump process, then strings and whois | URLs inside the dump; registrar from WHOIS |
| DLL responsible for HTTP | windows.dlllist --pid <PID> | Candidates such as wininet.dll / winhttp.dll (recalled) |
| User SID | windows.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?).
16.3 Example: related files via MFT timestamps
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
| Problem | Cause | Fix |
|---|---|---|
python3 -m venv fails with symlink error in a VirtualBox shared folder | vboxsf does not support symlinks by default | Create the venv outside the share, e.g. python3 -m venv ~/venvs/volatility3 |
| Volatility dump fails with rename error on the shared folder | Share rejects write-then-rename | Use 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 .mem | Explorer zip handler and/or Defender scanning | Extract 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 cases | n/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.