ParityLock/VoidBox
حول
Local Windows Sandbox malware analysis tool (Any.Run-inspired): behavioral analyzer, YARA scanner, TLS SNI / PCAP-Lite, crypto-clipper watchdog & right-click VirusTotal checker.
الأمان والخصوصيةما يمكنك فعله
- Compact-to-Expanded Layout - Starts compact (355x300) with a smooth spinning ring and live elapsed timer while checking/uploading; automatically expands (530x540) with an AV engine breakdown table once results arrive.
- Auto-Upload up to 650 MB - Computes local SHA-256 first; if unknown on VT (404), streams files <= 32 MB directly or 32-650 MB via /api/v3/files/upload_url with a live percentage ring (0% -> 100%).
- 10-Minute Local Cache + Re-scan - Caches completed results in %LOCALAPPDATA%\VoidBox\vt_cache.json to save free API quota; when displaying cached data, highlights the Re-scan button with a soft-red border so you can force a fresh VT analysis in one click.
- Flagged Only / All Engines - Toggle the results table between detected threats only and all reporting AV engines, alongside file metadata (size, type, First Seen, Last Analysis).
النمو المقاس للنجوم
- خلال 24 ساعة
- +٤
- خلال 7 أيام
- جارٍ جمع السجل
- خلال 15 يومًا
- جارٍ جمع السجل
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصل
VoidBox
Open-source local malware analysis sandbox for Windows Sandbox -- Any.Run-inspired behavioral analyzer, YARA scanner, TLS SNI / PCAP-Lite monitor, and VirusTotal right-click checker.
VoidBox is an open-source, user-mode dynamic malware analysis and behavioral triage sandbox built natively for Windows Sandbox (a lightweight local alternative to cloud sandboxes like Any.Run or heavy CAPEv2 VMs). Written in pure Python ctypes + winreg (zero kernel drivers, only PyQt5 and psutil as external dependencies), it monitors suspicious .exe, .ps1, .bat, .vbs, .js, and Win+R ClickFix payloads from t = 0 ms.
It arms all Win32 monitors and Windows Firewall blocks before target execution begins (CreateProcessW(CREATE_SUSPENDED) + Win32 Job Object IOCP), detects ransomware file bursts, crypto-clipper clipboard hijacking, registry persistence, and C2 network activity, scores behavior against MITRE ATT&CK heuristics and YARA rules, protects itself and Task Manager via an active Kill-Switch, and mirrors locked events.jsonl, report.json, Markdown triage reports, and Wireshark-compatible capture_lite.pcap back to the host via C:\SandboxShare\Reports.
Browse individual full-resolution screenshots (Main Analyzer, Behavior Map, Detections & Quarantine, VirusTotal Mini-Widget)
Main Analyzer & Live Verdict
|
Interactive Behavior Map
|
Detections & Quarantine (YARA / SNI / FakeNet)
|
Right-Click VirusTotal Mini-Widget
|
Typical Use Cases
- Local Malware Triage without Cloud Uploads: Detonate untrusted executables and scripts inside disposable Windows Sandbox without sending private files to public cloud sandboxes.
- Win+R / ClickFix & PowerShell Deobfuscation: Decode obfuscated caret/backtick/Base64 commands and inspect LOLBin execution chains (
mshta,powershell,certutil) safely. - C2, YARA & Crypto-Clipper Detection: Capture plaintext TLS ClientHello SNI hostnames, DNS queries,
capture_lite.pcap, YARA signature matches, and clipboard cryptocurrency wallet swaps. - Instant Right-Click VirusTotal Checking: Check or auto-upload up to 15 files directly from Windows Explorer with a compact detection ring, 10-minute cache, and per-engine AV breakdown.
Technical Specification
| Subsystem | Underlying Mechanism & Capabilities |
|---|---|
Pre-Armed Process Launch (t = 0 ms) |
Captures Before-Snapshot, arms monitors and firewall rules, launches the target via CreateProcessW(CREATE_SUSPENDED), assigns it to a Job Object (JOB_OBJECT_MSG_NEW_PROCESS / EXIT_PROCESS over IOCP), and only then calls ResumeThread. |
| Filesystem & Registry Watchdogs | Overlapped ReadDirectoryChangesW across %TEMP%, %APPDATA%, Startup, Desktop, and target folders (with external rules/allowlist.json baseline filtering and Win32 rstrtmgr.dll dropped-executable PID attribution), plus async RegNotifyChangeKeyValue on Run, RunOnce, Winlogon, IFEO, and System Policies. |
| Network, DNS, Firewall & PCAP-Lite | Polls TCP/UDP tables, diffs DnsGetCacheDataTable, supports outbound per-executable blocking and strict sandbox lockdown via netsh advfirewall, enforces live IP blacklisting + active socket termination (iphlpapi.SetTcpEntry), and captures IPv4 TLS ClientHello SNI / HTTP Host: headers into Wireshark-compatible capture_lite.pcap (LINKTYPE_RAW) via elevated SIO_RCVALL raw sockets. |
| Clipboard Clipper & ClickFix Watchdog | Monitors GetClipboardSequenceNumber and attributes writes via GetClipboardOwner / GetWindowThreadProcessId to detect cryptocurrency wallet address swaps (BTC/ETH/TRX/XMR/LTC) and clipboard-staged ClickFix PowerShell/LOLBin payloads. |
| Memory Scanner & YARA Engine | Pure-ctypes VirtualQueryEx / ReadProcessMemory IOC extractor plus a built-in pure-Python YARA-compatible engine (auto-accelerated by yara-python when installed) scanning targets, dropped staging executables, and extracted memory buffers against rules/yara/voidbox_builtin.yar and %LOCALAPPDATA%\VoidBox\rules\yara\. |
| Win+R (ClickFix) Pre-Flight Parser | Statically strips ^ carets and backticks, decodes -enc / FromBase64String (UTF-16LE and UTF-8), extracts URLs and LOLBins prior to detonation, and runs the command inside the Job Object. |
| Self-Protect Kill-Switch | Detects DisableTaskMgr / DisableRegistryTools / DisableCMD tampering, killer commands (taskkill), and protected file modifications; suspends via NtSuspendProcess, dumps memory, calls TerminateJobObject, and remediates HKCU policies. |
Interactive Behavior Graph (v1.4) |
Built-in PyQt5 QGraphicsView Behavior Map tab (with real-time incremental updates and Reset Zoom) plus a self-contained, zero-CDN offline behavior_graph.html report mapping Target -> Processes -> Files / Registry / Network & TLS SNI / FakeNet / DNS / Clipboard -> YARA / Kill-Switch. |
Dropped Files Quarantine & Deep PE (v1.5) |
Automatically captures dropped executables/scripts as <name><ext>.quarantine + manifest.json + password-protected quarantine_infected.zip (password: infected) and runs a pure-Python PE static inspector (sections, Shannon entropy, RWX sections, packer markers, categorized imports). |
Persistence, FakeNet & Protection Rules (v1.5) |
Monitors System32\Tasks XML jobs (T1053.005) and real-time native wevtapi.dll Event Log subscriptions (EvtSubscribe for WMI 5861 / PowerShell 4104 / Sysmon / Defender); includes opt-in Simulated Fake Internet (INetSim-Lite) decoy proxy, Sandbox Anti-Fingerprint Cloak (VM Only), static Zip-Bomb Pre-Launch Guard, SandboxShare flood guard, and opt-in Auto-Kill rules under Settings -> Protection Rules. |
Detections Tab, Replay & Rules Editor (v1.5) |
Dedicated Detections tab (YARA matches, TLS SNI / FakeNet intercepts, quarantined files with one-click VT scan), File -> Open Previous Report... (report.json replay), in-app Tools -> Rules & Allowlist Editor... with live reload, High-DPI auto-fit tables & Behavior Map (100% / 125% / 150% scaling), and a read-only GitHub Release Update Checker with embedded CHANGELOG.md viewer (Settings -> Check for Updates...). |
| External Rules, Allowlist & Exports | Loads community rules from rules/community_rules.json, baseline OS noise exclusions from rules/allowlist.json, streams CreateFileW(FILE_SHARE_READ)-locked events.jsonl, and exports Analysis_Report.md, report.json, and behavior_graph.html with defanged IOCs (hxxps://, 1[.]2[.]3[.]4). |
| Explorer Context Menu & VT Mini-Widget | Interactive checkbox installer (install_vt_context_menu.bat / --setup-context-menu) managing 3 file-only right-click actions (Check in VirusTotal, Send to VoidBox Samples, Open VirusTotal Upload Page) for up to 15 files at once. Includes synced Dark (Legacy), Full Dark (OLED), and Light themes under Settings -> Themes. |
Architecture
flowchart LR
Host["Host Machine\nC:\\SandboxShare"] <-->|"ReadOnly=false\nSamples & Live Reports"| Share["SandboxShare\n(Desktop)"]
Dist["VoidBox.exe\n(ReadOnly=true)"] -->|"Hypervisor Protected"| VB["VoidBox Controller\n(Elevated Admin)"]
VB -->|"CREATE_SUSPENDED\n+ Job Object IOCP"| Target["Target Process Tree\n(.exe / Script / Win+R)"]
Target --> Mon["Win32 Monitors\nProcess | File | Registry\nNetwork/TLS SNI | Clipboard | YARA"]
Mon --> Bus["EventBus\n(FILE_SHARE_READ JSONL)"]
Bus --> Heur["Heuristic Engine + Allowlist\nGOOD -> SUSPICIOUS -> DANGEROUS"]
Bus --> Guard["Self-Protect Watchdog\nFreeze -> Dump -> Kill -> Remediate"]
Bus --> Exp["Markdown / JSON / PCAP-Lite"]
Exp --> Share
Limitations & Threat Model
VoidBox is a user-mode (Ring 3) triage utility, not a kernel EDR or bare-metal hypervisor sandbox. Be aware of its engineering boundaries:
- No kernel driver / no direct syscall hooking: VoidBox does not install a minifilter driver or hook
ntdll. Malware using direct syscalls (SysWhispers), BYOVD drivers, or kernel rootkits can bypass user-mode monitors. - Filesystem PID attribution:
ReadDirectoryChangesWdoes not provide originating PIDs on Windows. Always run untrusted samples inside a clean Windows Sandbox ([SANDBOX]badge) rather than a busy[HOST]OS; tune host/OS noise inrules/allowlist.json. - Raw socket capture scope:
SIO_RCVALLrequires elevation and captures IPv4 TCP traffic only (no IPv6 / QUIC / encrypted TLS payload decryption -- only plaintext ClientHello SNI and cleartext HTTPHost:headers). - Windows Sandbox fingerprinting: Windows Sandbox defaults to username
WDAGUtilityAccountand virtualized graphics.run_in_sandbox.batseeds realistic decoy documents inside Sandbox to deter naive empty-desktop checks, but advanced anti-VM samples may still detect the hypervisor. - ETW Kernel providers: Current telemetry uses Job Object IOCP (which catches short-lived child processes reliably) plus real-time native Win32
wevtapi.dll(EvtSubscribe) subscriptions for PowerShell 4104 / Sysmon / Defender / WMI 5861 rather than a custom kernel ETW consumer.
Quick Start
Option 1: 1-Click Release Bundle (Zero Python Required)
- Enable Windows Sandbox on Windows 10/11 Pro, Enterprise, or Education (elevated PowerShell, then reboot if prompted):
Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -All -Online - Download
VoidBox-<version>-windows-x64.zipfrom Releases and extract it on your host. - Double-click
setup_and_launch_sandbox.baton your host PC. It createsC:\SandboxShare\SamplesandC:\SandboxShare\Reports, writesSandbox_Runner.wsb, and boots Windows Sandbox withVoidBox.exemounted read-only. - Drop suspect files into
C:\SandboxShare\Sampleson your host -- they appear immediately atDesktop\SandboxShare\Samplesinside the Sandbox. - Select the sample inside VoidBox (or switch to Win+R Command), click Start Analysis, and collect reports (
Analysis_Report.md,behavior_graph.html,report.json,events.jsonl,capture_lite.pcap) fromC:\SandboxShare\Reportson your host.
Release Archive Layout
| File / Folder | Where It Runs | Purpose |
|---|---|---|
setup_and_launch_sandbox.bat |
Host PC (run this) | Verifies Windows Sandbox, creates C:\SandboxShare\Samples & Reports, generates Sandbox_Runner.wsb, and launches the VM. |
run_in_sandbox.bat |
Inside Sandbox (auto) | Executed automatically via .wsb inside the VM to seed decoy files, unblock VoidBox.exe, and start it elevated. Do not run manually on host. |
install_vt_context_menu.bat |
Host PC (installer / updater / remover) | Opens the interactive checkbox setup dialog (--setup-context-menu). Use it to install, update stale paths after upgrades, toggle options on/off, or remove everything via Remove All. |
uninstall_vt_context_menu.bat |
Host PC (quick remover) | One-click script that deletes all VoidBox right-click keys (VoidBoxVT, VoidBoxSamples, VoidBoxOpenVT) from HKCU without opening the UI. |
VoidBox.exe |
Inside Sandbox / Context Menu | Standalone PyInstaller binary (no Python installation required). |
Explorer Context Menu & VirusTotal Mini-Widget
Run install_vt_context_menu.bat (or open Settings -> Explorer Context Menu... inside VoidBox) to manage Windows Explorer right-click file actions (folders are ignored; HKCU only, no admin rights required).
[!TIP]
install_vt_context_menu.batdoubles as an updater and remover: re-running it detects which entries are already installed, flags outdated paths ([update available]) after moving or upgrading VoidBox, and lets you toggle individual checkboxes or click Remove All anytime. On Windows 11, holdShift + Right-Clickon a file (or click Show more options) to see installed entries.
Available Right-Click Actions
| Action | CLI Flag | What It Does |
|---|---|---|
| Check in VirusTotal (VoidBox) | --vt-check "%1" |
Opens the compact detection-ring widget (up to 15 files; automatic retry on VirusTotal's 4 req/min public API limit). |
| Send to VoidBox Samples | --send-to-samples "%1" |
Copies selected file(s) straight into C:\SandboxShare\Samples (with collision-safe renaming) for Windows Sandbox detonation. |
| Open VirusTotal (Upload Page) | --open-vt-upload |
Opens the clean VirusTotal web upload page (virustotal.com/gui/home/upload) in an independent mini browser window. |
VirusTotal Mini-Widget Features
| Feature | Details |
|---|---|
| Compact-to-Expanded Layout | Starts compact (355x300) with a smooth spinning ring and live elapsed timer while checking/uploading; automatically expands (530x540) with an AV engine breakdown table once results arrive. |
| Auto-Upload up to 650 MB | Computes local SHA-256 first; if unknown on VT (404), streams files <= 32 MB directly or 32-650 MB via /api/v3/files/upload_url with a live percentage ring (0% -> 100%). |
10-Minute Local Cache + Re-scan |
Caches completed results in %LOCALAPPDATA%\VoidBox\vt_cache.json to save free API quota; when displaying cached data, highlights the Re-scan button with a soft-red border so you can force a fresh VT analysis in one click. |
| Flagged Only / All Engines | Toggle the results table between detected threats only and all reporting AV engines, alongside file metadata (size, type, First Seen, Last Analysis). |
| Pin & Orange Taskbar Notify | Top-right Pin keeps the window always on top; Notify triggers native Win32 FlashWindowEx orange taskbar flashing as soon as a queued scan completes (opt-in defaults available in Settings). |
| Drag & Drop + Quick Actions | Drop any new file directly onto the open widget to scan it immediately. One-click buttons for Copy SHA, Copy Summary, Send to VoidBox Samples, Open VirusTotal, Upload Page, Bazaar, and Hybrid. |
| Synced Theme Selector | Built-in Settings dialog lets you switch between Dark (Legacy), Full Dark (OLED), and Light themes (synced with main VoidBox), configure your free VT API key (Get Free Key), and toggle auto-expand / Pin / Notify defaults. |
Option 2: Run from Source (Python 3.10+)
git clone https://github.com/ParityLock/VoidBox.git
cd VoidBox
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
# Launch GUI
python main.py
CLI Examples
# Generate Sandbox_Runner.wsb
python main.py --generate-wsb --share-dir C:\SandboxShare
# Headless capture on a file (or harmless test script in examples/benign_tests/)
python main.py --headless --target examples\benign_tests\benign_telemetry_probe.py --timeout 30 --block-net
# Headless Win+R ClickFix analysis
python main.py --headless --winr "powershell -NoP -W Hidden -enc ..." --timeout 45 --block-net
# Open interactive Windows Explorer context menu setup / updater / remover
python main.py --setup-context-menu
# Compact VirusTotal mini-window (files only, up to 15)
python main.py --vt-check C:\SandboxShare\Samples\sample.exe
# Copy file(s) straight into C:\SandboxShare\Samples
python main.py --send-to-samples C:\Downloads\suspect.exe
# Build standalone VoidBox.exe locally
pip install pyinstaller
python build_exe.py --no-sign
Release Integrity, SmartScreen & AV False Positives
- SmartScreen & AV heuristics:
VoidBox.exeis an unsigned open-source PyInstaller binary invoking low-level Win32 analysis APIs (CreateProcessW(CREATE_SUSPENDED),ReadProcessMemory,NtSuspendProcess). Windows SmartScreen and 1-2 minor AV engines on VirusTotal may flag it generically. - Reproducible CI builds & Sigstore Provenance: Official release archives are built exclusively on GitHub-hosted runners via
.github/workflows/release.yml, accompanied bySHA256SUMS.txtand GitHub Artifact Attestations (actions/attest-build-provenance). - Verify SHA-256 locally:
Get-FileHash .\VoidBox-v1.5.1-windows-x64.zip -Algorithm SHA256 - Verify Sigstore attestation (GitHub CLI):
gh attestation verify .\VoidBox-v1.5.1-windows-x64.zip --repo ParityLock/VoidBox
Running Tests
python -m unittest discover -s tests -v
Harmless verification and demo probes are included in examples/benign_tests/benign_telemetry_probe.py and examples/benign_tests/showcase_simulator.py, and a sample exported report is in examples/sample_ai_report.md.
Security Disclaimer
VoidBox is built strictly for defensive security research, malware triage, and educational use. Never detonate untrusted binaries directly on a production host OS. Review SECURITY.md before analyzing live samples.
Roadmap
- MITRE ATT&CK Mapping, External JSON/YAML Rules & Defanged IOCs (v1.1.0)
- YARA Rule Scanning & Driverless PCAP-Lite / TLS SNI Capture (v1.2.0)
- Multi-Theme UI (
Dark Legacy/Full Dark OLED/Light) (v1.2.1) - Clipboard Hijack Detector, External
allowlist.json, Sandbox Decoys, Interactive Explorer Context Menu & VirusTotal Mini-Widget, Sigstore Provenance (v1.3.0 - v1.3.2) - Interactive Behavior Graph, Update Checker, Zip-Bomb Guard & Auto-Kill Rules (v1.4.0 - v1.4.3)
- Dropped Files Quarantine (
infectedZIP), DedicatedDetectionsTab, Deep PE Inspector, Scheduled Tasks/WMI Persistence, Report Replay, Rules Editor & Simulated Fake Internet (INetSim-Lite) (v1.5.0)
Core roadmap complete as of v1.5.0. Future v1.5.x updates focus on stability, Windows Sandbox edge cases, and community-reported issues.
License
Released under the MIT License.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…