Skip to content
@MemorySlice

MemorySlice

A modern, block-based, append-only forensic capture format for process memory — and the open-source ecosystem built around it.

Memory Slice (.msl)

Process-centric. Self-describing. Forensically sound.

A modern, block-based, append-only forensic capture format for process memory — and the open-source ecosystem built around it.

Memory Slice is an open binary format for process memory and the context needed to interpret it. The ecosystem connects targeted acquisition, differential memory analysis, cryptographic key recovery and verification, and Volatility 3 plugin synthesis.

A .msl file stores captured bytes together with memory mappings, page acquisition states, and available process metadata. Its specification is independent of the tools, so other projects can implement support.

Specification · Capture memory · Analyze memory · Try the examples


Why Memory Slice?

Memory Slice flips the paradigm to process-centric acquisition. A .msl capture is not just a virtual address space — it is a self-describing record of what was true about the process at acquisition time: module list with versions, file descriptors, region permissions, and network connections, all embedded as typed blocks.

Targeted process acquisition can reduce the amount of memory collected and examined when an investigation focuses on a particular application. Memory Slice preserves the context needed to interpret that acquisition and supports comparison across captures. It complements workflows based on full memory images.

  • Keep bytes and context together. Typed blocks describe memory regions, permissions, loaded modules, thread registers, and available operating-system metadata. What can be collected depends on the platform and acquisition backend.
  • Record acquisition outcomes explicitly. Four page states distinguish Captured, Failed, Unmapped, and NotResident. The last identifies known-zero, untouched anonymous pages skipped during resident-only acquisition.
  • Check integrity. A block hash chain, using BLAKE3 by default, and an End-of-Capture hash support consistency checks. Unkeyed hashes alone do not authenticate a capture or prevent someone from recomputing them after an alteration.
  • Preserve the original capture during enrichment. Tools can append analysis metadata in extension segments without rewriting the capture segment.
  • Support different workflows. The format provides optional compression and encryption, import provenance, and a streaming layout.

Page states document acquisition outcomes. They do not make a live capture an atomic snapshot of a running process.

Read the format specification for field definitions, integrity guarantees, and implementation requirements.


The ecosystem

   ┌──────────────┐    ┌──────────────┐    ┌──────────────┐
   │  memslicer   │───▶│   .msl file  │───▶│   MemDiver   │
   │  (acquire)   │    │  (libmsl)    │    │  (analyze)   │
   └──────────────┘    └──────────────┘    └──────────────┘
Project Purpose Implementation
memslicer Acquire process memory through Frida, GDB, or LLDB. Supports desktop and mobile targets, with backend-specific requirements. Python
memslicer-rs Acquire process memory through Frida with streaming output and batched reads. Rust
MemDiver Analyze memory, reduce key candidates, verify findings, and synthesize Volatility 3 plugins for supported targets. Python / TypeScript
libmsl Read and write .msl files, with streaming and zero-copy readers and integrity verification. Rust
memslice-spec Define the binary format, block types, page states, and interoperability rules. Specification
memslice-samples Separate sample repository, currently a placeholder. Runnable captures are available in MemDiver's samples. Samples

Getting started

Capture a process with MemSlicer:

pip install memslicer
memslicer 1234 -o capture.msl
memslicer verify capture.msl

Replace 1234 with the target PID. See the acquisition guide for platform permissions and backend setup.

Explore a capture with MemDiver, using Python 3.11 or later:

pip install memdiver
memdiver

Open http://127.0.0.1:8080 and load a capture. Install pip install "memdiver[image]" for full memory images and Volatility 3 integration. The MemDiver guide also covers CLI, Python, and MCP workflows.

Implement format support using libmsl or the specification.

From captures to reusable extraction

MemDiver connects discovery with repeatable analysis:

  1. Reduce the search. Compare suitable captures or process instances using differential analysis, entropy, and supported allocator or runtime metadata.
  2. Verify candidates. Test candidate keys against an appropriate oracle, such as an authenticated network record, encrypted file, stored key digest, or cryptographic relationship in memory.
  3. Generate and evaluate an extractor. For supported findings, synthesize a Volatility 3 plugin and test it on captures excluded from learning. Verifying templates include an oracle; anchor-only templates report unverified matches.

See the plugin guide for supported targets and the worked validation examples for inputs, commands, and expected results.

Samples and validation

Start with MemDiver's bundled samples: small process slices, public test keys, and worked examples for gocryptfs, SSH, and WireGuard. The samples ship in the Git repository and must be obtained separately from a PyPI installation.

The validation guide links the larger reference datasets and demonstrates recovery from Linux and Windows memory images.

Research and citation

The accompanying paper describes the format, differential memory analysis, and plugin synthesis:

Daniel Baier and Martin Lambertz. Memory Slice: A Process-Centric Dump Format for Differential Memory Analysis and Volatility 3 Plugin Synthesis. Digital Threats: Research and Practice, 2026. DOI: 10.1145/3848418.

Use the citation metadata for the maintained reference.

Contributing

Contributions to acquisition backends, analysis methods, verification oracles, examples, and documentation are welcome. Open issues and pull requests in the relevant repository. Proposals for format changes and new block types belong in memslice-spec.

License

Each repository ships under its own license — see individual LICENSE files. Most are Apache-2.0.

Popular repositories Loading

  1. MemDiver MemDiver Public

    Interactive platform for identifying and analyzing data structures in (process) memory dumps

    Python 3 1

  2. memslicer memslicer Public

    A memory acquisition tool that captures process memory snapshots into the MSL (Memory Slice) binary format.

    Python 2 1

  3. memslice-spec memslice-spec Public

    The Memory Slice specification

    TeX 1 1

  4. .github .github Public

  5. libmsl libmsl Public

    Rust

  6. memslicer-rs memslicer-rs Public

    Rust

Repositories

Showing 7 of 7 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…