04 - Memory Forensics Masterclass
Memory forensics involves the analysis of a computer's volatile memory (RAM). It is crucial for detecting advanced threats like rootkits, fileless malware, and injected code.
RAM Capture
WinPmem (Windows)
winpmem.exe -o memdump.raw
LiME (Linux)
LiME (Linux Memory Extractor) is a Loadable Kernel Module (LKM).
insmod lime.ko "path=memdump.lime format=lime"
Volatility 3
Volatility is the industry standard for memory analysis.
Common Plugins (Windows)
-
windows.info: Get profile information and verify the image.python3 vol.py -f memdump.raw windows.info -
windows.pslist: List active processes.python3 vol.py -f memdump.raw windows.pslist -
windows.pstree: View process hierarchy to spot parent-child anomalies (e.g.,cmd.exespawning fromnotepad.exe).python3 vol.py -f memdump.raw windows.pstree -
windows.netscan: View active network connections and listening ports at the time of capture.python3 vol.py -f memdump.raw windows.netscan -
windows.malfind: Detect hidden and injected code by analyzing memory segments marked with Execute/Read/Write (PAGE_EXECUTE_READWRITE) permissions that are unbacked by files on disk.python3 vol.py -f memdump.raw windows.malfind