Knowdit: Agentic Smart Contract Vulnerability Detection with Auditing Knowledge Summarization

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Kong, Ziqiao, Xia, Wanxu, Wang, Chong, Lu, Yi, Li, Pan, Li, Shaohua, Cao, Zong, Liu, Yang
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917364408254464
author Kong, Ziqiao
Xia, Wanxu
Wang, Chong
Lu, Yi
Li, Pan
Li, Shaohua
Cao, Zong
Liu, Yang
author_facet Kong, Ziqiao
Xia, Wanxu
Wang, Chong
Lu, Yi
Li, Pan
Li, Shaohua
Cao, Zong
Liu, Yang
contents 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 framework 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 framework leverages this knowledge through an iterative loop of specification generation, harness synthesis, fuzz execution, and finding reflection, driven by a shared working memory for continuous refinement. We evaluate Knowdit on 12 recent Code4rena projects with 75 ground-truth vulnerabilities. Knowdit detects all 14 high-severity and 77\% of medium-severity vulnerabilities with only 2 false positives, significantly outperforming all baselines. Applied to six real-world projects, Knowdit further discovers 12 high- and 10 medium-severity previously unknown vulnerabilities, proving its outstanding performance.
format Preprint
id arxiv_https___arxiv_org_abs_2603_26270
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Knowdit: Agentic Smart Contract Vulnerability Detection with Auditing Knowledge Summarization
Kong, Ziqiao
Xia, Wanxu
Wang, Chong
Lu, Yi
Li, Pan
Li, Shaohua
Cao, Zong
Liu, Yang
Cryptography and Security
Artificial Intelligence
Software Engineering
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 framework 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 framework leverages this knowledge through an iterative loop of specification generation, harness synthesis, fuzz execution, and finding reflection, driven by a shared working memory for continuous refinement. We evaluate Knowdit on 12 recent Code4rena projects with 75 ground-truth vulnerabilities. Knowdit detects all 14 high-severity and 77\% of medium-severity vulnerabilities with only 2 false positives, significantly outperforming all baselines. Applied to six real-world projects, Knowdit further discovers 12 high- and 10 medium-severity previously unknown vulnerabilities, proving its outstanding performance.
title Knowdit: Agentic Smart Contract Vulnerability Detection with Auditing Knowledge Summarization
topic Cryptography and Security
Artificial Intelligence
Software Engineering
url https://arxiv.org/abs/2603.26270