Practical reference for analyzing Linux memory dumps with Volatility 3.
Syntax:
vol -f <memory_dump> <plugin>Note: Linux memory analysis in Vol3 often requires a symbols file (ISF). Generate one with dwarf2json from the target system's kernel debug symbols.
List processes from the kernel's task list.
vol -f memory.lime linux.pslistLook for: Unexpected processes, processes running as root that shouldn't be, multiple instances of single-instance daemons, processes with suspicious names.
Display the process hierarchy as a tree.
vol -f memory.lime linux.pstreeLook for: Shell processes spawned by web servers (webshell indicators), reverse shells (/bin/sh spawned by network services), unexpected child processes of systemd or init.
List processes with full command-line arguments (like ps aux).
vol -f memory.lime linux.psauxLook for: Base64-encoded commands, processes running from /tmp, /dev/shm, or /var/tmp, crypto miners (xmrig, pool URLs), netcat/socat reverse shells, Python/Perl one-liner payloads.
Recover bash command history from memory.
vol -f memory.lime linux.bashLook for: Reconnaissance commands (whoami, id, uname -a, cat /etc/passwd), privilege escalation attempts, data exfiltration commands, lateral movement (SSH to other hosts), evidence cleanup (history -c, rm -rf /var/log).
List environment variables for each process.
vol -f memory.lime linux.envarsLook for: Modified PATH, LD_PRELOAD set (library injection), custom variables set by malware, credentials stored in env vars.
List loaded kernel modules.
vol -f memory.lime linux.lsmodLook for: Unknown modules, modules loaded from non-standard paths, rootkit modules (often hide from lsmod on a live system but are visible in memory).
Compare the module list against sysfs. Finds hidden kernel modules.
vol -f memory.lime linux.malware.check_modulesLook for: Any module present in one source but not the other — this indicates a rootkit hiding a kernel module.
List network connections and listening sockets.
vol -f memory.lime linux.sockstatLook for: Unexpected listening ports, connections to external IPs from non-network processes, reverse shell patterns (established connections on unusual ports), connections from web servers to internal hosts (pivot).
List open file descriptors for all processes.
vol -f memory.lime linux.lsofLook for: Files open from /tmp, /dev/shm, deleted files still held open (common malware technique), processes with open sockets, access to sensitive files (/etc/shadow, SSH keys).
List mounted file systems.
vol -f memory.lime linux.mountinfoLook for: Unusual mounts, tmpfs mounted in unexpected locations, NFS/CIFS mounts to external hosts.
List ELF binaries mapped into process memory.
vol -f memory.lime linux.elfsLook for: ELF files loaded from temp directories, unnamed memory-mapped executables, ELFs not matching known system libraries.
Show memory mappings for each process (like /proc/<pid>/maps).
vol -f memory.lime linux.proc.MapsLook for: Executable anonymous mappings (potential shellcode), RWX regions, memory-mapped files from unusual locations.
Find potentially injected or suspicious memory regions.
vol -f memory.lime linux.malware.malfindLook for: Executable anonymous memory regions, ELF headers in unexpected locations, regions with rwx permissions not backed by a file.
Verify the system call table for hooks.
vol -f memory.lime linux.malware.check_syscallLook for: System call handlers pointing outside the kernel text segment — indicates a syscall table hook (rootkit).
Check the Interrupt Descriptor Table for hooks.
vol -f memory.lime linux.malware.check_idtLook for: IDT entries pointing to unexpected addresses.
Check network protocol structures for hooks.
vol -f memory.lime linux.malware.check_afinfoLook for: Hooked network protocol handlers — used by rootkits to hide connections from netstat.
Analyze credential structures for anomalies.
vol -f memory.lime linux.malware.check_credsLook for: Processes with unexpected UID/GID values, processes that gained root credentials.
Check TTY devices for hooks.
vol -f memory.lime linux.malware.tty_checkLook for: Hooked TTY operations — used by rootkits for keylogging or to hide terminal output.
Examine the keyboard notifier chain.
vol -f memory.lime linux.malware.keyboard_notifiersLook for: Unexpected notifiers — rootkit keyloggers register here to capture keystrokes.
Dump the kernel log buffer (like dmesg).
vol -f memory.lime linux.kmsgLook for: Module load messages, security warnings, OOM killer events, segfaults, audit messages, USB device connections.
Display I/O memory map (like /proc/iomem).
vol -f memory.lime linux.iomemLinux memory analysis requires an ISF (Intermediate Symbol Format) file that matches the dump's kernel exactly. Volatility 3 searches ~/.cache/volatility3/symbols/linux/ ($XDG_CACHE_HOME/volatility3/... when set) as well as its install directory; the file name does not matter (the banner inside is matched).
Prebuilt ISF (try first). Abyss-W4tcher/volatility3-symbols covers common Ubuntu, Debian, Kali, AlmaLinux and Rocky kernels:
vol -f memory.lime banners # kernel banner of the dump
curl -fsSLO https://github.com/Abyss-W4tcher/volatility3-symbols/raw/master/banners/banners_plain.json
grep -A2 -F '<full banner from above>' banners_plain.json # → ISF download URL
mkdir -p ~/.cache/volatility3/symbols/linux
cd ~/.cache/volatility3/symbols/linux && curl -fsSLO '<ISF URL>'Plain vol can also look the kernel up itself (needs internet access): vol --remote-isf-url 'https://github.com/Abyss-W4tcher/volatility3-symbols/raw/master/banners/banners.json' -f memory.lime linux.pslist.
With vol-analyze, pass the same index with --isf-url URL, or a folder of ISF files with --symbols DIR; every plugin and the OS auto-detection then use it.
Generate one when no prebuilt ISF matches:
# On the target system (or matching kernel):
sudo apt install linux-image-$(uname -r)-dbgsym # Debian/Ubuntu
dwarf2json linux --elf /usr/lib/debug/boot/vmlinux-$(uname -r) > linux-symbols.json
mkdir -p ~/.cache/volatility3/symbols/linux
cp linux-symbols.json ~/.cache/volatility3/symbols/linux/