Knowdit detects all high-severity and 77% of medium-severity smart contract bugs
Knowdit identifies 100% of high-severity and 77% of medium-severity vulnerabilities with only 2 false positives
AI/ML arXiv 27 Mar 2026 Method Prototype evidence
Published as “Knowdit: Agentic Smart Contract Vulnerability Detection with Auditing Knowledge Summarization”
Why it matters
The approach can automate high-severity DeFi smart-contract auditing with near-human precision, reducing manual audit costs and preventing multi-million-dollar losses.
Summary
Knowdit detects all 14 high-severity and 77% of medium-severity vulnerabilities with only 2 false positives, significantly outperforming all baselines. It achieves 88% overall coverage on a 12-project Code4rena dataset and discovers 12 high- and 10 medium-severity bugs in six real-world contracts. The system relies on a knowledge graph linking DeFi semantics to vulnerability patterns and an agentic multi-agent loop for specification generation, harness synthesis, fuzzing, and finding reflection. Evidence comes from a controlled evaluation (12 projects, 75 ground-truth bugs) and a real-world deployment, though it incurs higher token costs and some false positives/negatives.
What they found 2
- All high-severity and most medium-severity vulnerabilities are detected with minimal false positives.
“Knowdit detects all 14 high-severity and 77% of medium-severity vulnerabilities with only 2 false positives, significantly outperforming all baselines.”
- The knowledge graph yields high coverage of ground-truth bugs.
“Knowdit achieves full coverage for nearly half of the projects and attains an overall coverage of 88%, without missing any High vulnerabilities.”
Caveats 6
- Knowdit produces two false positives that are not filtered out by the validation process.
- It still misses several Medium vulnerabilities.
- The system consumes roughly $80 of LLM tokens per project, far more than baseline tools.
- Internal validity threats primarily arise from the randomness of LLM outputs and the subjectivity of human evaluation.
- External validity threats mainly stem from the limited exploration of model selection in our study.
- Knowdit reaches saturation across all projects after consuming approximately 80$ worth of tokens, although the budget is set to 100$ per project.
What’s new here 4
- Introduces an auditing knowledge graph that encodes fine-grained DeFi semantics and their associated vulnerability patterns.
- Uses a multi-agent, working-memory-driven loop (specification generation, harness synthesis, fuzz execution, finding reflection) to iteratively refine audits.
- Demonstrates substantially higher coverage (88% vs 45% for the best baseline) and full high-severity detection on a fresh Code4rena benchmark.
- Applies the approach to real-world contracts, uncovering previously unknown high-severity bugs that were fixed before deployment.