PhantomScope is a Virtual Machine Introspection (VMI)-based forensic analysis framework designed to acquire and analyze memory from KVM/QEMU virtual machines. The project focuses on extracting forensic artifacts, detecting hidden processes through cross-view analysis, generating alerts, and producing timestamped investigation reports.
- Virtual Machine Enumeration using libvirt
- Memory Acquisition Framework for KVM/QEMU guests
- Volatility 3 Integration
- Linux Kernel Banner Extraction
- VMCOREINFO Extraction
- Forensic Artifact Parsing
- Process Data Modeling
- Cross-View Hidden Process Detection
- Alert Generation with Severity Levels
- Analysis Statistics
- Timestamped JSON Report Generation
VM Enumeration
↓
Memory Acquisition
↓
Volatility Analysis
↓
Artifact Extraction
↓
Cross-View Detection
↓
Alert Generation
↓
Statistics
↓
JSON Report Generation
PhantomScope/
├── alerts/
├── analytics/
├── artifact_extraction/
├── cross_view/
├── memory_acquisition/
├── models/
├── reporting/
├── test_data/
├── vm_controller/
├── dumps/
├── reports/
├── main.py
└── README.md
- Python 3
- Volatility 3
- Libvirt
- KVM/QEMU
- Debian Linux
- JSON
Clone the repository:
git clone https://github.com/Soorya005/PhantomScope.git
cd PhantomScopeCreate and activate a virtual environment:
python3 -m venv venv
source venv/bin/activateInstall dependencies:
pip install -r requirements.txtRun the analysis pipeline:
python main.pyExample Output:
=== Cross View Analysis ===
Potential Hidden Processes Detected:
[!] PID=200 NAME=sleep
[!] PID=300 NAME=python
=== Alert Generation ===
[MEDIUM] Hidden Process
PID : 200
Process : sleep
[CRITICAL] Hidden Process
PID : 300
Process : python
Generated reports are stored in the reports/ directory.
Example:
{
"vm_name": "debian-lab",
"analysis_time": "2026-06-09T18:23:24",
"alerts": [
{
"severity": "MEDIUM",
"process": "sleep"
},
{
"severity": "CRITICAL",
"process": "python"
}
]
}PhantomScope currently provides a proof-of-concept VMI forensic framework featuring artifact extraction, cross-view detection, alerting, and reporting capabilities.
The hidden process detection engine currently operates on simulated process views. Future work aims to integrate real process acquisition from guest operating systems and memory dumps.
- Real process acquisition from guest VMs
- Volatility-based Linux process enumeration
- LibVMI integration
- HTML dashboard generation
- IOC scanning support
- Expanded forensic artifact collection
Soorya A P
Cybersecurity Researcher | Red Teamer | HTB Campus Lead | IEEE IAS Secretary
This project is intended for educational and research purposes.