Skip to content

Crucible

Crucible is a CLI-first, modular EVM bridge security research testbed for historical exploit reconstruction, deterministic local reruns, baseline reset, structured research artifacts, and plug-and-play attack packs.

It ships with 11 attack packs: 6 benchmark reproductions (Wormhole, Nomad, Poly Network, Horizon, BNB Bridge, Multichain), 2 demo packs, 1 LLM agent attack framework, 1 L4 multi-chain validation pack, and 1 bridge demo (Nomad). 5 of them have L2 reproducibility (Wormhole, Nomad, Poly Network, Horizon, BNB Bridge), 1 narrative with L1 reproducibility (Multichain), plus 4 fixture and demonstration packs.

Looking for a broader overview? See the Technical Overview for system philosophy, core concepts, and design principles, or the Design Decisions document for the rationale behind every major architectural choice.

Quick Start for Researchers

Get up and running with Crucible in under 5 minutes to reproduce your first historical exploit.

1. Clone & Install

Crucible requires Python 3.11+ and Foundry (anvil, forge, cast).

git clone https://github.com/AsokaKrsna/crucible_testbed #the project is currently in limited access mode.
cd crucible-testbed

# Install dependencies using uv (recommended for speed)
pip install uv
uv sync

# Initialize the workspace directories
crucible init

2. Configure Environment

Crucible needs archive node RPC URLs to fork historical blockchain states. Copy the template and add your providers.

cp .env.example .env
Edit your .env to include at least an Ethereum archive URL:
ETH_RPC_URL=https://eth.llamarpc.com

3. Verify Health

Ensure your environment, Foundry installation, and RPC connections are perfectly configured:

crucible doctor

4. Run a Benchmark Exploit

Run the Nomad Bridge L2 exploit reproduction ($190M hack). This command will fork Ethereum and Polygon at the exact historical block, verify the baseline determinism, and run the attack plugin automatically:

crucible experiment run experiments/nomad_replay.yaml

Prefer Docker? Crucible also supports a fully containerized workflow. See the Deployment Guide for zero-dependency execution.

Key Features

Capability How
Fork any EVM chain at any block (Some chains may require paid RPC tier) crucible fork --topology <name>
Deterministic replay Fixed gas/fee/timestamp/order by default (Can opt-out)
3-tier reset soft (<5s) → medium (<30s) → hard (<5min)
Structured artifacts 7 JSONL streams + SHA-256 integrity per run
Plugin SDK AttackPlugin, BridgePlugin, AgentPlugin
Auto-extract attacks crucible attack extract <tx_hash> --name <name>
Publication gates 6 research-quality checks before every run
Cache provenance Cold/warm/strict/permissive cache fingerprinting
Experiment comparison crucible diff <run_a> <run_b>
Export bundles Self-contained tarballs with integrity manifests
Streamlit dashboard (Not recommended over CLI) crucible dashboard or streamlit run dashboard/app.py
Interactive analysis crucible notebook — Jupyter with crucible.analysis helpers
Post-run analytics from crucible.analysis import load_run, load_gas, ... — pandas DataFrames

Documentation

Getting Started

Doc For
Quick Reference One-page cheat sheet for daily Crucible tasks
10-Minute Tutorial Reproduce the Nomad hack from scratch
Deployment & Setup Deploy Crucible natively (CLI) or via Docker
Docker Guide Containerized workflow and service topology
RPC Provider Guide Archive RPC setup and provider comparison

How-To Guides

Doc For
Deploying Contracts Deploy and test your own Solidity contracts
Authoring Scenarios Writing scenario YAML for experiment environments
Writing Attack Packs Step-by-step attack plugin creation
Authoring Plugins Attack, bridge, and agent plugin SDK
Running LLM Agents Configure autonomous agent experiments

Architecture & Design

Doc For
Technical Overview System philosophy, core concepts, and design principles
System Architecture Complete component map with code structure
Design Decisions Rationale behind every major architectural choice
Instrumentation Architecture Auto artifact capture via RPC proxy
Research Workflow Academic reproduction process

Scope & Fidelity

Doc For
Capabilities Supported chains, attack categories, and limitations
Feature Guide Comprehensive feature inventory
Fidelity Guide L0–L4 fidelity level definitions and enforcement
Reproduction Scope What can and cannot be reproduced
Testbed Scope Guide Boundary conditions and supported experiment types
Bridge Limitations Bridge plugin coverage and known gaps

Tools & Analysis

Doc For
CLI Reference All commands and options
Dashboard Guide Streamlit dashboard panels and usage
Analysis Notebooks Jupyter-based experiment analysis
Plugin Registry Registered attack, bridge, and agent plugins
Benchmarks 6 benchmark attack packs
Simple Operations Common operational recipes

Operations

Doc For
Maintenance Cleanup and lifecycle management
Troubleshooting Common issues: Docker, Foundry, RPC, experiments
Reproducibility Provenance, verification, and determinism guarantees

Case Studies

Doc For
Nomad Replica Fraud $190M — uninitialized committedRoot bypass
Wormhole Guardian Bypass $326M — guardian signature verification bypass
Poly Network Privilege Escalation $611M — cross-chain keeper privilege escalation
Horizon Multisig Drain $100M — multisig key compromise and fund drain
BNB Token Hub Proof Bypass $586M — IAVL proof verification bypass
Multichain MPC Compromise $126M — MPC key compromise

Publication

Doc For
AE Walkthrough Step-by-step Academic Artifact Evaluation guide
Zenodo Archive Guide Archiving on Zenodo for DOI assignment

License

Private project as of now, soon to be released under MIT license.