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

USCSA: 代理基于的可升级智能合约的进化感知安全分析

USCSA: Evolution-Aware Security Analysis for Proxy-Based Upgradeable Smart Contracts

Hainan University(海南大学)

Xiaoqi Li, Lei Xie, Wenkai Li, Zongwei Li

AI总结:

USCSA通过AST差异分析和LLM辅助推理,有效检测升级引发的漏洞,提升智能合约安全性。

摘要:

在区块链系统上升级智能合约时,必须考虑升级的连续性和后续维护。在实践中,升级操作往往引入新的漏洞。现有的静态分析工具通常只扫描一个版本,无法捕捉代码变更与新兴风险之间的关联。为此,我们提出了一种可升级智能合约安全分析器USCSA,利用抽象语法树(AST)差异分析来评估与升级过程相关的风险,并利用大型语言模型(LLMs)进行辅助推理以实现高置信度的漏洞归因。我们收集并分析了3,546个可升级合约中的漏洞案例,涵盖了重入、访问控制缺陷和整数溢出等常见漏洞类别。实验结果表明,USCSA在检测升级引起的漏洞方面实现了92.26%的精确率、89.67%的召回率和90.95%的F1分数。因此,USCSA为提高可升级智能合约的安全性和完整性提供了显著优势,为区块链应用的安全审计提供了新颖且高效的解决方案。

英文摘要:

In the case of upgrading smart contracts on blockchain systems, it is essential to consider the continuity of upgrades and subsequent maintenance. In practice, upgrade operations often introduce new vulnerabilities. Existing static analysis tools usually only scan a single version and are unable to capture the correlation between code changes and emerging risks. To address this, we propose an Upgradeable Smart Contract Security Analyzer, USCSA, which uses Abstract Syntax Tree (AST) difference analysis to assess risks associated with the upgrade process and utilizes large language models (LLMs) for assisted reasoning to achieve high-confidence vulnerability attribution. We collected and analyzed 3,546 cases of vulnerabilities in upgradeable contracts, covering common vulnerability categories such as reentrancy, access control flaws, and integer overflow. Experimental results show that USCSA achieves a precision of 92.26%, a recall of 89.67%, and an F1-score of 90.95% in detecting upgrade-induced vulnerabilities. As a result, USCSA provides a significant advantage to improve the security and integrity of upgradeable smart contracts, offering a novel and efficient solution for security auditing on blockchain applications.

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

↑