Practical reference for analyzing macOS memory dumps with Volatility 3.
Syntax:
vol -f <memory_dump> <plugin>Note: macOS memory analysis requires matching kernel symbols (ISF). Generate with dwarf2json from the target's kernel debug kit (KDK).
List processes from the kernel's process list.
vol -f memory.raw mac.pslistLook for: Unexpected processes, processes running as root, unsigned binaries, processes with suspicious names or paths.
Display the process hierarchy.
vol -f memory.raw mac.pstreeLook for: Shell processes spawned by applications (malware/exploitation indicators), osascript spawned by non-user apps, unusual children of launchd.
List processes with full command-line arguments.
vol -f memory.raw mac.psauxLook for: Python/Ruby/osascript payloads, processes running from /tmp or user cache directories, download cradles (curl | sh), crypto miners.
Recover bash/zsh command history from memory.
vol -f memory.raw mac.bashLook for: Reconnaissance commands, attempts to disable Gatekeeper or SIP, csrutil status checks, launchctl persistence setup, security keychain access.
List loaded kernel extensions (kexts).
vol -f memory.raw mac.lsmodLook for: Unknown kexts, unsigned extensions, kexts loaded from non-standard paths. On modern macOS, third-party kexts are increasingly rare — their presence may be suspicious.
List network connections.
vol -f memory.raw mac.netstatLook for: Connections to external IPs from non-browser processes, listening services on unusual ports, connections from system processes to unexpected destinations.
List network interfaces.
vol -f memory.raw mac.ifconfigLook for: Promiscuous mode interfaces (sniffing), unexpected tunnel interfaces (VPN backdoors), bridge interfaces.
Enumerate socket filters attached to network sockets.
vol -f memory.raw mac.socket_filtersLook for: Unexpected socket filters — can be used by malware to intercept or modify network traffic.
List open file descriptors.
vol -f memory.raw mac.lsofLook for: Files open from temp directories, access to keychain files, access to browser credential stores, open handles to /etc/authorization.
Enumerate files known to the kernel.
vol -f memory.raw mac.list_filesList mounted file systems.
vol -f memory.raw mac.mountLook for: Unusual mounts, DMG files mounted from temp directories, network shares mounted to unexpected locations.
Show process memory mappings.
vol -f memory.raw mac.proc_mapsLook for: Executable anonymous regions, RWX mappings, Mach-O headers in unexpected memory regions.
Find suspicious or injected memory regions.
vol -f memory.raw mac.malfindLook for: Executable memory not backed by files, Mach-O headers injected into processes, shellcode patterns.
Verify the system call table for hooks.
vol -f memory.raw mac.check_syscallLook for: Syscall handlers pointing outside the kernel — indicates rootkit-level tampering.
Check sysctl handlers for tampering.
vol -f memory.raw mac.check_sysctlLook for: Modified sysctl handlers — rootkits use this to hide processes, files, or network connections from userspace tools.
Examine the Mach trap table for hooks.
vol -f memory.raw mac.check_trap_tableLook for: Mach trap entries pointing to unexpected addresses.
List TrustedBSD MAC (Mandatory Access Control) policies.
vol -f memory.raw mac.trustedbsdLook for: Unexpected policies — malware can register TrustedBSD policies to intercept security decisions or hide its activities.
Enumerate Kauth listeners.
vol -f memory.raw mac.kauth_listenersLook for: Unknown listeners on the vnode, fileop, or process scopes. Kauth listeners can monitor or intercept file access, process execution, and other security-relevant operations.
List registered Kauth scopes.
vol -f memory.raw mac.kauth_scopesList process kevents (kernel event notifications).
vol -f memory.raw mac.keventsmacOS analysis requires an ISF matching the dump's kernel. Abyss-W4tcher/volatility3-symbols has prebuilt ISFs for macOS 10.6–10.15 kernels only (same banner lookup as in the Linux cheatsheet; place them in ~/.cache/volatility3/symbols/mac/). Otherwise generate one from Apple's Kernel Debug Kit (KDK):
- Download the KDK matching the target's macOS version from Apple Developer
- Generate symbols with dwarf2json:
dwarf2json mac --macho /Library/Developer/KDKs/KDK_<version>/System/Library/Kernels/kernel.dSYM/Contents/Resources/DWARF/kernel > mac-symbols.json
- Place in Vol3 symbols directory:
mkdir -p ~/.cache/volatility3/symbols/mac cp mac-symbols.json ~/.cache/volatility3/symbols/mac/
With vol-analyze, --symbols DIR points at a folder of ISF files instead, and --isf-url URL at a remote index.