npx skills add ...
npx skills add yaklang/hack-skills --skill memory-forensics-volatility
Memory forensics playbook using Volatility 2/3. Use when analyzing memory dumps for malware analysis, credential extraction, process investigation, code injection detection, and incident response timeline reconstruction.
npx skills add yaklang/hack-skills --skill memory-forensics-volatility
AI LOAD INSTRUCTION: Expert memory forensics techniques using Volatility 2 and 3. Covers memory acquisition, OS identification, process analysis (hidden process detection), network connections, DLL/module analysis, code injection detection (malfind), credential extraction, file carving, registry analysis, and timeline generation. Base models miss the Vol2/Vol3 command differences, malware indicator patterns, and Linux-specific memory analysis.
Before going deep, consider loading:
Also load VOLATILITY_CHEATSHEET.md when you need:
| Concept | Volatility 2 | Volatility 3 |
|---|---|---|
| Profile system | --profile=Win10x64_19041 | Auto-detected (symbol tables) |
| Image info | imageinfo | windows.info / linux.info |
| Process list | pslist | windows.pslist |
| Network | netscan / connections | windows.netscan / windows.netstat |
| DLLs | dlllist | windows.dlllist |
| Injection | malfind | windows.malfind |
| Hashes | hashdump | windows.hashdump |
| Files | filescan | windows.filescan |
| Registry | hivelist / printkey | windows.registry.hivelist / windows.registry.printkey |
| Install | pip2 install volatility | pip3 install volatility3 |
Red flags: Process in psscan but not pslist = DKOM (Direct Kernel Object Manipulation) hiding.
Red flags: DLL in dlllist but False in all three ldrmodules columns = reflective DLL injection.
What malfind detects: Memory regions with PAGE_EXECUTE_READWRITE that don't map to a file on disk — classic shellcode/injection indicator.
| Indicator | Detection Method | What It Means |
|---|---|---|
| Process in psscan but not pslist | Compare pslist vs psscan | DKOM — process hiding |
| Unexpected parent-child | pstree analysis | e.g., svchost spawned by cmd.exe |
| MZ header in non-image memory | malfind | Reflective DLL / PE injection |
| RWX memory without backing file | malfind | Shellcode injection |
| DLL unlinked from all PEB lists | ldrmodules (all False) | Stealth DLL loading |
| svchost.exe not child of services.exe | pstree | Fake svchost (malware) |
| Unusual network connections | netscan + PID correlation | C2 communication |
| Hooking in SSDT/IDT | ssdt / idt plugins | Rootkit |
| Modified kernel objects | linux_check_syscall | Linux rootkit |