r/blueteamsec • • 2h ago

malware analysis (like butterfly collections) VoidBox: Open-source behavioral malware analyzer built natively for Windows Sandbox (pure ctypes, MITRE ATT&CK, ClickFix mode, AI reports)

https://github.com/ParityLock/VoidBox

I built VoidBox, an open-source, lightweight dynamic analyzer designed to run directly inside built-in Windows Sandbox - meant for quick local triage when you don't want to upload private samples to cloud sandboxes or spin up a full CAPEv2 VM.

Repo: https://github.com/ParityLock/VoidBox

How it works under the hood

  • Pre-armed launch (t = 0 ms): Captures a Before-Snapshot, arms all monitors and Windows Firewall rules, spawns the target via CreateProcessW(CREATE_SUSPENDED) inside a Win32 Job Object (IOCP), and only then calls ResumeThread.
  • Zero drivers / minimal deps: All Win32 APIs (ReadDirectoryChangesW, RegNotifyChangeKeyValue, DnsGetCacheDataTable, SetTcpEntry, VirtualQueryEx/ReadProcessMemory, NtSuspendProcess) are wrapped in pure Python ctypes + winreg. Only PyQt5 and psutil as external deps.
  • Win+R (ClickFix) mode: Statically strips ^ / backtick obfuscation and decodes -enc / FromBase64String payloads before detonating inside the Job Object.
  • Self-protect kill-switch: Watches for DisableTaskMgr / DisableRegistryTools / taskkill tampering; freezes the process tree, dumps RAM strings, kills the Job Object, and remediates HKCU policies.
  • Live scoring & exports: Maps detections to MITRE ATT&CK IDs, supports external JSON/YAML community rules, streams FILE_SHARE_READ-locked events.jsonl back to C:\SandboxShare\Reports, and generates token-efficient AI_Analysis_Report.md with defanged IOCs (hxxps://, 1[.]2[.]3[.]4).

There's a 1-click .bat + standalone release bundle (built via GitHub Actions with SHA256SUMS.txt), or you can run directly from source (python main.py).

Would genuinely appreciate technical feedback, edge cases I missed, or suggestions for v1.2 (planning YARA scanning + TLS SNI capture next).

2 Upvotes

0 comments sorted by