BackSmart Contract Security & EVM Tooling
#17★ FEATUREDShipped & Open Source

️ ExploitReplay

Deterministic smart contract security workspace combining static analysis, exploit corpus matching, and sandboxed EVM replay

SolidityFoundrySlitherNext.jsEVM Security
️ ExploitReplay
ENGINEERING // ARCHITECTURE

How It Connects

ExploitReplay unifies multi-stage static analysis with live EVM simulation into a single developer-facing security workspace. When a Solidity contract is provided, the backend initiates Slither AST parsing and custom static detectors to extract the control flow graph (CFG), data-dependency trees, and vulnerable opcode sequences. Simultaneously, the historical exploit intelligence engine executes BM25 lexical matching and semantic vector retrieval over a curated corpus of 100+ documented DeFi exploits (including The DAO, Euler, Curve, and Cream Finance) to detect structural exploit analogies. Identified vulnerabilities are then synthesized into reproducible Foundry Anvil fork replay scripts, enabling developers to simulate the exploit deterministically, verify remediation patches in isolated local execution, and generate audit-ready security reports.

️ ExploitReplay / ARCH MAP
ARCHITECTURE ENGINE
INITIALIZING REPO...
️ ExploitReplay architecture diagram
SCROLL TO PANMERMAID.INK

System Components

EXECUTION PIPELINE

How It Works

01
Developer / Security Analyst

Contract Ingestion & AST Analysis

Uploads or pastes Solidity contract source code into the workspace.

→ AST, Control Flow Graph & Taint Analysis
02
Corpus Intelligence Engine

Historical Incident Matching

Queries indexed historical exploit database using extracted AST signatures.

→ Ranked Exploit Precedents
03
Foundry Anvil Harness

Deterministic EVM Replay Simulation

Spawns an ephemeral EVM test harness and replays the attack transaction path.

→ Opcode-Level Execution Trace
04
Regression Suite

Patch Verification & Remediation

Applies candidate security patches and re-runs the exploit simulation.

→ Verified Safe Contract Artifact
STACK // ARCHITECTURE INTEL⚡ LIVE SPECS

Technical Breakdown

Granular architectural layers, runtime dependencies, and audited production decisions.

STACK: Solidity, Foundry/Anvil, Slither, Python, Next.js, FastAPI, Tailwind CSS
  • Next.js 14 App Router
    copy
  • React 18
    copy
  • TypeScript
    copy
  • Tailwind CSS
    copy
  • Monaco Code Editor
    copy
  • Lucide React
    copy
  • FastAPI
    copy
  • Python 3.11
    copy
  • Slither Static Analyzer
    copy
  • Web3.py
    copy
  • Foundry Anvil/Cast
    copy

Engineering Tradeoffs & Key Decisions

Why this architecture over alternatives
2 ARCHITECTURAL CHOICES
DECISION #1AUDITED

Dual Static Analysis and Dynamic EVM Replay

↳

Combined Slither AST analysis with isolated Foundry Anvil fork simulation rather than relying on static detectors alone.

Static analyzers generate high false-positive rates; verifying candidate vulnerabilities inside an active EVM fork proves real-world exploitability with zero ambiguity.

PRODUCTION TESTEDZERO REGRESSIONS
DECISION #2AUDITED

Hybrid AST Pattern Matching over Naive Vector Search

↳

Implemented structural token extraction and BM25 scoring alongside dense vector embeddings for historical exploit retrieval.

Pure text embeddings frequently miss subtle Solidity semantic differences; structural token matching captures the exact architectural flaw regardless of variable naming.

PRODUCTION TESTEDZERO REGRESSIONS
✓

Audited Production Outcomes & Metrics

HIGH IMPACT RESULTS
▸Engineered an end-to-end smart contract security workspace combining static analysis with live EVM replay harnesses.
▸Integrated Slither AST parsing and custom detectors to map vulnerable control-flow patterns into interactive dependency graphs.
▸Built a historical incident retrieval engine cross-referencing smart contract bugs against 100+ documented DeFi exploits using BM25 and semantic ranking.
▸Developed isolated Foundry Anvil fork simulation environments to test vulnerability remediation patches deterministically.