Knowdit: 基于审计知识摘要的智能合约漏洞检测框架
Knowdit: Agentic Smart Contract Vulnerability Detection with Auditing Knowledge Summarization
AI总结:
Knowdit利用审计知识摘要和多智能体框架,通过迭代循环检测智能合约漏洞,有效识别高和中严重性漏洞,优于现有基线方法。
摘要:
智能合约管理着数十亿美元的去中心化金融(DeFi)资产,但自动漏洞检测仍具挑战性,因为许多漏洞紧密关联项目特定业务逻辑。我们发现,不同DeFi业务模型中反复出现的漏洞共享相同的经济机制,即DeFi语义。基于此,我们提出Knowdit,一个知识驱动的智能体框架,通过构建审计知识图谱,将细粒度DeFi语义与反复出现的漏洞模式联系起来。给定新项目,多智能体框架通过规格生成、Harness合成、模糊执行和发现反射的迭代循环,利用共享工作记忆持续优化。我们在12个Code4rena项目上评估Knowdit,检测了所有14个高严重性漏洞和77%的中严重性漏洞,仅2个误报,显著优于所有基线。应用于六个真实项目,发现12个高和10个中严重性未知漏洞,证明其卓越性能。
英文摘要:
Smart contracts govern billions of dollars in decentralized finance (DeFi), yet automated vulnerability detection remains challenging because many vulnerabilities are tightly coupled with project-specific business logic. We observe that recurring vulnerabilities across diverse DeFi business models often share the same underlying economic mechanisms, which we term DeFi semantics, and that capturing these shared abstractions can enable more systematic auditing. Building on this insight, we propose Knowdit, a knowledge-driven, agentic workflow for smart contract vulnerability detection. Knowdit first constructs an auditing knowledge graph from historical human audit reports, linking fine-grained DeFi semantics with recurring vulnerability patterns. Given a new project, a multi-agent pipeline leverages this knowledge through an iterative loop of specification generation, Proof-of-Concept (PoC) synthesis, PoC execution, and finding reflection, driven by a shared repository index. We evaluate Knowdit on 11 recent Code4rena projects with 84 ground-truth vulnerabilities. Knowdit detects all 21 high-severity and 90% of medium-severity vulnerabilities without false positives, fully covering eight projects, significantly outperforming all baselines. Applied to seven real-world projects, Knowdit further discovers 9 high- and 36 medium-severity previously unknown vulnerabilities, securing millions in liquidity and proving its outstanding performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。