arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.06846cs.CR
收藏

CKG-LLM:基于知识图谱的智能合约访问控制漏洞检测框架

CKG-LLM: LLM-Assisted Detection of Smart Contract Access Control Vulnerabilities Based on Knowledge Graphs

Hainan University(海南大学)

Xiaoqi Li, Hailu Kuang, Wenkai Li, Zongwei Li, Shipeng Ye

AI总结:

本文提出CKG-LLM框架,利用大语言模型能力将自然语言漏洞模式转化为知识图谱查询,提升智能合约访问控制漏洞检测性能。

摘要:

传统智能合约分析方法常依赖抽象语法树、控制流图等中间表示,但难以同时捕捉语义结构和控制逻辑。知识图谱通过结构化表示实体与关系,能够提供更丰富的合约代码中间抽象,并支持图查询语言识别违规元素。本文提出CKG-LLM框架,利用大语言模型的推理和代码生成能力,将自然语言漏洞模式转化为可执行的图查询,自动定位漏洞代码元素。实验评估表明,CKG-LLM在检测访问控制漏洞方面优于现有工具。最后,我们讨论了CKG-LLM的潜在扩展方向作为未来研究方向。

英文摘要:

Traditional approaches for smart contract analysis often rely on intermediate representations such as abstract syntax trees, control-flow graphs, or static single assignment form. However, these methods face limitations in capturing both semantic structures and control logic. Knowledge graphs, by contrast, offer a structured representation of entities and relations, enabling richer intermediate abstractions of contract code and supporting the use of graph query languages to identify rule-violating elements. This paper presents CKG-LLM, a framework for detecting access-control vulnerabilities in smart contracts. Leveraging the reasoning and code generation capabilities of large language models, CKG-LLM translates natural-language vulnerability patterns into executable queries over contract knowledge graphs to automatically locate vulnerable code elements. Experimental evaluation demonstrates that CKG-LLM achieves superior performance in detecting access-control vulnerabilities compared to existing tools. Finally, we discuss potential extensions of CKG-LLM as part of future research directions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑