#memory #forensics #dma #pcileech #memprocfs


MemProcFS - Physical Memory Analysis Framework

8 stable releases

5.6.1 May 10, 2023
5.6.0 May 1, 2023
5.5.0 Apr 15, 2023
5.4.4 Mar 13, 2023
5.4.1 Feb 28, 2023

#5 in #dma

Download history 37/week @ 2023-02-23 27/week @ 2023-03-02 45/week @ 2023-03-09 10/week @ 2023-03-16 6/week @ 2023-03-23 2/week @ 2023-03-30 11/week @ 2023-04-06 33/week @ 2023-04-13 14/week @ 2023-04-20 31/week @ 2023-04-27 32/week @ 2023-05-04 16/week @ 2023-05-11 4/week @ 2023-05-18 9/week @ 2023-05-25

63 downloads per month


4.5K SLoC

MemProcFS Rust API

The MemProcFS crate contains a wrapper API around the MemProcFS physical memory analysis framework. The native libray in the form of vmm.dll or vmm.so must be compiled or downloaded in order to make use of the memprocfs rust crate.

The aim of the MemProcFS Rust Crate and API is to make MemProcFS usage easy and smooth on Rust! Please let me know what you think or if you have any improvement suggestions!

Physical memory analysis may take place on memory dump files for forensic purposes. Analysis may also take place on live memory - either captured by using PCILeech PCIe DMA devices or by using drivers - such as WinPMEM, LiveCloudKd, VMware or similar.

The MemProcFS API base is the Vmm struct. Once the native vmm has been initialized it's possible to retrieve processes in the form of the VmmProcess struct. Using the Vmm and VmmProcess it's possible to undertake a wide range of actions - such as reading/writing memory and retrieving various information.

Read and write memory by using the methods mem_read(), mem_read_ex(), mem_write() of the Vmm and VmmProcess structs.

Efficiently read and write memory using the VmmScatterMemory struct.

Get info about loaded modules, memory regions, registry, process handles, kernel pool allocations and much more!

Access the VFS (Virtual File System) via the Rust API to get access to the full range of built-in and external plugins.

The MemProcFS rust API supports creation of native MemProcFS plugins in the form of a library .dll or .so for the more advanced user.


// Initialize MemProcFS on Linux targeting a live Windows system
// by reading memory using a PCILeech PCIe FPGA hardware device.
// After initialization list all processes.
let mut args = ["-printf", "-device", "fpga"].to_vec();
let vmm = Vmm::new("/home/user/memprocfs/vmm.so", &args)?
if let Ok(process_all) = vmm.process_list() {
    for process in &*process_all {
        println!("{} : {}", process.pid, process.info()?.name);
// Initialize MemProcFS on Windows - analyzing a memory dump file.
// Also trigger the forensic mode and scan for VMs.
// List all processes in the virtual file system directory /name/.
let mut args = ["-printf", "-forensic", "1", "-vm",
                "-device", "C:\\dumps\\memory.dmp"].to_vec();
let vmm = Vmm::new("C:\\MemProcFS\\vmm.dll", &args)?
if let Ok(vfs_all) = vmm.vfs_list("/name/") {
    println!("Number of files/directories: {}.", vfs_all.len());
    for vfs in &*vfs_all {

Example projects

Check out the example project and the example MemProcFS plugin.

Project documentation

Check out the project documentation for MemProcFS, LeechCore and pcileech-fpga:

Questions and Comments

Please feel free to contact me!

Get Started!

Check out the MemProcFS documentation and the example project!

Best wishes with your Rust memory analysis project!


~88K SLoC