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 synthesize writes 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

  1. 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.)

  2. Every row carries a proof status. The Proven / Oracle / Verified column says oracle:<kind> (proven), rejected (the oracle contradicts the candidate) or unverified (no oracle applies); a key bound to another process’s proof says so (peer-bound:<pid> in memdiver.ssh, PSK:bound-to-proven-peer in linux.wireguard). The oracle is memory-only or disk-only. No proof reads a packet capture. Packets left in memory can prove a key; --dump-pcap only writes them out (synthetic framing).

  3. Module structures without module symbols. crypt_config (dm-crypt) and wg_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)·G equals the stored public key; HKDF identifier re-derivation) and read struct layouts from the kernel’s own in-memory BTF.

  4. 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.

  5. Reproducible validation. Six x86_64 reference captures (4- and 5-level paging) with ground-truth sidecars, small in-repo .msl samples with a SHA256SUMS file, and one command (make validate) that runs every check.

Plugin overview

Plugin

Recovers

Strongest proof (label)

linux.dmcrypt

dm-crypt volume keys: LUKS1, LUKS2, VeraCrypt

key schedule in the tfm context plus LUKS header digest plus page-cache decryption (O1+O2+O3)

linux.wireguard

interface identities, peers, preshared keys, in-flight ephemerals; transport keys with provenance

X25519 self-consistency, MAC1 key, recomputed Noise chaining key, leftover data-message tag (O_pkt)

linux.keyring

every key in key_serial_tree, decoded payloads

cross-proofs: eCryptfs signature, dm-crypt volume key, fscrypt v1 descriptor

linux.fscrypt

fscrypt v1 master keys, v2 HKDF state

v1 descriptor, v2 identifier re-derived from HMAC-SHA512 midstates, per-file key equals inode schedule

linux.ecryptfs

per-file encryption keys (FEK), FEKEK

MD5(FEK) == root_iv, tfm schedule, tag-3 packet unwrap

linux.btf_layouts

struct layouts from the kernel’s in-memory BTF

symbol walk with all cross-checks

memdiver.ssh

SSH session keys of clients and servers: OpenSSH (ssh, sshd), Dropbear (server, dbclient), libssh, wolfSSH, Paramiko (also after NEWKEYS), Go; library programs (Paramiko under python3, libssh) are selected with --comm / --pid

RFC 4253 key derivation checked against the same memory (oracle:ssh-kdf-consistency); AES schedule or HMAC midstates of a tier B or C key resident in the same process (oracle:derived-state); a K-less server’s keys bound to the client’s Tier A proof in the same run (peer-bound:<pid>, never a KDF proof)

memdiver.wireguard_go

wireguard-go (and Tailscale-style) static keys, peers, PSK, ephemerals; transport keys with provenance

x25519-pubkey, x25519-dh-consistency, noise-chaining-key, leftover data-message tag (O_pkt)

memdiver.page_sharing

per-process page accounting by share class (with PssKB), sibling groups (--group), pair evidence (--pairs), and code patches (--patched-code)

no key proof: frame classification and sibling pairs checked against the guest’s ground truth on the v2b and v2c captures; --patched-code diffs each private copy of a file-backed executable page against its page-cache copy (checked on capture v2d)

memdiver.sibling_diff

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

memdiver.extract

a per-process .msl slice written from a full image (--pid / --comm, --out / --out-dir; needs MemDiver)

none: a slice, not a finding; msl.verify checks its hash chain

memdiver.keyscan

AES-128/192/256 key schedules (natural and word-swapped) and ChaCha20 contexts of a .msl slice or of selected processes of an image; protocol-blind

memory-only proof class D: the key’s own stored state re-computes (live key, role unknown); a published test-vector key is shown as test-vector, never as live; checked on the OpenSSH and Dropbear servers of v2b and v2c (Validation)

memdiver.discover

the blind run: keys PROVEN from memory alone (no ground truth) for one sibling group of an image or for a .msl plus peers: differential and keyscan candidates, memory-only oracles, a role label per key, a verdict per group; optionally a synthesized plugin proven on a held-out member (needs MemDiver)

memory-only oracle chains (derived-state aes, hmac-sha256, hkdf-sha256; --residue adds SSH packet residue): a live key proven by the named chain, not necessarily the key you were looking for; checked with one blind run per capture on v2b and v2c (Validation)

memdiver.ssh_hostkeys

OpenSSH (>= 8.1) shielded private keys: sshd host keys and ssh-agent identities (Ed25519, ECDSA, RSA), unshielded with the 16 KiB pre-key held in the same process; --export-dir writes them as OpenSSH private key files

the serialisation parses with its 01 02 03 ... padding and the private part re-derives the public key (Ed25519 seed, ECDSA d * G == Q, RSA n == p * q, e * d, iqmp); DSA, XMSS, certificate and FIDO sk- keys stay unverified; rows carry the SHA256: fingerprint, never private bytes; checked on v2b and v2c, 24 proven host-key rows per capture (Validation)

memdiver.gocryptfs.GocryptfsKeys

gocryptfs content key and EME filename key of a mounted vault (--vault takes the cipher directory)

the vault’s content file opens under the key (oracle:gocryptfs-content) or its encrypted names decrypt (oracle:gocryptfs-eme-names); needs the Go binary’s metadata (pcHeader, itabs) in the capture, so it returns no rows on the heap-only bundled slices

msl.info, msl.vasmap, msl.pagemap, msl.modules, msl.keyhints, msl.threads, msl.verify

the Memory Slice container itself

hash-chain verification (msl.verify)

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 .msl capture or a process dump.

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

oracle:<kind> or a plugin-specific label such as O1+O2+O3:luks-digest+xfs

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.

unverified

No oracle applies, or an offset was guessed. The value is shown but not claimed. A WireGuard transport key is unverified unless a leftover data message in memory reproduces its tag (O_pkt).

rejected

The oracle contradicts the candidate. A budget or a guessed offset never produces rejected, only unverified.

conflict:pagecache

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.

unverified:partial-key

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 encoded K its 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 no K left, and its keys are only peer-bound to 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 have K wiped; 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 stay unverified, 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), and memdiver.ssh locates 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 responseCreated case (proven on the in-repo wireguard_go_psk.msl sample) 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 stays unverified. 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_pkt works on the one AArch64 capture (current keypair proven, with an AArch64-capable vol fork) but is not part of make validate there. A lone host’s send key needs leftover outgoing ciphertext: on one AArch64 lone-host capture (peer outside the VM) the current send key was proven that way, which is a single observation that make validate does not check.

  • linux.dmcrypt --nosymbols scans 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_key layout and the generic xts(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-fsmagic oracle 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

USAGE.md

per-plugin options, examples, output columns, exports

TECHNICAL_DETAILS.md

oracle taxonomy, walks, proof semantics, limits

SYNTHESIS.md

recipe v2, locators, inlined oracles, self-test

MSL_LAYER.md

.msl as a Volatility layer, msl.*

VALIDATION.md

what is checked and how, make validate, mount proof

COMPATIBILITY.md

versions, kernels, platforms

UPSTREAM.md

LA57 pull requests