βœ“
Field Note Β· Nov 26, 2026 Β· 9 min read

Air-Gapped Reverse Engineering & Binary Triage with Ghidra MCP and Local LLMs

Build a zero-egress reverse engineering workstation pairing headless Ghidra, YARA, Volatility 3, and locally hosted Qwen2.5-Coder or Foundation-Sec weights.

Air-Gapped Reverse Engineering & Binary Triage with Ghidra MCP and Local LLMs
Authorized Security Research & Defensive Notice This technical guide is strictly intended for authorized security testing, QA debugging, and defensive engineering on systems, devices, and applications you own or have explicit, written authorization to audit. ToolWar strictly prohibits the use of these techniques or utilities for unauthorized access or destructive activities.

Malware analysts and firmware reverse engineers rarely have the option to upload proprietary client binaries or live incident artifacts to external cloud APIs. NDA contracts, operational security, and sample containment demand an air-gapped workflow where zero bytes leave your lab network.

By pairing classic offline powerhouses like Ghidra, Radare2, and YARA with local Open-Weight models via Ollama (127.0.0.1:11434), analysts gain rapid pseudo-C summarization without compromising sample confidentiality.

Blueprint Architecture

A defense-grade offline triage stack consists of four isolated layers:

Sizing Hardware with Quantized SecOps Weights

ADVERTISEMENT
Model Profile Quantization Est. VRAM / RAM Best Analytical Workload
Qwen2.5-Coder 7B Q4_K_M ~5.5 GB VRAM Fast pseudo-C function explanation on 8 GB GPUs
Foundation-Sec-8B Q4_K_M ~5.8 GB VRAM Threat taxonomy, log triage & SOC indicator notes
DeepSeek-R1-Distill 14B Q4_K_M ~10.2 GB VRAM Multi-function control-flow & crypto routine tracing
SecBERT Classifier FP16 / ONNX ~0.5 GB RAM Ultra-fast CPU CVE NER & log clustering

Before deploying offline, verify exact VRAM + KV cache headroom for 16K context windows in the ToolWar Local LLM VRAM Calculator.

Operational Workflow inside a Quarantined VM

  1. Pre-verify Checksums Before Disconnecting: Always verify GGUF or safetensors SHA-256 digests prior to moving weights into an air-gapped enclave (LLM03 Supply Chain defense). Avoid loading arbitrary .pt pickle files.
  2. Lock Ollama to Loopback: Configure OLLAMA_HOST=127.0.0.1:11434 inside the analysis VM so no LAN process can hit the inference port unauthenticated.
  3. Trace Focused Functions, Not Entire Binaries: Use Ghidra cross-references (xrefs) to locate suspicious socket, registry, or crypto initialization helpers first, then pass bounded pseudo-C slices for symbol-renaming proposals.
  4. Verify Every Hypothesis Deterministically: Confirm suggested strings, imports, and IOCs directly in Ghidra GUI or CyberChef, and compile draft YARA signatures through YARA MCP against benignware before fleet rollout.
ADVERTISEMENT
KS

Kapil Soni

Updated test bio for ToolWar lead researcher

πŸ’¬ Discussion

0 comments
No comments yet. Have insights or questions regarding this article? Join the discussion!