CoBRA simplifies 99.86% of MBA expressions from seven real-world datasets
CoBRA can correctly simplify 99.86% of MBA expressions drawn from seven independent datasets.
Security & privacy Trail of Bits 3 Apr 2026 Tooling Real-world evidence
Published as “Simplifying MBA obfuscation with CoBRA”
Why it matters
Provides analysts with an automated way to recover readable code from MBA-obfuscated binaries.
Summary
The authors present CoBRA, an open-source tool that simplifies mixed Boolean-arithmetic (MBA) expressions using a worklist orchestrator with 36 passes across linear, semilinear, polynomial, and mixed families. It classifies each expression, applies appropriate simplification pipelines, and verifies results with random testing or Z3 proofs. In benchmarks of 73,066 expressions from seven public datasets, CoBRA successfully simplified 72,960, achieving a 99.86% success rate. The remaining 106 expressions were reported as unsupported due to carry-sensitive mixed-domain cases. The tool is available as a CLI, C++ library, and LLVM pass plugin.
What they found 1
- CoBRA simplifies 99.86% of the 73,000+ expressions drawn from seven independent datasets.
“CoBRA simplifies 99.86% of the 73,000+ expressions drawn from seven independent datasets.”
Caveats 4
- 106 expressions (≈0.14%) were unsupported, mainly carry-sensitive mixed-domain cases.
- Unsupported 106 expressions are carry-sensitive mixed-domain cases where bitwise and arithmetic operations interact in ways current techniques cannot decompose.
- Heavy subexpression duplication can exhaust the worklist budget, leading to unsupported cases.
- Current decomposition techniques cannot recover bit-level dependencies created by bitwise masks over arithmetic products.
What’s new here 4
- Open-source tool that handles the full range of MBA expression types encountered in the wild.
- Worklist-based orchestrator with 36 distinct passes organized into four simplification families.
- Automated verification of each simplification via random testing or Z3 equivalence proofs.
- CLI, C++ library, and LLVM pass plugin for easy integration into analysis pipelines.