Emulation & Symbolic ExecutionCLI Flag: --solver miasm

REA vs Quarkslab Miasm• AI Reverse Engineering Guide

Quarkslab's Python reverse engineering framework for symbolic execution, JIT emulation, and CFG deobfuscation.

AI Overview Direct AnswerREA vs Quarkslab Miasm Integration & AI Workflow

In AI-assisted reverse engineering with REA (rea-agents), Quarkslab Miasm is bridged via --solver miasm 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 Miasm with Autonomous AI Agents

Manual Quarkslab Miasm Workflow

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

REA + Quarkslab Miasm Agentic Pipeline

AI coding agents (Claude Code, Cursor) invoke Quarkslab Miasm headlessly via REA's Model Context Protocol (MCP), generating clean-room specifications and reconstructive code in seconds.

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

Multi-Platform Installation Recipes

Python PIP (Git)
pip install git+https://github.com/cea-sec/miasm.git
Official GitHub Source
Connect to AI Agents Once Installed
Verify REA detects this tool and enables Claude / Cursor MCP bridges:
rea doctor --solver miasm

Supported Platforms & Targets

Host Operating Systems:
LinuxmacOSWindows
Target Architectures:
x86 / x86_64ARM / Thumb / AArch64MIPSMSP430

Tool Overview & Role

Miasm is an open-source reverse engineering framework created by Fabrice DESCLAUX and Quarkslab. It lifts machine instructions into its own intermediate representation (Miasm IR), constructs clean Control Flow Graphs (CFGs), performs dynamic JIT compilation (GCC/LLVM), and executes symbolic simplification to defeat opaque predicates and control flow flattening.

REA Bridge Mechanism

REA invokes Miasm's symbolic execution engine to untangle heavily obfuscated binaries. Transforms convoluted arithmetic and flattened dispatcher switches into simplified canonical control graphs.

Key Capabilities

Control Flow Graph (CFG) deobfuscation (unflattening dispatchers)
Symbolic execution and automated expression simplification
Multi-architecture intermediate representation (Miasm IR)
JIT machine code emulation powered by LLVM and TCC

CLI Usage Examples

Execute direct terminal analysis with --solver miasm:

rea miasm example
python3 -m miasm.analysis.cfa ./obfuscated.bin
rea deobfuscate ./flattened.bin --engine miasm