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

SmartPoC: 为智能合约漏洞报告生成可执行且验证的PoC

SmartPoC: Generating Executable and Validated PoCs for Smart Contract Bug Reports

Tsinghua University(清华大学);People’s Public Security University of China(中国人民公安大学);National University of Singapore(新加坡国立大学)

Longfei Chen, Ruibin Yan, Taiyu Wong, Yiyang Chen, Jialai Wang, Chao Zhang

AI总结:

SmartPoC通过生成并执行可执行的PoC测试用例,验证审计报告中的漏洞。该方法通过提取关键函数切片、生成-修复-执行循环及差分验证提高可执行性与准确性,实现了高精度和召回率。

摘要:

智能合约通常通过静态分析来探索漏洞,但静态方法通常产生异质性发现而非可重复、可执行的证明概念(PoC)测试用例,导致成本高且手动验证随意。大型语言模型(LLMs)提供了一种有前景的方法将审计报告转换为PoC测试用例,但面临三个主要挑战:输入噪声、缺乏执行基础和缺失运行时或acles。我们提出了SmartPoC,一种端到端的方法,通过生成和执行PoC测试用例进行验证,自动验证可利用性。SmartPoC首先从每个报告中提取聚焦的功能级切片,减少噪声,专注于发现中引用的关键函数,并补充执行相关邻居。为了提高可执行性,我们将基于LLM的PoC合成封装在生成-修复-执行循环中,结合确定性的预执行净化与反馈驱动的后执行调试。我们进一步使用差分验证作为或acles来确认生成测试用例的可利用性。在SmartBugs-Vul和FORGE-Vul基准上,SmartPoC实现了98.32%和98.65%的确认精度,以及84.17%和85.28%的召回率。在最近的Etherscan验证源代码库上,SmartPoC从545个审计发现中确认了64个漏洞,平均成本为0.03美元。

英文摘要:

Smart contracts are commonly audited through static analysis to explore vulnerabilities. However, static approaches typically produce heterogeneous findings rather than reproducible, executable proof-of-concept (PoC) test cases, leading to costly and ad hoc manual validation. Large language models (LLMs) offer a promising way to translate audit reports into PoC test cases, but face three major challenges: noisy inputs, lack of execution grounding, and missing runtime oracles. We present SmartPoC, an end-to-end approach for validating reported vulnerabilities in audit reports by generating and executing PoC test cases with automated exploitability verification. SmartPoC first extracts a focused function-level slice from each report to reduce noise, centering on the key functions referenced in a finding and augmenting them with execution-relevant neighbors. To improve executability, we wrap LLM-based PoC synthesis in a generate-repair-execute loop, combining deterministic pre-execution sanitization with feedback-driven post-execution debugging. We further use differential verification as an oracle to confirm the exploitability of generated test cases. On the SmartBugs-Vul and FORGE-Vul benchmarks, SmartPoC achieves confirmation precision of 98.32% and 98.65%, with recall of 84.17% and 85.28%, respectively. On a recent Etherscan verified-source corpus, SmartPoC confirms 64 bugs from 545 audit findings at an average cost of $0.03.

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

↑