MemDiver Volatility 3 Plugins
These plugins inspect Linux memory images, Windows x64 process memory, and Memory Slices (.msl). A key row identifies the check used to verify the candidate, such as a stored digest, an authentication tag, or cryptographic state in memory.
Abstract
MemDiver can generate a Volatility 3 plugin from captures of the same program. The generated plugin uses the surrounding bytes to locate candidates in compatible captures and an oracle to check each candidate. The examples cover encrypted volumes and filesystems, WireGuard peers, and SSH clients and servers.
This suite builds on our paper, which introduced the .msl format, the N-capture differential and the first synthesized Volatility 3 plugin (gocryptfs): D. Baier, M. Lambertz, “Memory Slice: A Process-Centric Dump Format for Differential Memory Analysis and Volatility 3 Plugin Synthesis,” Digital Threats: Research and Practice, 2026. https://doi.org/10.1145/3848418
The suite has two halves:
Kernel and process plugins, written by hand:
linux.dmcrypt,linux.wireguard,linux.keyring,linux.fscrypt,linux.ecryptfs,memdiver.ssh,memdiver.wireguard_go,memdiver.page_sharing,memdiver.sibling_diff,memdiver.extract,memdiver.keyscan,memdiver.discover,memdiver.ssh_hostkeys, and the layer and inspection plugins for the Memory Slice format (msl.*).Plugin synthesis:
memdiver vol3 synthesizewrites a single-file plugin that carries its own oracle and runs under stock Volatility 3 with no MemDiver and no crypto library installed.
Everything described here is checked by make validate. Each check compares plugin output with ground truth that does not come from the plugin and prints its result (see Validation).
What is different
First Volatility 3 plugins for several secret stores. As of a survey on 2026-11-06 we found no Volatility 3 plugin for WireGuard, dm-crypt/LUKS, the Linux kernel keyring, fscrypt, eCryptfs or FUSE vaults such as gocryptfs. (This is a literature and repository survey, not an exhaustive search.)
Every row carries a proof status. The
Proven/Oracle/Verifiedcolumn saysoracle:<kind>(proven),rejected(the oracle contradicts the candidate) orunverified(no oracle applies); a key bound to another process’s proof says so (peer-bound:<pid>inmemdiver.ssh,PSK:bound-to-proven-peerinlinux.wireguard). The oracle is memory-only or disk-only. No proof reads a packet capture. Packets left in memory can prove a key;--dump-pcaponly writes them out (synthetic framing).Module structures without module symbols.
crypt_config(dm-crypt) andwg_device(WireGuard) live in kernel modules, so no kernel ISF contains them. The plugins find them with self-validating locators (AES round key 0 equals the raw key;X25519(private)·Gequals the stored public key; HKDF identifier re-derivation) and read struct layouts from the kernel’s own in-memory BTF.Synthesis with an embedded oracle. A recipe locates the key, an oracle inlined into the plugin source and hash-checked on load decides
Proven, and the plugin is self-tested at emit time.Reproducible validation. Six x86_64 reference captures (4- and 5-level paging) with ground-truth sidecars, small in-repo
.mslsamples with aSHA256SUMSfile, and one command (make validate) that runs every check.
Plugin overview
Plugin |
Recovers |
Strongest proof (label) |
|---|---|---|
|
dm-crypt volume keys: LUKS1, LUKS2, VeraCrypt |
key schedule in the tfm context plus LUKS header digest plus page-cache decryption ( |
|
interface identities, peers, preshared keys, in-flight ephemerals; transport keys with provenance |
|
|
every key in |
cross-proofs: eCryptfs signature, dm-crypt volume key, fscrypt v1 descriptor |
|
fscrypt v1 master keys, v2 HKDF state |
v1 descriptor, v2 identifier re-derived from HMAC-SHA512 midstates, per-file key equals inode schedule |
|
per-file encryption keys (FEK), FEKEK |
|
|
struct layouts from the kernel’s in-memory BTF |
symbol walk with all cross-checks |
|
SSH session keys of clients and servers: OpenSSH ( |
RFC 4253 key derivation checked against the same memory ( |
|
wireguard-go (and Tailscale-style) static keys, peers, PSK, ephemerals; transport keys with provenance |
|
|
per-process page accounting by share class (with |
no key proof: frame classification and sibling pairs checked against the guest’s ground truth on the v2b and v2c captures; |
|
candidate secret regions ranked by the differential over N sibling processes of one image (needs MemDiver) |
none: a rank is a candidate (ranks measured against ground truth on the test captures v2b and v2c); a plugin synthesized from the siblings proves it on a held-out sibling |
|
a per-process |
none: a slice, not a finding; |
|
AES-128/192/256 key schedules (natural and word-swapped) and ChaCha20 contexts of a |
memory-only proof class D: the key’s own stored state re-computes ( |
|
the blind run: keys PROVEN from memory alone (no ground truth) for one sibling group of an image or for a |
memory-only oracle chains (derived-state |
|
OpenSSH (>= 8.1) shielded private keys: sshd host keys and |
the serialisation parses with its |
|
gocryptfs content key and EME filename key of a mounted vault ( |
the vault’s content file opens under the key ( |
|
the Memory Slice container itself |
hash-chain verification ( |
synthesized plugins |
any key a recipe can locate and an oracle can judge |
nine format oracles, see Synthesis |
The suite also ships two stackers: one that stacks .msl captures as Volatility layers, and one that adds 5-level paging (LA57) support when Volatility itself does not have it yet.
Installation
Prerequisites
Volatility 3, version 2.27 or later. Versions 2.27.0 and 2.28.2 are the ones tested (see Compatibility).
A Linux memory image (LiME) and an ISF symbol file for the target kernel, for the kernel plugins. The process plugins and
msl.*need only a.mslcapture or a process dump.
Recommended: pip install "memdiver[vol]"
pip install "memdiver[vol]" # MemDiver plus volatility3 2.27+ (<3)
vol -p "$(memdiver vol3 plugin-dir)" -h
Volatility 3 is an optional extra (vol); plain pip install memdiver does not install it. If you already have Volatility 3, install plain pip install memdiver next to it and the same commands work. memdiver vol3 plugin-dir prints the installed vol3plugins directory. The plugin directory imports only the standard library and volatility3 at module level, so vol -h stays fast (about 0.40 to 0.42 s, median 0.41 s over 10 runs of vol -p "$(memdiver vol3 plugin-dir)" -h with the msl plugins present; measured 2026-11-13 on an Apple M1 Max, CPython 3.11, Volatility 2.27.0; re-measured 2026-11-30 with 1.3.0: median 0.39 s, max 0.39 s over 10 warm runs under Volatility 2.27.0, median 0.39 s, max 0.43 s under 2.28.2). MemDiver is imported lazily and only when an encrypted or compressed .msl needs it.
From a clone, without MemDiver
git clone https://github.com/MemorySlice/MemDiver
vol -p MemDiver/vol3plugins -f image.lime linux.dmcrypt
Most plugins can run with the Python standard library and Volatility 3.
Install MemDiver to use memdiver.sibling_diff, memdiver.extract, or
memdiver.discover. Without MemDiver, those plugins report the missing
dependency in their output. The other plugin requirements are listed in
Usage.
The slim reader opens plaintext, uncompressed .msl files.
Use -p to add plugin directories. Separate each directory with a
semicolon on all operating systems.
Quick start on the in-repo samples
samples/ holds small public demo inputs (3.0 MB in total) with their ground truth in samples.json and a checksum list. The full description is in samples/README.md.
gunzip -k samples/*.msl.gz
P="$(memdiver vol3 plugin-dir);samples/plugins"
# The .msl layer: process identity, page states, integrity chain
vol -p "$P" -f samples/gocryptfs_aes.msl msl.info
# A synthesized plugin proves the gocryptfs master key (2 rows, Proven = oracle:gocryptfs-gcm)
vol -p "$P" -f samples/gocryptfs_aes.msl memdiver_gocryptfs.MemDiverSynthGocryptfs \
--oracle-sample samples/gocryptfs_aes.oracle
# SSH session keys of a libssh client: six Tier A rows
vol -p "$(memdiver vol3 plugin-dir)" -f samples/ssh_libssh_client.msl memdiver.ssh.SSHKeys
# wireguard-go keys, with a Wireshark keylog
vol -p "$(memdiver vol3 plugin-dir)" -f samples/wireguard_go_psk.msl \
memdiver.wireguard_go.WireGuardGo --export keylog
# Tamper evidence: one flipped byte
vol -p "$(memdiver vol3 plugin-dir)" -f samples/gocryptfs_aes_tampered.msl msl.verify
The tampered sample ends in a verdict row tampered, and the plugin prints the damaged copy of the key as rejected while the intact copy stays proven. The kernel plugins need the 4.3 GB reference captures, which are not in the repository; see Validation.
Check the samples before using them:
cd samples && sha256sum -c SHA256SUMS # macOS: shasum -a 256 -c SHA256SUMS
What Proven means
Status |
Meaning |
|---|---|
|
An independent check passed: a MAC, a digest stored in the artefact, a filesystem structure, or a derivation that must hold inside the same memory. |
|
No oracle applies, or an offset was guessed. The value is shown but not claimed. A WireGuard transport key is |
|
The oracle contradicts the candidate. A budget or a guessed offset never produces |
|
dm-crypt: the O1 check passed, but the page-cache check decrypted to noise (for example dirty plaintext over a stale backing page). Neither proven nor rejected. |
|
dm-crypt: the kernel key schedules hold only part of the volume key (tcw, lmk, elephant, authenc and similar). Never exported as proven. |
A guessed or user-supplied structure offset on the key path can never yield proven. The page Technical details lists what each oracle can and cannot establish.
Honest limits
The detailed list is in Technical details. The short version:
Stock Volatility 3 has no AArch64 Linux layer, so the reference captures are x86_64 (4-level and 5-level paging). The AArch64 capture was a development corpus read through a third-party fork.
Paramiko drops the shared secret
K(the int) at NEWKEYS; its keys are still proven (Tier A) from the encodedKits exchange-hash input left resident, which holds in 17 of the 18 Paramiko processes of v2b and v2c (all 16 clients and v2c’s server; v2b’s server has noKleft, and its keys are onlypeer-boundto its libssh client’s proof when both are in one run). libssh2 and AES-SIV (gocryptfs) are synthetic-only. OpenSSH and Dropbear on the x86 images haveKwiped; their AES keys and OpenSSH’s HMAC-SHA2 keys are proven from memory alone (oracle:derived-state) when the schedule or midstates are resident, IVs stayunverified, ChaCha20-Poly1305 keys are proven from memory by a cached key-stream block or a leftover packet (checked on the v1 4-level, v1 LA57, v2b and v2c images), andmemdiver.sshlocates Dropbear MAC keys only when the client of the session is in the same run and proves them (peer-bound).The fscrypt 6.16+ and hardware-wrapped paths, eCryptfs tag-1 and AES-128/192, and the WireGuard PSK paths of wireguard-go other than the real
responseCreatedcase (proven on the in-repowireguard_go_psk.mslsample) are tested with synthetic data only.The kernel WireGuard preshared key is
bound-to-proven-peer, not oracle-proven. A WireGuard transport key is proven only when a data message sealed with it is still in memory (O_pkt, checked on the six public reference captures); with no such residue the key staysunverified. Absence of residue is never evidence against a key. Transport keys do not prove the preshared key, and nothing in a settled kernel handshake does (the ephemerals are zeroed).O_pktworks on the one AArch64 capture (current keypair proven, with an AArch64-capable vol fork) but is not part ofmake validatethere. A lone host’ssendkey needs leftover outgoing ciphertext: on one AArch64 lone-host capture (peer outside the VM) the currentsendkey was proven that way, which is a single observation thatmake validatedoes not check.linux.dmcrypt --nosymbolsscans the physical layer for AES key schedules and Serpent/Twofish contexts, pairs them (XTS and ESSIV) and binds them to LUKS headers that are resident in memory; VeraCrypt keys and non-LUKS Serpent/Twofish keys stay unverified. It pairs only the layouts it knows (x86 AES-NI 6.8, arm64 CE and packed neighbours): the 6.10+aes_xts_keylayout and the genericxts(ecb(aes))template are not paired. WireGuard has no no-symbols fallback. Without--nosymbols, the plugins use ISF offsets, an exact built-in table or the kernel’s own BTF, and say which.The oracle step
O3(page-cache proof for dm-crypt) is not available on AArch64.dm-crypt supports AES, Serpent and Twofish (XTS and CBC) and VeraCrypt cascades of them. Serpent and Twofish run in pure Python only. Camellia, Kuznyechik and the IV modes benbi, null, lmk, tcw and eboiv are not supported, and the
xts-fsmagicoracle does not handle cascades.Plugin path arguments (for example
--offsets,--oracle-sample) are read as given. They are not sandboxed by Volatility.
Documentation
Document |
Content |
|---|---|
per-plugin options, examples, output columns, exports |
|
oracle taxonomy, walks, proof semantics, limits |
|
recipe v2, locators, inlined oracles, self-test |
|
|
|
what is checked and how, |
|
versions, kernels, platforms |
|
LA57 pull requests |