--dynamic qbdiREA vs Quarkslab QBDI• AI Reverse Engineering Guide
Quarkslab's modular dynamic binary instrumentation (DBI) framework based on LLVM.
In AI-assisted reverse engineering with REA (rea-agents), Quarkslab QBDI is bridged via --dynamic qbdi to allow Claude Code, Cursor, and Windsurf to extract symbol graphs, trace control flow, and decompile binaries headlessly via Model Context Protocol.
How REA Enhances Quarkslab QBDI with Autonomous AI Agents
Traditional reverse engineering in Quarkslab QBDI requires manual CFG graph navigation, manual symbol naming, and isolated local scripts without LLM code intelligence.
AI coding agents (Claude Code, Cursor) invoke Quarkslab QBDI headlessly via REA's Model Context Protocol (MCP), generating clean-room specifications and reconstructive code in seconds.
Multi-Platform Installation Recipes
pip install PyQBDIrea doctor --dynamic qbdiSupported Platforms & Targets
Tool Overview & Role
QBDI (QuarkslaB Dynamic Instrumentation) is a modular, cross-platform dynamic binary instrumentation framework based on LLVM. Unlike heavyweight emulators, QBDI operates in-process via just-in-time compilation. It provides fine-grained instruction callbacks, memory access logging, and execution path monitoring for x86, x86_64, ARM, and AArch64. Coupled with Frida (frida-qbdi), it provides instruction-level instrumentation on iOS and Android.
REA Bridge Mechanism
Key Capabilities
CLI Usage Examples
Execute direct terminal analysis with --dynamic qbdi:
pyqbdi ./trace_tool.py ./target_binary
rea trace ./binary --dynamic qbdi --inst-callback 'log_regs'