Plugin Synthesis

MemDiver can generate a Volatility 3 plugin from captures with known keys. The plugin searches compatible captures for the same kind of key and verifies each candidate with an oracle included in the generated Python file. It requires Volatility 3 and the Python standard library.

Pipeline

  key known in N captures            (.msl or raw; one key per dump)
        │  locate every occurrence                   engine.key_location
        ▼
  static-mask measurement            which neighbour bytes stay identical across occurrences
        │  wildcard the key bytes, keep the static run     → anchor pattern
        ▼
  recipe v2                          locators + decoder + oracle spec + exporter
        │  render (template v2) + inline the oracle source
        ▼
  <name>.py  +  <name>.recipe.json  (+ <name>.yar when there is an anchor)
        │  self-test, in process, on the reference data
        ▼
  verify on each target              .msl captures (in process) and/or a full image under stock vol
        ▼
  verdict: proven | not proven       from the plugin's own Proven column, never from the recipe

The command is memdiver vol3 synthesize (options). The same operation exists as a library call, synthesize_vol3_plugin, in memdiver.app.vol3_synth.

Recipe v2 is also the generator behind the other plugin-emitting paths: memdiver export --format volatility3, export-key-pattern, POST /api/architect/export, the experiment runner and emit-plugin / the pipeline’s anchor emit. Each builds its recipe from the exported pattern with vol3_recipe.recipe_from_pattern: the pattern is the anchor_regex locator, the key locator becomes the decoder, and an entropy fallback follows. Without an oracle every candidate stays unverified; pass --show-unverified to list all of them. On emit-plugin a degenerate anchor (filler such as zero padding) is emitted, not refused, and reported as the warning vol3_recipe.degenerate_anchor. The v1 generator (architect.volatility3_exporter) is deprecated. It is kept only for artifact-model structure plugins and for emit_plugin_for_hit(template="v1"). Unlike v1, a v2 plugin has no --virtual or --full-scan flag: it scans the physical layer, the .msl slice, or the --pid / --comm process layers.

The design rule

The anchor only proposes candidates. The oracle alone decides Proven.

A weak anchor increases the number of candidates the oracle must check, up to the candidate limit. The strength of a proof depends on the oracle and its evidence. This is why the synthesis path can use an entropy fallback that proposes hundreds of thousands of candidates: on the reference run about 200,000 candidates per image were filtered with 0 false proofs.

Recipe v2

A recipe (memdiver-vol3-recipe/2) is a frozen description with five parts.

Part

Content

locators

an ordered list. Implemented kinds: anchor_regex (a byte pattern with wildcards, alignment, static_ratio, hit cap 4,096), entropy (a fallback scan: window threshold 4.5 bits/byte, step 8 or inferred from the observed key alignment up to 8, cap 500,000 candidates) and pointer_path (learned pointer chains from a module global to the key, see below)

decoder

key_offset, key_length, candidate_layout (single), optional cipher and fields

oracle

the format-oracle kind, its parameters, and the evidence sample (inline up to 8 KiB, or a path, with its SHA-256) plus an optional static context

exporter

json

provenance

generator, per-dump basename and SHA-256, key offsets, a domain-separated key fingerprint, context size, mask windows

Pointer paths

A module-rooted path starts at a slot in a mapped module. It records the module basename and available GNU build ID, the starting offset, each hop, and the final key offset. The plugin resolves the module in the target process and follows the path through its mapped memory. Give a process capture or select a PID when running on a full image. The row’s Detail column shows path <label> for a match.

The learner starts from a known key in each source and searches back to potential roots. It keeps paths that work across the learning sources. Use locator="pointer_path" to try a pointer path first and fall back to an anchor. With locator="auto", synthesis first tries an anchor and can fall back to a pointer path for at least two process views with usable mappings.

In the v2b OpenSSH captures for PIDs 11794, 11892, and 11848 (see Test Captures), shared paths from sshd distinguished the send and receive roles. The derived-state oracle proved the keys the paths reached.

Multi-key locators and Windows precedence

For each key label, try a shared module-rooted path, then a static-data anchor, then a supported thread-rooted path. If none works, try an anchor pattern for that label. A label with no usable locator is reported as refused. Synthesis can still emit the other labels. Read keys.locators for the locator used by each emitted label.

A static-data anchor has root: "value". It uses a pointer to a read-only, non-executable part of a module, such as a Go type descriptor. The learner looks for a tag within 64 bytes of a referrer slot in a live allocator object. The plugin finds pointer-aligned occurrences of the tag in anonymous memory and follows the path from the recorded slot. It checks the module identity and caps the search at 4,096 occurrences per module base. The learner excludes a tag that exceeds this cap in a learning source.

When all learning sources are Windows minidump MSL captures with parseable heaps, try these roots over allocator block boundaries first. The order is module, static-data anchor, then thread. If none works, try a module-rooted path with the 0x800-byte window used for unparsed heap hops, then a byte anchor. Inspect keys.roots or the recipe provenance for the recorded root kind.

On the six Windows 11 OpenSSH captures, the window-based paths could cross block boundaries and depended on allocation order. The bounded module search found no path. The bounded static-data path used OpenSSH’s cipher pointer and key field in the same allocated object. The tag reached both directions, and the oracle checked each key. The Linux v2b and v2c OpenSSH captures also had an equivalent static-data anchor. Module-rooted paths succeeded first on those inputs.

Thread-rooted paths

A thread root names a slot relative to a stack frame record or the saved stack pointer. A frame anchor also records the module, return offset, and available build ID. The plugin looks at up to 256 frame records per thread. It stops at an invalid record or when the saved frame pointer fails to increase. A frame anchor uses the slot owned by the matching record. A stack-pointer anchor uses the recorded offset from SP. Both stay within the live stack.

In MSL, the plugin gets SP and FP from Thread Context blocks. For a Linux x86-64 process in a full image, it uses saved user-mode registers when available. A target without usable thread registers reports thread.no_thread_context. A frame that cannot be found is counted as anchor_not_on_stack.

For a Windows x64 process in a full image (--pid / --comm), it uses the saved user trap frame of each thread: the frame at KTHREAD.InitialStack minus sizeof(_KTRAP_FRAME), else KTHREAD.TrapFrame, counted only when SegCs is 0x33 (64-bit user mode).

The learner requires thread registers for every source. It keeps common paths that reach the expected key without another candidate passing the entropy prefilter. It prefers frame-relative anchors and ranks by dereference count and frame position. If only a stack-pointer anchor holds, the result records thread_sp and reports vol3_recipe.thread_sp_only. The slot can move when the thread blocks at a different instruction.

On 2026-11-21, with module and value searches disabled, thread paths learned on two Windows 11 arm64 OpenSSH captures proved both directions on the held-out third capture for each rotation and both tested cipher sets. The verification used stock Volatility 2.27.0 and 2.28.2. The Linux v2b and v2c OpenSSH checks also proved both directions, including held-out sessions, using process extracts with thread context for learning and full images for verification.

On 2026-11-29, held-out synthesis also held on four Windows 10 x64 22H2 OpenSSH captures, whose keys sit in NT-heap LFH blocks: a plugin learned on three minidumps proved both directions of the held-out fourth, on its .msl and, with --pid, on the full Windows x64 image that holds the four processes (an optional check on private captures, see Validation). Where the heap-bounded and window stages find no path, the thread-stack search runs as the last fallback; value-rooted paths are used where they hold. A plugin learned on Windows x64 sources inlines a compact Windows adapter (VAD mappings named with /, module names compared without case, thread registers from the trap frames), so module- and value-rooted paths resolve on the image as on the .msl. A plugin learned on non-x86_64 sources (Windows 11 arm64) leaves the adapter out, since stock Volatility reads no Windows ARM64 full image.

Reserved locator kinds (yara, artifact_window, aes_schedule, pubkey_adjacency, kernel_struct) are rejected as not implemented rather than silently ignored.

Key fingerprint. Current recipes omit the key bytes. The provenance records a domain-separated fingerprint, key_id_sha256 = SHA-256 of memdiver-vol3-recipe/key-id\0 followed by the key. A bare SHA-256 of the key is not recorded, because for dm-crypt aes-cbc-essiv:sha256 that value is the ESSIV IV key, which is itself a secret. Recipes written before this change carry key_sha256 instead; they still load and render, and vol3_recipe.provenance_matches_key reads both fields. The CLI reads keys from a file or standard input and echoes none; error messages redact an invalid key.

Anchor quality guards

  • Degenerate anchors (fewer than three distinct byte values, or zero bits per byte: filler such as zero padding) are refused.

  • Adjacent-secret rule. A static anchor byte is copied verbatim into the plugin. A high-entropy static run (at least 16 bytes at 3.5 bits per byte or more) next to the key may be another secret of the same session (an IV, a second key), so the builder refuses it unless --allow-high-entropy-context is given. The exception: when the mask was measured across captures that hold at least two different keys, a run that stays identical is a program constant (for example the constant gocryptfs keeps in front of its master key), not a secret.

  • Key-derived rule (always on). Any static run of 8 bytes or more that equals material derived from the located key is wildcarded. That material is the AES-128/192/256 encryption and decryption schedules in both word orders, the XTS halves and their schedules, and SHA-256 of the key (the ESSIV salt) with its schedules. --allow-high-entropy-context does not lift this rule. Before the fix, a LUKS1 plugin built from one window copied 64 bytes of the AES-256 schedule into its anchor, and the volume key could be recovered from the published .py alone. A diagnostic vol3_recipe.key_derived_context says how many bytes were wildcarded.

  • A single-image anchor is image-specific. With one training window, every neighbouring byte counts as static. That includes kernel pointers (randomized per boot by KASLR) and unrelated neighbour bytes. Such an anchor can miss the same structure in another image. Build from at least two images (or two captures with different keys) so these bytes are wildcarded. Measured on LUKS1 (crypt_config behind a crypto_tfm): a recipe trained on the 4-level and LA57 images proved the held-out v2b image’s key (oracle:luks, 167 s under stock vol 2.27). Of the three pairs of training images, only this pair left static bytes that all match the held-out image; in the other two pairs a pointer or neighbour byte differed.

  • Real example. The gocryptfs recipe from two sessions has a 160-byte anchor, 80 % static, giving 1 to 2 candidates per run.

The generated plugin

Class MemDiverSynth<Name>. Requirements: the layer (primary, or the kernel when --pid is used), optional --pid, --oracle-sample, --oracle-param, --exhaustive, --show-unverified, --oracle-budget, --export. See Usage.

  • Where it scans. On a .msl capture, the capture layer. With --pid on a kernel image, the process’s virtual-address layer (so --pid is honoured instead of silently scanning the raw file, a defect fixed during development). Without --pid on a LiME image, the physical layer. The Scope column states which one ran: msl:<pid>, process:<pid> or physical.

  • Entropy threshold. The recipe’s threshold follows the key length (core.entropy.default_entropy_threshold: 3.63 bits per byte at 16 bytes, 4.15 at 24, 4.5 at 32, 5.31 at 64). A 16-byte window holds at most 4.0 bits per byte, so the former fixed 4.5 never found a 16-byte key. The plugin lowers any threshold above log2(key length) minus 0.25 (older recipes) to that value. It also asks at most 3/4 of a block to be distinct in its cheap block stage.

  • Raw --oracle-sample files. A packed sample or a vault directory is used as is. A raw file is turned into a sample by the format, which receives the oracle parameters. For xts-fsmagic, iv_mode=veracrypt or data_offset sets where the data area starts, so the VeraCrypt header is not decrypted as data. A raw file is still a guess at the layout, so a rejection from it is reported as unverified with Detail guessed sample: …. For example, a raw gocryptfs content file without gocryptfs.conf and a wrong cipher parameter does not reject the right key.

  • Locator order. Anchor hits first. The entropy fallback runs only when the anchor finds nothing, unless --exhaustive. When a vault sample belongs to another vault than the image’s own, the plugin warns and runs the anchor first without entropy fallback.

  • Rows. KeyOffset, KeyHex, KeyEntropy, KeyLength, PatternOffset, StaticRatio, Proven, Scope, Detail.

  • Candidate ordering and budget. Anchor, then locator order, then entropy; --oracle-budget bounds oracle time per scan target (each process or slice gets the full budget). See Oracle cost budget.

Inlined, hash-checked oracles

The oracle’s own source (a module of oracles/formats/) is copied verbatim into the plugin between two marker lines:

# --- memdiver oracle:<kind> sha256=<hex> begin ---
...
# --- memdiver oracle:<kind> sha256=<hex> end ---

At load time a small runtime re-hashes each block and executes it in its own module only if the hash matches. The synthesized plugin is one .py file and runs on a machine that has Volatility 3 and nothing else.

The oracle contract is strict: standard-library imports only at module level; no relative imports, no __file__; any third-party backend imported lazily with a fallback.

Oracle modules and the runtime are always inlined whole, so their block hash is the sha256sum of the repository file. A crypto primitive (vol3plugins/linux/secrets/<name>.py) keeps only the top-level definitions the plugin can reach: a definition is dropped when no oracle, other primitive, the runtime or a plugin template names it (as a name, an attribute or an identifier-shaped string), and a module that looks itself up by name (globals()) is never cut. An AES key-schedule proof needs four functions of aes.py, so an AES ssh plugin is about 35 KB smaller. Each kept line range of a cut primitive is pinned by its own header line inside the block:

# memdiver part aes.py:155-241 sha256=<hex>

sed -n '155,241p' aes.py | sha256sum prints that hash, and memdiver.oracles.embed_parts.verify_parts checks every part of a block against a primitives directory, so drift of an embedded line is reported. oracle_bundle(recipe, minimal=False) inlines every primitive whole, as before.

Crypto backend chain

The generated plugin needs no crypto library. For AES-GCM (12- or 16-byte nonce), XChaCha20-Poly1305 and AES-SIV the chain is:

  1. cryptography

  2. pycryptodome (shipped with volatility3[full])

  3. pure Python (stdlib primitives aes and chacha, bound by the loader)

A tier is selected only after it passes a per-cipher, per-nonce-length known-answer self-test (open the correct sealed message, reject a tampered one). Merely importing the library is not enough: a FIPS or LibreSSL build can raise at construction, and the chain then falls through. The template logs the chosen backend once.

On the 95-run gocryptfs sweep (48 AES, 47 XChaCha) the result is 95 of 95 proven, 95 of 95 rejected after a bit flip, and 94 of 94 neighbour keys rejected, on every backend, at oracle level and at plugin level.

Self-test, verify on .msl, verify on a full image

  1. Self-test at emit. The emitted plugin source is run in process over the reference data (engine.vol3_verify.run_over_buffer). The result (SelfTestHits) is part of the output.

  2. Verify on .msl. Each dump is scanned in process; the verdict reads the plugin’s own Proven column. The synthesis verdict is proven only if every verify target proved the key.

  3. Verify on a full image. With --full-image IMAGE --pid PID (plus -s for the ISF), the new plugin runs under stock vol as a subprocess. For an image from another session, give the image’s own oracle evidence (--full-image-sample) and its expected key (--full-image-key-hex-file); the expected key filters every attempt, so a key proven against a different key is not reported as proof. The result states pid_honoured (derived from the Scope column: process:<pid>) and warns when --pid was not honoured.

Real result on the x86_64 reference images (4-level, pid 9878, and 5-level, pid 9884; Volatility 2.27.0 and 2.28.2): the plugin synthesized from the .msl slices proves the gocryptfs daemon’s key in the full image, 2 rows oracle:gocryptfs-gcm, key equal to the ground truth, located via the anchor (the entropy fallback was not needed), about 74 s cold and 7 s warm. The vault the plugin needs for proof was recovered from the page cache of the same image with stock linux.pagecache. Cancel kills Volatility’s process group within 0.05 s.

The nine format kinds

memdiver vol3 synthesize --oracle-kind <kind>. Each kind is a module under oracles/formats/.

Kind

Candidate

Evidence (sample)

Proven when

Cost per wrong candidate

gocryptfs-gcm

32- or 64-byte master or content key

one encrypted content file plus FeatureFlags of gocryptfs.conf (344 to 361 bytes in the samples; no EncryptedKey or scrypt parameters, so nothing to crack)

AEAD-opening block 0 (AES-GCM, XChaCha20-Poly1305, AES-SIV; cipher read from the flags)

16 µs budget value

luks

16 to 64-byte volume key

the LUKS1 592-byte header, or a compact LUKS2 JSON of digests, segments, key sizes (never keyslot material)

PBKDF2 of the key equals the header digest

about 200 ms (one PBKDF2)

xts-fsmagic

16 to 64-byte dm-crypt key (key1 ‖ key2 for XTS)

first ciphertext bytes of the data area (default 4 KiB) plus geometry (spec, sector size, IV offset, large IV) and filesystem

decrypted head scores at least 64 bits as ext4, XFS, FAT, NTFS, LVM2, swap, GPT or btrfs

20 µs (AES), 3.7 ms (Serpent), 3.1 ms (Twofish)

aead-generic

16, 24 or 32-byte AEAD key (or HKDF input)

one sealed message: algorithm, nonce, associated data, ciphertext plus tag (at most 8 KiB)

the tag verifies (AES-GCM, ChaCha20-Poly1305, XChaCha20-Poly1305)

8 µs

x25519-pubkey

32-byte X25519 private key

the public key (public material), or none when it sits next to the candidate

X25519(candidate, 9) equals the public key

1.3 ms

x25519-dh-consistency

32-byte X25519 private key

a peer public key plus the precomputed shared secret, or none when both are in memory

X25519(candidate, remote) equals the shared secret

1.3 ms

derived-state

16, 24 or 32-byte AES key, a whole 176, 208 or 240-byte AES schedule, an HMAC-SHA256 or HMAC-SHA512 key, an HKDF input, or a 32 or 64-byte ChaCha20 key (chain chacha20-keystream)

none (memory only, proof class D)

derived state of the key is found elsewhere in the same memory: the AES round-key schedule (natural or word-swapped), the HMAC inner and outer midstates, the HKDF chain, or the ChaCha20 key stream (OpenSSL 3 provider context, libtomcrypt kstream tail); never rejected, a miss is unverified

20 ms budget value

packet-residue

16, 24 or 32-byte encryption key, 32-byte MAC key, or (ssh mode P) a 64-byte chacha20-poly1305@openssh.com key

none (memory only, proof class D)

a leftover SSH packet in the same memory has a MAC or AEAD tag that the key reproduces (mode A: plaintext packet and MAC key; mode C: ciphertext, MAC key and the paired encryption key; mode P: the 64-byte ChaCha20-Poly1305 key, in the wire form and in Dropbear’s in-place form); with protocol="wireguard" (mode W) one 32-byte WireGuard transport key is proven by a leftover data message whose ChaCha20-Poly1305 tag it reproduces (role must be auto; caps counter_max and max_sites; the oracle has no receiver index, so it suits process slices: on a full multi-GiB image the site cap fills before the packets); never rejected, a miss is unverified

5 s budget value, capped by packet and partner counts

ssh-kdf-consistency

an SSH shared secret K

none (H, session_id and the found keys come from the same memory)

at least two RFC 4253 keys derived from (K, H, session_id) are found in the same memory

40 µs

Notes:

  • derived-state and packet-residue are proof class D (memory only). A proof means “a live key of that algorithm in this process” (derived-state) or “this key authenticated a packet left in this process” (packet-residue); role and direction come from the structure the key was found in. Neither ever returns rejected. See Siblings.

  • Per-use primitive inlining: a synthesized plugin carries only the primitives that its oracles use (the format’s required_primitives(params, key_lengths) hook; without the hook, a sample or known key lengths it falls back to the full REQUIRES_PRIMITIVES set). This keeps multi-key plugins under the 262,144-byte source cap: the multi-key OpenSSH test plugin went from 260,832 to 244,023 bytes and the Dropbear one from 256,757 to 239,948. The trade-off: --oracle-param chain=... cannot switch at run time to a chain whose primitives the plugin lacks; it returns the format’s “primitive … not available” error verdict. Synthesize with the chain you need. The ssh preset (--keys-kind ssh) sends 64-byte encryption keys to derived-state with chain chacha20-keystream, then to packet-residue.

  • The costs are the COST_US budget values the plugin uses to estimate runtime, measured for wrong candidates on the pure-Python path where one exists.

  • xts-fsmagic is the proof for VeraCrypt (data area, not header). It was validated by decrypting real backing-file pages with the ground-truth keys: LUKS2 reaches ext4 with 108 bits, LUKS1 XFS with 105, VeraCrypt FAT16 with 99.

  • xts-fsmagic takes the specs (aes|serpent|twofish)-(xts|cbc)-…: 32, 48 and 64-byte XTS keys and 16, 24 and 32-byte CBC keys, with the IV modes plain64, plain, plain64be and essiv:sha256 (ESSIV also for XTS). The decryption is checked against 114 vectors written by a real Linux 6.12 dm-crypt (tests/fixtures/dmcrypt_kernel_vectors/): 48 AES and 66 Serpent and Twofish ones; all decrypt and re-encrypt exactly. Cost per wrong candidate when the sample names its filesystem: AES 20 µs, Serpent 3.7 ms, Twofish 3.1 ms (unknown filesystem: 180 µs, 4.3 ms, 6.6 ms), exposed as COST_US_BY_CIPHER. Serpent and Twofish run in pure Python only. Measured for AES alone, a wrong 48-byte candidate costs about 27 µs when the sample names its filesystem, against about 12 µs for 32 or 64 bytes, because OpenSSL has no AES-192-XTS mode and the tweak masks are computed in Python. Cascades are not supported.

  • Full-image synthesis tests that run on the reference captures (held-out sibling on v2b, and v2b to v2c) cover gocryptfs-gcm (vault and memory-only) and the multi-key SSH plugins for dropbear and OpenSSH. luks was run end to end on the 4 GB image (about 2 min 45 s, oracle:luks with key equal to the ground truth) and needed a 1,024-byte context for LUKS2. LUKS1 no longer needs --allow-high-entropy-context: the AES schedule next to the key is wildcarded by the key-derived rule. The LUKS1 plugin built from one window of the 4-level image proves the key on that image (about 2 min under stock vol 2.27), and no 8-byte run of key-derived material is in its .py, .yar or .recipe.json.

  • xts-fsmagic and aead-generic have unit tests and real-data checks by hand; no automated test on the reference captures covers xts-fsmagic yet.

Adding a format

A format module exposes KIND, CANDIDATE_LENGTHS, COST_US, SAMPLE_KIND, and build_oracle(params, sample) returning an object whose verify(candidate, ctx) gives a verdict proven, rejected or error, with the kind, a detail string and any derived data. The contract (imports, paste-safety, optional cost_us, prefilter and unique) is documented in oracles/formats/__init__.py. A registry-parity test keeps the module list and the known kinds in step.

Where synthesized plugins are stored

With --case, plugins go to <case>/vol3/plugins as a .py plus .recipe.json pair, and older versions go to <case>/vol3/history. Only the first directory is handed to vol -p, so Volatility lists a plugin once. memdiver vol3 exec refuses any directory that holds vol3/history.

Time to plugin

Generated by scripts/time_to_plugin.py from real runs of synthesize_vol3_plugin (targets run one after the other on a shared machine, so the wall times are upper bounds). “Synthesis wall” is the whole call: locate, emit, self-test and the proof run (the msl rows prove in-process; the image rows prove inside the full 4 GB image, which dominates the time). Stock / alt are the two Volatility trees the proof ran under.

Target

Sources (kind, n)

Key source

Locator

Oracles

Synthesis wall (stock / alt)

Proven

Proof class

Regime

vol stock

vol alt

gocryptfs aes + xchacha (samples, committed recipe)

msl slice (gz sample), 2

GT (master key from samples.json)

anchor_regex+entropy

gocryptfs-gcm

4.3 s / n/a

4/4 key occurrences (vol rows)

artefact

VA (single process, key VA fixed per slice)

2.27.0 proven

2.28.2 proven

dropbear multi-key (3 to 1, v2b)

mdview process views (sibling processes, one image), 3

GT (sidecar session keys of the 3 learned pids)

pointer_path+entropy

derived-state (enc, mac), packet-residue (mac)

127.7 s / 174.4 s

4/4 labels (held-out pid)

derived-state x2, packet-residue x2

VA (forked group: MAC keys at the same VA)

2.27.0 proven

2.28.2 proven

openssh multi-key (3 to 1, v2b)

mdview process views (sibling processes, one image), 3

GT (sidecar session keys of the 3 learned pids)

pointer_path+entropy

derived-state (enc, mac), packet-residue (mac)

103.4 s / 92.2 s

4/4 labels (held-out pid)

derived-state x4

propagated (re-exec: 2 heap-layout families, pointer paths)

2.27.0 proven

2.28.2 proven

gocryptfs held-out (page-cache vault, v2b)

mdview process views (independent daemons, one image), 2

GT (sidecar master keys of the 2 learned pids)

anchor_regex+entropy

gocryptfs-gcm (held-out vault from the image page cache)

305.0 s / 285.6 s

1/1 held-out daemon (2 hit)

artefact

independent (own ASLR-off Go heap per daemon, key VA differs: anchor, not VA)

2.27.0 proven

2.28.2 proven

dropbear multi-key, discovered (3 to 1, v2b)

mdview process views (sibling processes, one image), 3

discovered (proven blind by memdiver.discover, no ground truth)

pointer_path

derived-state (enc), packet-residue (mac)

about 290 s / n/a (synthesized once, stock)

4/4 labels (held-out pid); 16/16 sidecar keys on v2c

derived-state x2, packet-residue x2

VA (forked group)

2.27.0 proven

2.28.2 proven (cross-image)

openssh multi-key, discovered (3 to 1, v2b)

mdview process views (sibling processes, one image), 3

discovered (proven blind by memdiver.discover, no ground truth)

pointer_path

derived-state (enc, mac)

about 300 s / n/a (synthesized once, stock)

4/4 labels (held-out pid); 16/16 sidecar keys on v2c

derived-state x4

propagated (re-exec)

2.27.0 proven

2.28.2 proven (cross-image)

gocryptfs multi-key, discovered (3 to 1, v2b)

mdview process views (sibling processes, one image), 3

discovered (proven blind by memdiver.discover, no ground truth)

pointer_path (value-rooted: content, EME) + anchor_regex (master) + entropy

derived-state (hkdf-sha256, aes)

about 346 s / n/a (synthesized once, stock)

4/4 labels (held-out pid); 4/4 sidecar master keys on v2c

derived-state

propagated (Go heap: value-rooted paths, anchor)

2.27.0 proven

2.28.2 proven (cross-image)

libssh

hand-written plugin, n/a: no synthesis test or call exists for these samples; they are proven by a hand-written plugin (memdiver.ssh.SSHKeys)

wolfssh

hand-written plugin, n/a: no synthesis test or call exists for these samples; they are proven by a hand-written plugin (memdiver.ssh.SSHKeys)

wireguard-go

hand-written plugin, n/a: no synthesis test or call exists for these samples; they are proven by a hand-written plugin (memdiver.wireguard_go.WireGuardGo)

Notes:

  • gocryptfs aes + xchacha (samples, committed recipe): synthesis proves in-process on the .msl; the vol columns re-run the emitted plugin under each tree with the sample’s own oracle file. Wall time is synthesis only (alt column: synthesis does not use vol here). One slice alone is refused by design (high-entropy static run next to the key: a constant and a secret cannot be told apart from one capture), so aes and xchacha are synthesized together from the two slices, as the committed plugin was.

  • dropbear multi-key (3 to 1, v2b): learned from pids [11642, 11653, 11664], proven on held-out pid 11675 in the full image; the held-out key hex is passed only as that pid’s own evidence for the verdict.

  • openssh multi-key (3 to 1, v2b): learned from pids [11794, 11892, 11848], proven on held-out pid 11948 in the full image; the held-out key hex is passed only as that pid’s own evidence for the verdict.

  • gocryptfs held-out (page-cache vault, v2b): learned from pids [12011, 12056], proven on held-out pid 11970 with ITS OWN vault recovered from the same image’s page cache (no ground truth of the held-out daemon). Recovering the three vaults took 188.2 s and is not in the synthesis wall time.

  • dropbear / openssh multi-key, discovered (v2b): key source discovered: the keys are the ones memdiver.discover proved blind in the same stock run (--comm dropbear --residue / --comm sshd --synthesize-dir DIR); labels come from the proving chain (enc_1, enc_2, mac_1, mac_2), not from the sidecar. Learned from pids [11642, 11653, 11664] / [11794, 11848, 11892], held-out 11675 / 11948 proven by the synthesis’s own full-image run; the same file proves all 16 sidecar keys of the 4 v2c sessions under both trees. The wall time is the discover run with synthesis minus the same run without it. gocryptfs (--comm gocryptfs --synthesize-dir DIR, added 2026-11-20): labels key_1/key_2 (two copies of the master key), enc_1 (content key), enc_2 (EME key); no module-rooted path reaches any of them, so the per-label fallbacks apply: enc_1 and enc_2 by value-rooted paths (e.g. [gocryptfs+0x2c84b0]@T+0x8 -> +0x0 -> key+0x0), the master key, in a free Go slot with no live referrer, by one labelled anchor for both copies. Learned from pids [9945, 11970, 12011], held-out 12056 proven by the synthesis’s own full-image run; the 185,610-byte file proves the master key of all 4 v2c members under both trees, 0 false (573 s vs 227 s for the v2b run with and without synthesis).

Evidence: no source, no symbols. Synthesis never reads source code or symbols of the target program. The gocryptfs binary on the captures is stripped (no .symtab; measured in R0, pagecache_go.md). Synthesis consumes only (1) memory bytes of the dumps, (2) the ground-truth key, a located candidate, or a key discovered and proven blind by memdiver.discover, and (3) an oracle sample. Code path: app/vol3_synth.py::synthesize_vol3_plugin -> _synth_build_recipe -> architect/vol3_recipe.py::recipe_from_located_key (locates the key bytes with engine/key_location, measures the static mask of the surrounding bytes with StaticChecker) or recipe_from_pointer_paths -> engine/pointer_paths.py::learn_paths_from_sources (pointer words in memory, keyed by VMA path and offset, not by symbol) -> architect/vol3_plugin_v2.py.tmpl render. The only symbol file involved is the kernel ISF that Volatility needs for page-table walking when a process view is proven inside the full image (symbol_dirs); it describes the kernel, not the program, and the locator never reads it.