Generated coverBinary analysis framework
BARF: Python framework for ELF/PE analysis, REIL lifting and SMT checks
Category: Developer & security tools · Type: Analysis tool
Target: ELF and PE binaries · 32/64-bit x86 and 32-bit ARM · REIL · Python
A Python binary analysis and reverse engineering framework. It loads ELF and PE programs, disassembles 32- and 64-bit x86 and 32-bit ARM with Capstone, and lifts instructions into the REIL intermediate language so later analyses are architecture-agnostic. Bundled tools recover control-flow and call graphs, and search, classify and verify ROP gadgets; fragments can be expressed as Z3 or CVC4 formulas. Release 0.6.0 added basic symbolic execution.
Relationship
Independent reimplementation
Evidence scope
Upstream README describes BARF as a Python package for binary analysis and reverse engineering: it loads ELF and PE programs, disassembles 32- and 64-bit x86 and 32-bit ARM, lifts instructions into REIL for architecture-agnostic analysis, integrates Z3 and CVC4 so code fragments can be expressed as formulas, and bundles BARFgadgets, BARFcfg and BARFcg. The README lists v0.6.0. No REA involvement is claimed.
Know before you try
The default-branch tip is 2019-11-24. README installation notes and package tests refer to Ubuntu 16.04, and SMT solvers (Z3 and/or CVC4) are required. Capability claims are upstream’s. We have not independently tested it.
Status
Last public default-branch tip 2019; README lists v0.6.0
License
BSD-2-Clause
BSD-2-Clause covers this project. The package analyzes user-supplied binaries; it does not ship those targets. Analyzed programs stay under their owners’ terms.
Source checked