Environment:0sec labs 0 angr
| Knowledge Sources | |
|---|---|
| Domains | Binary_Analysis, Symbolic_Execution, Reachability |
| Last Updated | 2026-10-30 00:00 GMT |
Overview
angr >= 9.2 symbolic execution engine for slice-scoped reachability pruning of static vulnerability hypotheses in the 0verse pipeline.
Description
angr is 0verse's symbolic execution scalpel for the reachability-pruning stage. It is used as a timeboxed consult, not the pipeline spine: every run is hard wall-clock bounded (default 30s), and only functions that sit on a taint slice are ever symbolically executed. The module imports angr lazily so the package loads and the rest of the pipeline runs without it installed. angr operates with `auto_load_libs=False`, stubbing libc/PLT imports with built-in SimProcedures so only the target code stays symbolic. Three outcomes: `witness` (concrete input reaching the sink), `unsat` (sink provably unreachable — prune), and `unknown` (timeout/explosion — fall through to dynamic oracle).
Usage
Use this environment for the check_reachability stage of the Binary Vulnerability Discovery workflow. It is the mandatory prerequisite for symbolic reachability pruning of static hypotheses before dynamic confirmation.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| OS | Linux | angr's native dependencies are Linux-oriented |
| Hardware | 8GB+ RAM | State explosion can be memory-intensive |
| Disk | 2GB | angr + Unicorn + Capstone dependencies |
Dependencies
System Packages
- Python >= 3.11 (see Environment:0sec_labs_0_Python_3_11)
Python Packages
- `angr` >= 9.2 (symbolic execution engine)
- `claripy` (constraint solver — bundled with angr)
- `capstone` >= 5.0.8, < 6 (overridden transitive pin for security patch)
- `pillow` >= 13.0.0 (overridden transitive pin for security fixes)
Credentials
No credentials required. This is a local symbolic execution engine.
Quick Install
# Install the symbolic execution extra
pip install "0verse[symbolic]"
# Verify
python -c "import angr; print(angr.__version__)"
Code Evidence
Availability probe from `0verse/src/zeroverse/concolic.py:39-45`:
def angr_available() -> bool:
"""True when the symbolic-execution extra is importable."""
try:
import angr # noqa: F401
except ImportError:
return False
return True
Lazy import with degrade-to-unknown from `0verse/src/zeroverse/concolic.py:102-106`:
try:
import angr
import claripy
except ImportError:
return AngrVerdict("unknown", note="angr not installed")
Conservative defaults from `0verse/src/zeroverse/concolic.py:50-58`:
@dataclass
class AngrConfig:
timeout_s: float = 30.0 # hard wall-clock budget per finding
sym_arg_count: int = 3 # number of symbolic argument registers
sym_stdin_len: int = 256 # symbolic stdin bytes (the input vector)
loop_bound: int = 16 # LoopSeer bound — kill runaway loops
max_active: int = 64 # cap the active stash (state-explosion guard)
veritesting: bool = True # merge paths through diamond CFGs
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
| `AngrVerdict("unknown", note="angr not installed")` | angr extra not installed | `pip install 0verse[symbolic]` |
| State explosion / timeout | Binary too complex for default bounds | Increase `timeout_s` or `max_active` in `AngrConfig` |
| Capstone version conflict | angr pins older Capstone 5.0.6 | Override applies `capstone>=5.0.8,<6` (security patch) |
Compatibility Notes
- Python 3.12+: angr/claripy ship 3.12-only syntax; mypy is configured to skip following those imports.
- macOS: angr works but some hosts see pre-existing test failures.
- Lazy import: The module imports angr lazily so the core package remains importable without it.