Skip to content

ChainForge PRO / Security prototype

Find the failure before someone exploits it.

A workbench for exploring how smart contracts behave—and how their rules can break. Start with the interactive model, then look inside the design.

Try the model ↓Project background →
SYSTEM / CONCEPT
InputsInformation to work withIndependent stepsKeep responsibilities separateReview the resultCheck · learn · refine
Architecture sketch / not a product screenshot

EVM X-Ray Stepper (OllyDbg Reverse Engineering Console)

Deterministic Solidity bytecode execution trace debugger. Line-by-line opcode stepping, symbolic storage slot decoding, and ghost invariant verification.

eRPC Cache: 100% ($0 RPC)
Pinned Anvil: #16817996
Attack Presets:
Phase: SetupFrame: 1 / 6Gas: 21,450
Source Pane · Click gutter to set BreakpointsOpcode: JUMPDEST
1// Euler Vault - donateToReserves invariant check
2function donateToReserves(uint256 subAccountId, uint256 amount) external {
3 AssetStorage storage d = getAssetStorage();
4 uint256 balance = d.underlyingBalance;
5 // VULNERABILITY: Internal reserves credited without liquidity health check
6 d.reserves += amount;
7 subAccount[subAccountId].eTokenBalance -= amount;
8 // Missing: checkLiquidity(subAccountId)!
9 require(subAccount[subAccountId].dTokenBalance >= 0, "SOLVENCY");
10 emit Donate(subAccountId, amount);
11}
12function checkInvariant() public view returns (bool) {
13 return totalAssets() >= totalBorrowed() + totalReserves();
14}
Symbolic Storage Slot LayoutAST Decoded
d.reserves0x00
0.00 DAI
subAccount.eToken0x01
100,000,000 eDAI
subAccount.dToken0x02
80,000,000 dDAI
Ghost Variable State (Non-Native EVM)VALID
Protocol Solvency Delta
+20,000,000 DAI
Account Collateral Ratio
125.0%
Trace Executing Normally · Monitoring Storage Deltas

Step through execution using F10 (Next) or F11 (Into) to observe storage mutation and invariant evaluation.

Read Invariant Whitepaper
Systems Architecture

The 4 Pillars of ChainForge PRO

How ChainForge PRO replaces blind, multi-hour fuzzing loops with surgical, deterministic reverse-engineering and zero-egress local caching.

1. The OllyDbg EVM Stepper (EVM X-Ray)

Deterministic Bytecode & Storage Layout Replay

Replaces thousands of lines of chaotic raw Foundry logs with a 4-pane reverse-engineering console. Maps compiler artifacts to decode raw 32-byte hex slots into symbolic variables (totalSupply, balances[victim]), tracks ghost variables across execution frames, and allows auditors to step line-by-line using F10, F11, and breakpoint traps. Includes God Mode for in-memory PyREVM state overrides to bypass shallow guards.

2. Zero-RPC Offline Simulation Architecture

Persistent Anvil Mainnet Fork + eRPC Redis Cache

Fuzzing 100,000 multi-transaction sequences against live Ethereum state normally exhausts millions of RPC credits. ChainForge executes against an isolated Anvil fork pinned to an exact historical block height, proxied through an eRPC caching layer. After initial fork hydration, 100% of state reads hit local memory—enabling 50+ deep scans per day at $0 upstream RPC cost. Vanguard sequential hydration pre-warms cache slots to prevent container stampedes.

3. Sub-Second Semantic Triage (< 1s, Zero API)

5 Deterministic Static Code Detectors

Before launching a single Docker worker, Phase 1.5 runs 5 deterministic AST analyzers in sub-second latency with zero external LLM or API dependencies: (1) Parameter Flow Tracer for msg.value forwarding mismatches, (2) Unchecked Return Accountability, (3) Balance Gap Detector between internal ledgers and raw balances, (4) DeFi Pattern Matcher across 10 structural primitives, and (5) Cross-Contract Call Mapper.

4. 103-Invariant Fleet & Formal Verification

Codified Exploit Invariants + Z3 SMT Prover

Encodes 103 formal invariants distilled from historical exploit mechanics (Euler, Nomad, Mango Markets, Curve). An 8-component scoring gate filters candidates down to 8–20 high-signal tests. For 12 mathematical invariants, Halmos symbolic execution backed by the Z3 SMT solver turns trial-and-error iterations into mathematical proofs of correctness. Prove Lab then converts invariant breaches into Immunefi-ready forensic reports.

Benchmark Analysis

Comparative EVM Security Tooling Architecture

Evaluating execution overhead, debugging telemetry, and formal guarantees across industry approaches.

Architectural MetricRaw Fuzzers (Foundry / Echidna)Commercial SaaS ScannersChainForge PRO Workbench
Execution EnvironmentLocal CLI / Ephemeral EVMRemote Cloud Worker PoolPersistent Anvil Fork + eRPC Cache (Local)
Upstream RPC Cost$50–$300 per deep mainnet scanBilled per compute minute ($$$)$0.00 (100% Local Cache Hit Rate)
Debugging ExperienceRaw terminal traces (-vvvv)Static web dashboards (No Stepper)4-Pane OllyDbg EVM Stepper (F10/F11/Breakpoints)
Pre-Fuzz Triage LatencyNone (Immediate random fuzzing)2–10 min LLM analysis pass< 1 Second (5 Offline Deterministic AST Detectors)
Formal Verification SupportSeparate manual tool (Halmos CLI)Rare / Heuristic rule checkersIntegrated Z3 SMT Bound-Tightening & Halmos
Dead-End Compute ReclaimNone (Runs to completion: 15–30m)Cloud timeout ceilingsRRS ΔG Sentinel (5-second early SIGTERM kill)

Documentation & Institutional Evidence

Traceability to production repositories, theoretical papers, and defense verification architectures.