EvoPoC

Read full text Summarise with VIRAT
Authors: Author, Anonymous
Cited by: 0

Summary

No summary yet. VIRAT can read this paper and write a plain-language summary of its aim, methods, key findings and limitations.

Summarise with VIRAT Free to try with your Science Catalogs account.

Abstract

๐Ÿ›ก๏ธ EvoPoCA Knowledge-Driven Evolving Agentic System for End-to-End Vulnerability Detection and Exploit Generation end-to-end vulnerability detection โ†’ attack path reasoning โ†’ exploit verification โ†’ executable PoC generation ๐ŸŽฌ Demo: Real-World Attack Reproduction (PLTD Token)This demo showcases EvoPoC on a real-world exploited token: PLTD.PLTD was historically attacked and drained on-chainEvoPoC:correctly identifies the vulnerabilityinfers the attack pathgenerates an exploit PoC automaticallyAfter replacing the real contract address and block number, the generated PoC successfully reproduces the attack and extracts 24.4 USDTโ€‹โ€‹๐Ÿ’ก Try it yourself! Launch the Web UI with python app.py and experience the interactive analysis interface. See the Web UI section below for detailed interface screenshots and features. Table of ContentsDemo: Real-World Attack ReproductionProject Overview Usage Modes Full Analysis Mode Memory Update Mode (Knowledge Base Evolution) Directory Structure Dependencies How to Run Option 1: CLI Option 2: Web UI Web Interface OverviewOption 3: Use as Library Output Description Notes๐Ÿ“– Project OverviewEvoPoC performs end-to-end smart contract PoC generation, including:CapabilityDescription๐Ÿ” Protocol Type RecognitionClassifies contract protocol types via Hierarchical Knowledge Graph๐ŸŽฏ Root Cause AnalysisUses RAG + LLM to infer vulnerability type and triggering conditionsโš”๏ธ Attack Path & Exploit ReasoningGenerates exploit vectors and step-by-step attack plans๐Ÿงฎ Symbolic Execution & Constraint SolvingVerifies path feasibility using Z3โœ… PoC Generation & Reachability VerificationProduces executable Solidity exploit PoC๐Ÿง  Usage ModesFull Analysis ModeEnd-to-end vulnerability discovery and exploit generationUpload contract(s) โ†’ โ†’ vulnerability analysis โ†’ attack path inference โ†’ symbolic verification โ†’ exploit PoC generation โ†’ security report outputMemory Update Mode (Knowledge Base Evolution)Validate existing PoCs and evolve system knowledgeUpload:contract(s)existing exploit PoCSystem will:validate PoC against inferred root causedetect inconsistenciesrefine vulnerability patternsupdate Hierarchical Knowledge Graph and exploit memoryThis enables EvoPoC to:continuously improve its reasoning and exploit generation ability over time๐Ÿ“ Directory Structure EvoPoC/ โ”œโ”€โ”€ main.py # Main orchestration (AnalysisCoordinator / KnowledgeCoordinator) โ”œโ”€โ”€ app.py # Flask web entry โ”œโ”€โ”€ config.py # Global config (API, paths, models) โ”œโ”€โ”€ protocoltypetree.json # Protocol hierarchy โ”œโ”€โ”€ ExploitBehaviortree.json# Exploit behavior tree โ”‚ โ”œโ”€โ”€ agents/ # Agent modules โ”‚ โ”œโ”€โ”€ protocol_agent.py โ”‚ โ”œโ”€โ”€ rootcause_agent.py โ”‚ โ”œโ”€โ”€ exploit_agent.py โ”‚ โ”œโ”€โ”€ verifier_agent.py โ”‚ โ”œโ”€โ”€ rootcauseverify_agent.py โ”‚ โ””โ”€โ”€ poc_validator_agent.py โ”‚ โ”œโ”€โ”€ rag/ # Retrieval-Augmented Generation โ”‚ โ”œโ”€โ”€ rag_manager.py โ”‚ โ””โ”€โ”€ vector_store.py โ”‚ โ”œโ”€โ”€ utils/ โ”‚ โ”œโ”€โ”€ file_utils.py โ”‚ โ”œโ”€โ”€ json_utils.py โ”‚ โ””โ”€โ”€ z3_utils.py โ”‚ โ”œโ”€โ”€ extract/ # Multi-file contract extraction โ”‚ โ”œโ”€โ”€ extract_main.py โ”‚ โ”œโ”€โ”€ antlr4helper/ โ”‚ โ”œโ”€โ”€ rules/ โ”‚ โ””โ”€โ”€ requirements.txt โ”‚ โ”œโ”€โ”€ Hierarchical Knowledge Graph/ โ”‚ โ”œโ”€โ”€ protocol_types/ โ”‚ โ”œโ”€โ”€ rootcause/ โ”‚ โ””โ”€โ”€ ExploitBehavior/ โ”‚ โ”œโ”€โ”€ dataset/ โ”œโ”€โ”€ result/ โ”œโ”€โ”€ static/ โ”œโ”€โ”€ templates/ โ”œโ”€โ”€ uploads/ โ”œโ”€โ”€ logs-app/ โ”œโ”€โ”€ demo.mp4 โ””โ”€โ”€ README.md ๐Ÿ“ฆ DependenciesEnvironmentItemDescription๐Ÿ Python3.10+๐Ÿ”‘ API KeyOpenAI compatible LLM & embeddingInstall pip install -r requirements.txt pip install -r extract/requirements.txt ๐Ÿš€ How to RunOption 1: CLI python main.py Contracts placed under: Vulnerable_Contract/ Option 2: Web UI python app.py Access the web interface at http://127.0.0.1:5000๐Ÿ–ฅ๏ธ Web Interface OverviewMain Analysis DashboardThe main dashboard provides a comprehensive end-to-end analysis workflow: Contract Upload Vulnerability Detection and Root Cause Analysis Knowledge Graph Visualization Interactive force-directed graph visualization showing:Protocol Nodes: Protocol type relationships (blue/green nodes)Root Cause Nodes: Vulnerability root causes (red nodes)Exploit Nodes: Attack steps and exploit paths (orange nodes)Path Validation & Symbolic Execution Comprehensive symbolic execution analysis:Attack Vector Generation: Vulnerability point identification and entry pointsConstraint Collection: Path conditions and critical constraintsZ3 Solving: Constraint solving results with model variablesExecution Trace: Step-by-step execution path analysisProfit & Asset Validation Detailed asset comparison and profit analysis:Attacker Assets: Balance before and after attack executionProfit Calculation: Net profit from the exploitVictim Impact: Contract balance changes before/afterExecution Tracking: Complete execution trace with state changesKnowledge Base Expansion ModeAccess the knowledge base expansion interface at http://127.0.0.1:5000/knowledge_baseThis specialized mode enables:Knowledge Expansion: Automatically expand knowledge base with new vulnerability patternsGraph Updates: Update Hierarchical Knowledge Graph with validated patternsInconsistency Detection: Identify and resolve conflicts between PoC and inferred vulnerabilitiesOption 3: Use as Library from main import analyze_contract_from_file โ€‹ result = analyze_contract_from_file("contract.sol") ๐Ÿ“„ Output DescriptionFileDescriptionfull_analysis.jsonFull structured reasoning resultsecurity_report.mdHuman-readable security reportexploit_poc.solGenerated exploit PoCโš ๏ธ NotesEnsure FAISS indices exist under Hierarchical Knowledge Graph/Multi-file analysis requires extract/ dependenciesModel names configured in config.py

Fields of Study & Subjects

Blockchain Technology Applications and Security Software Testing and Debugging Techniques Security and Verification in Computing

Publication details

Journal / source
Figshare
Publication date
1 January 2026
Language
EN