Dynamic InstrumentationCLI Flag: --dynamic qbdi

REA vs Quarkslab QBDI• AI Reverse Engineering Guide

Quarkslab's modular dynamic binary instrumentation (DBI) framework based on LLVM.

AI Overview Direct AnswerREA vs Quarkslab QBDI Integration & AI Workflow

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.

Synergy & ComparisonAutonomous AI Acceleration

How REA Enhances Quarkslab QBDI with Autonomous AI Agents

Manual Quarkslab QBDI Workflow

Traditional reverse engineering in Quarkslab QBDI requires manual CFG graph navigation, manual symbol naming, and isolated local scripts without LLM code intelligence.

REA + Quarkslab QBDI Agentic Pipeline

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.

Open SourceOpen Source (Apache 2.0)
100% Free
Official Download & Website ↗

Multi-Platform Installation Recipes

Python PIP
pip install PyQBDI
Connect to AI Agents Once Installed
Verify REA detects this tool and enables Claude / Cursor MCP bridges:
rea doctor --dynamic qbdi

Supported Platforms & Targets

Host Operating Systems:
LinuxmacOSAndroidiOSWindows
Target Architectures:
x86x86_64ARMAArch64

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

Directly callable via REA's DBI pipeline and frida-qbdi bindings. Allows agents to attach instruction-level execution tracers, log register changes between basic blocks, and record precise call graphs.

Key Capabilities

In-process LLVM JIT instruction-level dynamic instrumentation
Full integration with Frida via frida-qbdi for mobile hooking
Detailed memory read/write operand and register access logging
Fast basic block execution frequency and coverage profiling

CLI Usage Examples

Execute direct terminal analysis with --dynamic qbdi:

rea qbdi example
pyqbdi ./trace_tool.py ./target_binary
rea trace ./binary --dynamic qbdi --inst-callback 'log_regs'