DiGiPi Project: Comprehensive RAM Memory Forensics Platform via Raspberry Pi & AI
Project Introduction
Digital Forensics and Incident Response (DFIR) represents a cornerstone of modern cybersecurity engineering. It empowers security operations and threat hunting teams to reconstruct how security breaches occurred, dissect adversary mechanics, and acquire pristine digital evidence left behind in the aftermath of an attack to establish attribution or remediate vulnerabilities.
Digital artifacts exist across multiple distinct tiers:
- Disk-level Evidence (Disk Forensics): Recovering deleted files, carving unstructured blocks, analyzing file systems, and parsing event logs.
- Network-level Evidence (Network Forensics): Inspecting packet captures (PCAP), reconstructing protocol sessions, and detecting malicious command-and-control (C2) traffic.
- Volatile Memory Evidence (Memory Forensics): Extracting live, point-in-time runtime state from RAM — identifying fileless malware, reflective DLL injection, active network sockets, decrypted cryptographic keys, and uncommitted adversary commands.
The DiGiPi (Digital Forensics via Raspberry Pi) project operates primarily within the domain of Memory Forensics. This discipline is notoriously the most sensitive and complex due to the strictly volatile nature of physical RAM; every second of delay risks evidence corruption via paging or overwrite, and in the worst-case scenario, an unexpected system shutdown wipes all volatile evidence irrevocably.
Project Roadmap and Phase Architecture
DiGiPi was designed and engineered across four cohesive, modular phases, where each phase serves as an autonomous subsystem while feeding seamlessly into the next:

| Phase | Designation | Core Role & Engineering Scope |
|---|---|---|
| Phase 0 | Offline Field Acquisition (USB-based) | Standalone, air-gapped acquisition toolkit to capture RAM and volatile artifacts on-site via scripted USB media without requiring network connectivity. |
| Phase 1 | Evidence Ingestion & Server Management | Centralized server environment that receives memory images over the network, computes integrity hashes, organizes cases, and pre-processes artifacts. |
| Phase 2 | Automated AI-Driven Memory Analysis | Automated analysis pipeline powered by Volatility 3, utilizing custom TOON token-compression formatting and LLM synthesis to generate executive HTML forensic reports. |
| Phase 3 | Comprehensive Investigation Platform | Full-scale collaborative web workspace providing isolated analyst sandboxes, integrated CLI terminal, process tree visualizers, and an AI copilot with RAG and autonomous tool calling. |
Technical Foundations: Operating System Memory Architecture

Before diving into platform mechanics, understanding how underlying operating systems manage memory — and how that structure is exploited forensically — is vital.
1. Windows Memory Management
Windows processes execute within private Virtual Address Spaces (VAS) mapped across physical RAM and disk pages. Each process contains executable code, mapped DLLs, thread stacks, and heap allocations. These allocations hold volatile evidence that reveals malware behavior at the exact millisecond of execution.

Beyond physical RAM, Windows offloads memory pages to persistent disk structures:
| Disk Artifact | Technical Mechanism | Forensic Value & Investigative Role |
|---|---|---|
| Pagefile.sys | Paging file acting as an extension to physical RAM; Windows swaps idle or low-priority memory pages from RAM to disk. | Contains residual process memory fragments, decrypted strings, and network session buffers long after processes terminate. |
| Swapfile.sys | Specialized swap file used primarily for Modern Universal Windows Platform (UWP) app suspension. | Holds suspended application state and cached memory chunks from modern Windows services. |
| hiberfil.sys | Full system memory dump written to disk when the operating system enters hibernation state. | Provides a near-complete bitstream snapshot of RAM contents captured at the exact moment of hibernation, surviving reboot cycles. |
2. Linux Memory Management
Linux manages process memory through contiguous Virtual Memory Areas (VMAs) tracked within kernel structures such as mm_struct and vm_area_struct. Hardware Page Tables dynamically translate these virtual addresses to physical page frames in RAM.

At the kernel layer, Linux leverages the Slab/SLUB Allocator to manage frequently allocated kernel objects (such as file descriptors, process descriptors, and sockets) via dedicated kernel memory caches. Forensic reconstruction of physical RAM allows investigators to walk these kernel structures and reconstruct process trees, loaded Kernel Modules (LKMs), and raw socket descriptors.
3. Memory Acquisition Methodologies & Tooling
Memory Acquisition is the forensic process of creating an exact bit-for-bit raw image of physical RAM while minimizing runtime artifacts and adhering to the Order of Volatility:
Windows Acquisition Tooling:
- WinPmem: Open-source memory acquisition driver providing direct kernel-level physical memory access to output uncompressed raw dumps (
.raw). - Magnet DumpIt: High-performance commercial-grade utility supporting on-the-fly compressed crash dumps (
.zdmp) to minimize network bandwidth consumption during transfers.
Linux Acquisition Tooling:
- LiME (Linux Memory Extractor): Loadable Kernel Module (LKM) designed for direct physical RAM extraction, supporting raw memory streaming over TCP networks and local disk capture.
- AVML (Acquire Volatile Memory for Linux): Modern Microsoft-engineered standalone user-space utility utilizing
/dev/crashor kernel interfaces without requiring external module compilation on modern distributions.
4. Symbol Files and Their Critical Role in Forensics
Symbol Files serve as the forensic architectural blueprint, translating unstructured hexadecimal offsets into structured, typed data objects:
Physical Memory Dump (Raw Binary Stream)
↓
Raw Hex Addresses (Unstructured Pointers: 0xffffa1023...)
↓
Symbol Files (Debug Type Tables & Header Definitions)
↓
Identified Kernel Structures (_EPROCESS / task_struct)
↓
Reconstructed Forensic Artifacts (Processes, Threads, Sockets, Injected Code)
| Operating System | Primary Symbol Source | Forensic Translation Capability |
|---|---|---|
| Windows | PDB (Program Database) Files | Maps internal kernel structures like _EPROCESS and _ETHREAD to extract process identifiers, tokens, and loaded modules. |
| Linux | Kernel Debug / DWARF Symbols | Processed via dwarf2json into ISF JSON symbol tables, revealing task_struct, VMA maps, and active socket lists. |
| Volatility 3 | Intermediate Symbol Format (ISF) | Standardizes heterogeneous OS symbols into uniform JSON tables, eliminating the need for legacy static OS profiles. |
5. Volatility 3 Analysis Framework
Volatility 3 is the industry standard for memory forensics. It operates as a modular framework utilizing specialized plugins to query and reconstruct operating system state:
Acquired Memory Image (memory.raw / memory.zdmp)
↓
Volatility 3 Core
↓
┌───────────────────┬───────────────────┬───────────────────┐
│ windows.pslist │ windows.netscan │ linux.bash │
│ (Active Processes)│ (Network Sockets) │ (Terminal History)│
└───────────────────┴───────────────────┴───────────────────┘
CLI execution example:
python3 vol.py -f memory.raw windows.pslist
6. Platform Technology Stack
The DiGiPi ecosystem was built using a robust, polyglot software stack combining low-level systems programming, containerized infrastructure, web architectures, and advanced AI frameworks:

Phase 0: Offline Field Acquisition Subsystem

Definition & Scope
Phase 0 represents a self-contained, air-gapped forensic toolkit enabling incident responders to acquire volatile RAM images and volatile system state from triage targets using a pre-configured USB device, fully supporting both Windows and Linux endpoints.
Logic Flow Diagram

Windows Endpoint Acquisition
-
USB Storage Directory Layout: The USB drive is structured with streamlined acquisition binaries, configuration manifests, and scripts:

-
Executing the Acquisition Script: Running
RunForensics.batwith elevated privileges automatically initiates physical RAM extraction, volatile state logging, and cryptographic hashing:
-
Automated Case Directory Creation: Upon completion, output cases are sealed inside timestamped directories to ensure strict chain-of-custody tracking:

-
Acquired Artifacts & Integrity Verification:

| Artifact Filename | Forensic Description & Investigative Role |
|---|---|
acquisition_log.txt | Complete execution log detailing acquisition start/end times, memory range offsets, and exit codes. |
image_<timestamp>.zdmp | Compressed raw physical memory snapshot containing the full runtime state of physical RAM. |
image_<timestamp>.sha256 | SHA-256 cryptographic hash calculated immediately upon memory dump completion. |
manifest.sha256 | Cryptographic integrity manifest verifying all auxiliary metadata files. |
system_info.txt | Detailed OS version, patch level, hardware spec, active users, and system uptime report. |
volatile_info.txt | Snapshot of active network sockets, running services, and scheduled tasks captured during triage. |
- Metadata Inspection:
- Reviewing
system_info.txt:
- Reviewing
volatile_info.txt:
- Reviewing
Linux Endpoint Acquisition
-
Linux USB Directory Layout:

-
Execution & Kernel Preparation: Executing
RunForensics.sh(or pre-configuring kernel interfaces viaLinux_Setup.sh) triggers automated memory collection:
-
Linux Output Structure & Verified Evidence:
- Timestamped case folder:

- Extracted forensic artifacts:

- Timestamped case folder:
Phase 1: Server-Side Evidence Ingestion & Management Subsystem

Overview & Capabilities
Phase 1 implements a high-throughput central forensic ingestion server that manages live networked acquisitions across distributed enterprise endpoints, validating artifact integrity before handing evidence over to Phase 2:
- Fastest Drive Detection: Identifies the fastest local storage volume (NVMe / SSD) on target endpoints to minimize capture latency and system pause times.
- On-the-Fly Compression: Compresses memory dumps in transit, dramatically reducing network bandwidth consumption during incident response.
- Automated Hash Verification: Performs post-transmission SHA-256 verification against the pre-transfer checksum to guarantee absolute evidence integrity.
- Linux Symbols Cache Server: Houses pre-indexed ISF symbol tables for enterprise Linux distributions to accelerate subsequent analysis.
- Architecture Auto-Detection: Determines whether target machines run 32-bit or 64-bit kernels and automatically deploys the matching toolset.
Architecture and Data Pipeline Flow

Live Acquisition and Server Ingestion
-
Server Ingestion Monitor Daemon: The server runs a continuous listener daemon monitoring inbound forensic streams:

-
Network Acquisition from Windows Endpoints:

-
Server Verification of Inbound Windows Image:

-
Network Acquisition from Linux Endpoints:

-
Server Verification of Inbound Linux Image:

-
Organized Multi-OS Case Repository:

Phase 2: Automated AI-Driven Memory Analysis Subsystem

Overview & Key Innovations
Phase 2 triggers immediately upon successful case ingestion. It runs an orchestrated suite of Volatility 3 plugins, transforms voluminous forensic telemetry into ultra-compact TOON syntax, and utilizes LLMs to generate executive-ready forensic reports.
Analysis Pipeline Flowchart

The TOON Protocol & Prompt Chunking
Sending raw Volatility JSON output (thousands of lines of process trees and socket connections) directly to an LLM quickly exhausts context limits and incurs excessive token costs due to repetitive key names:
[
{"id": 1, "name": "Ali", "age": 25, "city": "Baghdad"},
{"id": 2, "name": "Sara", "age": 30, "city": "Erbil"},
{"id": 3, "name": "Omar", "age": 28, "city": "Basra"}
]
To solve this, DiGiPi engineered TOON (Token-Oriented Object Notation) — a schema-driven matrix representation:
users[3]{id,name,age,city}:
1,Ali,25,Baghdad
2,Sara,30,Erbil
3,Omar,28,Basra
This representation achieves a >60% token reduction, which when paired with intelligent Prompt Chunking, enables large-scale memory dumps to be ingested and evaluated by LLMs seamlessly without truncation.
Analysis Execution and Plugin Parallelization
-
Autonomous Analyzer Engine (
auto_analyzer):
-
Parallel Plugin Execution: Rather than sequential blocking, Volatility plugins execute asynchronously in parallel threads:

-
Telemetry Ingestion and AI Evaluation:

-
Report Compilation Complete:

Executive Forensic Report (HTML Report)
The output is an interactive, beautifully formatted executive HTML forensic report:
- Executive Summary & System Metadata:

- Suspicious Processes & Behavioral Anomalies:

- Network Sockets & Threat Indicators (IOCs):

- Memory Injections & Unmapped VMA Dumps:

Phase 3: Comprehensive Investigation Platform & AI Copilot Workspace

Overview & Core Features
Phase 3 represents the pinnacle of the DiGiPi platform — a multi-tenant, collaborative DFIR web platform offering case management, role-based access control, interactive visualizers, browser-based terminals, and an autonomous AI forensic copilot with RAG and MCP Tool Calling.
1. Central Telemetry Dashboard
Provides high-level operational visibility across all ongoing cases, storage allocations, and triage node states:

2. Forensic Case Management & Case Exploration
-
Case Directory and Case Repository:

-
Real-World Case Study: Yandex Browser Exploit on Windows: Selecting an active case investigating a stealthy malware infection abusing browser update services:

-
Suspicious Parent-Child Process Discrepancies (
Svchost.exeAbuse):
-
Interactive Process Tree Visualizer:

-
Network Connection Graph & IP Geolocation:

-
Automated Indicators of Compromise (IOC) Hub: Revealing the abuse of
yupdate-exec-yand malicious Java process spawning:

-
Embedded Phase 2 Report Explorer:

-
Role-Based Case Sharing & Team Collaboration:

-
Hybrid Processing Selection (Local Workstation vs Cloud Node):

-
General Platform Assistant:

3. Dedicated Analyst Investigation Environment
Each investigator is provisioned an isolated, stateful investigation container equipped with dedicated forensic tooling:

A. Interactive Volatility Plugin Launcher
One-click graphical execution of specialized Volatility 3 plugins:

B. Task Results & Data Filter Explorer
- Examining
cmdlineplugin output with instant string filtering:
- Exporting structured artifact datasets for machine learning training:

- Structural Process TreeGraphs (
psscan/pslist):
C. Integrated File Manager
Inspect, compare, and download extracted raw binaries, memdumps, and logs:

D. Interactive Web Terminal
Direct web-based CLI access for manual verification and custom scripting:
- Terminal environment:

- Automated command paste directly from the plugin UI:

- Live terminal execution output:

4. Autonomous AI Forensic Agent (Beta)
The workspace features a context-aware AI agent possessing native filesystem access and programmatic tool-execution capabilities:
-
Context-Aware In-Workspace Chatbot:

-
Autonomous Tool Calling (MCP Tools Execution): The agent autonomously executes plugins (e.g.,
psscan), checks hashes, and parses memory dumps on user prompt:
-
Multi-Model Support (Google Gemini, Ollama Cloud, Ollama Local):

-
Forensic Reasoning & Hidden Process Discovery: Cross-referencing
pslistandpsscanto accurately uncover hidden unlinked processes:

-
AI Command-Line Dissection:

-
Forensic RAG (Retrieval-Augmented Generation): Correlating discovered memory artifacts with MITRE ATT&CK enterprise tactics and Yara rule definitions:

5. On-Demand Evidence Ingestion & Direct Upload
Supports ingesting existing memory dumps acquired from third-party tools (e.g., FTK Imager, Belkasoft):
-
Selecting the Target Memory Dump:

-
Configuring Profile & Analysis Mode:

-
Automated Pipeline Trigger:

-
Ingestion Complete & Ready for Analysis:

Conclusion
The DiGiPi project bridges the critical gap between the deep technical complexity of volatile RAM analysis and the urgent speed required in modern incident triage. By uniting:
- Air-gapped field acquisition tooling (Phase 0)
- High-throughput ingestion and cryptographic integrity verification (Phase 1)
- Automated token-optimized AI memory analysis engines (Phase 2)
- Collaborative investigation sandboxes equipped with autonomous AI reasoning and RAG (Phase 3)
DiGiPi demonstrates how modern memory forensics can evolve from slow, manual command-line workflows into an automated, high-precision investigation ecosystem.