Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:0sec labs 0 Python 3 11

From Leeroopedia
Knowledge Sources
Domains Binary_Analysis, Security
Last Updated 2026-10-30 00:00 GMT

Overview

Python >= 3.11 runtime for the 0verse binary vulnerability discovery pipeline (ingest, analysis, fleet, scout, reporting).

Description

The 0verse Python package (`0verse/pyproject.toml`) declares `requires-python = ">=3.11"`. The core install is intentionally dependency-free so lightweight commands like `0verse triage` work everywhere. Heavy analysis engines (Ghidra, angr, pwntools, Qiling) are isolated behind optional extras. Ruff targets `py311` and mypy enforces `python_version = "3.11"` with strict mode. The package uses `from __future__ import annotations` throughout, relying on PEP 604 union syntax (`X | None`) that requires 3.10+ at runtime.

Usage

Use this environment for any 0verse pipeline stage that runs as Python: binary ingestion/triage, static hypothesis scanning, LLM triage funnel, patch verification, report emission, fleet seed construction, variant detection, fleet dedup emission, firmware scout fixture capture, offline bundle inspection, and evidence report rendering.

System Requirements

Category Requirement Notes
OS Linux (Ubuntu 22.04+ recommended) macOS works for lint/test; production runs on Linux
Hardware 4+ CPU cores, 8GB+ RAM Analysis stages are CPU-bound; LLM stages network-bound
Disk 10GB SSD Binary corpora + Docker images for engine extras

Dependencies

System Packages

  • `python3.11` or higher
  • `git-lfs` (for binary test corpora)
  • A C compiler (`gcc`/`clang`) — needed by differential allocator and harness synthesis stages

Python Packages

  • `lief` >= 0.15 (analyze extra — binary parsing)
  • `capa` (analyze extra — capability analysis)
  • `anthropic` >= 0.69 (llm extra — Claude backend)
  • `openai` >= 1.40 (llm extra — OpenAI backend)
  • `pytest` >= 8 (dev extra)
  • `ruff` >= 0.6 (dev extra — lint)
  • `mypy` >= 1.11 (dev extra — type check)
  • `jsonschema[format]` >= 4.23 (dev extra — schema validation)

Credentials

The following environment variables may be set for LLM-backed stages:

  • `ANTHROPIC_API_KEY`: Anthropic API key (Claude backend)
  • `Z_AI_API_KEY`: z-ai/GLM API key (GLM backend, Anthropic-compatible wire)
  • `OPENAI_API_KEY`: OpenAI API key (GPT backend)
  • `ZEROVERSE_LLM_MODEL`: Override the default LLM model id
  • `ZEROVERSE_EXECUTOR`: Set to `local` to enable the confirm oracle (without it the oracle fail-closes)
  • `ZERO_CLOUD_TOKEN`: Bearer token for cloud report upload (env-only, never a CLI flag)

Quick Install

# Core install (dependency-free, runs triage everywhere)
pip install "0verse"

# With analysis + LLM extras
pip install "0verse[analyze,llm]"

# Development
pip install "0verse[dev]"

Code Evidence

Python version requirement from `0verse/pyproject.toml:6`:

requires-python = ">=3.11"

Ruff target version from `0verse/pyproject.toml:79`:

[tool.ruff]
line-length = 100
target-version = "py311"

mypy strict mode from `0verse/pyproject.toml:100-103`:

[tool.mypy]
python_version = "3.11"
strict = true
files = ["src"]

Core dependency-free design from `0verse/pyproject.toml:15-16`:

# Core install is dependency-free so `0verse triage` works everywhere.
dependencies = []

Common Errors

Error Message Cause Solution
`RuntimeError: SocketCAN capture requires the optional Scout dependency` `python-can` not installed `pip install 0verse[scout]`
`ImportError: No module named 'angr'` angr extra not installed `pip install 0verse[symbolic]`
`RuntimeError: PyGhidra is unavailable` pyghidra bridge not installed `pip install 0verse[ghidra]` or install from Ghidra's bundled wheel
Silent zero (0 confirmations, run completes in seconds) Broken environment degrading silently Check `ghidra_ok`, LLM `calls_ok`/`calls_failed`, AFL `fuzzer_stats`

Compatibility Notes

  • macOS: Works for lint, type-check, and unit tests. Some hosts see ~13 pre-existing macOS test failures on `main`.
  • Windows: Not officially supported for production runs; use WSL2 or Linux.
  • Python 3.12+: Works, but angr/claripy ship 3.12-only syntax in their sources — mypy is configured to skip following those imports.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment