Memory images in five minutes
MemDiver opens a full physical memory image (LiME, AVML, raw), resolves a
kernel profile for it, runs Volatility 3 plugins over it and lets you pull a
single process out as an .msl capture for the key-finding workflow. This page
is the short path. The details live in Volatility 3 inside MemDiver
and The ISF workbench.
Install
Image support is an optional extra. It adds Volatility 3 and pakunoda, a third-party open-source project (not part of MemDiver) that reconstructs a kernel profile (an ISF) straight from the image.
pip install "memdiver[image]"
If the extra is missing, the command stops with an error that names it. It never returns an empty result.
The path
Every step exists in the web UI, the CLI and MCP. The CLI form is shown here.
Every command prints a JSON payload, or writes it with -o FILE.
Create a case. A case directory holds everything you derive: views, extracted
.mslfiles, annotations, ISF drafts, plugins and a table for every plugin run. A bare name files under~/.memdiver/cases/<name>.memdiver case init demo
Look at the image.
probereports size, layers, profile status and, with--banners, the Linux kernel banners. It never hashes the image, so the profile status readsunknownuntil a later step hashes it.memdiver image probe memory.lime --banners
Resolve the profile. The chain is explicit ISF, then cache, then pakunoda, then Volatility 3’s own symbol directories. The first run on a large image is slow (about 15 s in the reference run, because pakunoda maps the whole image). The result is cached, and the second call returns at once.
memdiver image profile memory.lime
Open a kernel view. This writes a
.mdviewdescriptor under<case>/views/. Use--view physicalfor raw physical space and--view process --pid Nfor one process.memdiver image open memory.lime --view kernel --case demo memdiver image processes demo/views/<name>.mdview
image openprints the exact path of the.mdviewit wrote. Use that path.Run a plugin. The rows land in a case table named
vol3__<os>_<plugin>.memdiver vol3 run --view <kernel.mdview> --plugin linux.pslist --case demo
Query the rows.
case schemalists tables and columns.case queryruns one read-onlySELECT. Bind values with--param, never by string formatting.memdiver case schema --case demo memdiver case query --case demo --sql "SELECT * FROM vol3__linux_pslist LIMIT 20"
Extract a process. Open its process view, then write an
.msl.memdiver image open memory.lime --view process --pid 22176 --case demo memdiver image extract <process.mdview> --out sshd.msl
The
.mslis a normal capture. Pages the process never had in RAM are recorded as not captured. They are never invented as zeros. Continue with the heap and key-finder tools as for any other dump.Find sibling instances. One image often holds several processes of one binary (SSH sessions, encrypted-filesystem daemons, forked workers). They can stand in for the N captures of a differential.
memdiver image siblings memory.lime --comm dropbear
Members are grouped by ELF build-id (fallback: executable path, then
comm), one group per process family. Within a group, a pair is the same exec (forked) whenmm->exe_fileis shared or ananon_vmaroot is shared;AT_RANDOMonly confirms (Go zeroes it). Evidence that disagrees givesconflict;independentneeds the absence of any evidence.ppidand the address-space layout are diagnostics, not the rule. Single-member groups are listed too, assingle(--min-membersdefaults to 1). The listener is listed but not analysed unless you pass--include-parent. Each analysed member gets frame accounting within its group:rss,private_dirty,shared_lineageand so on, in bytes.--open-views --case demoalso writes one process.mdviewper member. The same capability isGET /api/image/siblingsand the MCP toolimage_siblings.The differential over one group is one more call:
memdiver image sibling-diff memory.lime --comm dropbear
It aligns the members
module_relativefor every group shape (the shape and a reason are reported inregime;--align-by virtual_addresscompares raw addresses instead), compares the frames private to one member with pointer propagation, and returns the top candidates with every member’s VA, share class and a taxonomy label (session_secret_candidate,group_tier), plus theper_process_long_termregions.--pidsor--groupselect a group when thecommis ambiguous. The same capability isPOST /api/image/sibling-diff(a job) and the MCP toolimage_sibling_diff.
Note
vol3 run blocks until the plugin finishes. Check truncated and
stop_reason in its result. The defaults are a 100,000-row cap and a
300 s timeout (--limit, --timeout). A truncated run is not the complete
result.
Compare processes from an image folder
Select a folder of memory images in the import wizard. To extract captures for comparison or a Key Hunt, enter the kernel profile (ISF), the target process name, and the executable path inside the image. Select Check captures. Review matching PIDs, kernel profiles, and captured page counts before selecting images. Check ambiguous target matches and exclude images that cannot supply the target or have an incompatible profile.
To prepare a Key Hunt, select at least two checked images. Each must have one matching PID and captured pages. Use the same profile for the selected images. Extract the matching processes. If extraction fails for an image, use its retry action and check the result.
During the hunt, open Image contributions to see the PID and captured byte count for each input. The list shows whether MemDiver extracted or reused a process capture. For an excluded image, it gives the reason.
In the kernel workspace, open Process cross-check to compare the PIDs reported by the available Volatility process sources. If a source is incomplete, a missing PID is marked unknown for that source. Review the source status before interpreting disagreements.
Three ways to drive it
Web. Start the server with memdiver web. In the Memory image panel
enter the image path, press Probe, then Extract profile with pakunoda
if no profile is found. Open kernel view loads the view into the workspace
and fills the Processes table. Open process view and
Extract to .msl act on a row. The Volatility 3 panel runs plugins on
the active view.
CLI. The commands above: memdiver image …, memdiver vol3 …,
memdiver case ….
MCP. Fetch the prompt vol3_inside_memdiver (arguments image_path and
case). It renders a numbered playbook that names the exact tools:
case_init, image_probe, image_profile, image_open_view,
image_processes, vol3_run, case_query, image_extract_process. The
prompt memdiver_start lists all playbooks.
Traps worth knowing up front
Zero rows is not “no processes”. On a 5-level-paging (LA57) kernel, stock Volatility 3 stacks a 4-level layer and returns an empty process list with no error. MemDiver detects the paging depth itself and treats zero tasks as an error. If a different tool shows an empty list, suspect the paging depth.
No profile found? Do not guess one. Use the ISF workbench, or open a profile-less kernel view (
image open --no-profile).Sandbox. If
MEMDIVER_ALLOWED_ROOTSis set, every path must lie inside those roots. Outputs must lie inside MemDiver home.
Explore a full image with RAM Map
Open a physical or profiled kernel image view in the web workspace and choose Open RAM Map in the Image panel. Capture coverage appears first. Choose Build mapping index on a profiled Linux view to add process attribution. The index is stored with the case and reused for the same image, profile, and paging parameters.
Select a cell to see its physical range and coverage, then zoom to frames. Process rows count observed captured mappings. Shared frames can appear in several rows. Hatched cells have incomplete capture coverage.
At page level, inspect observed aliases and jump to physical or process hex. Check allocator, cache and entropy looks for independent evidence about the selected frame where supported by the kernel profile. Save a physical range bookmark to return to it in the same browser. Use Show case annotations to see matching notes and jump to the annotated bytes.
Locate a result from the latest image-backed YARA or Key Hunt scan. A match can resolve to several physical fragments. Oracle status is shown only for an exact matching candidate that was submitted to the oracle. Use Show findings on map to place the latest scan on its own track. Select a region or process cell to see the findings associated with that selection.
Use Mapping relationships to measure actual shared frames between two address spaces or project a virtual range in virtual address order. Pin those fragments to keep them visible while inspecting the range in process hex. Similar colors on two rows alone only indicate similar densities.
Use Compare two captures to compare physical ranges, explicitly matched process ranges, or exact artifact bytes at two candidate addresses. Review mapping observations, capture gaps, and allocator evidence independently.