arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.02780cs.CRcs.AIcs.SE
收藏

PoCo:智能合约的代理式概念验证漏洞利用生成

PoCo: Agentic Proof-of-Concept Exploit Generation for Smart Contracts

KTH Royal Institute of Technology(皇家理工学院)

Vivi Andersson, Sofia Bobadilla, Harald Hobbelhagen, Martin Monperrus

AI总结:

提出PoCo框架,通过代理式Reason-Act-Observe循环自动从自然语言漏洞描述生成可执行的PoC漏洞利用,在23个真实报告上优于基线方法。

摘要:

智能合约在高度对抗的环境中运行,漏洞可能导致重大财务损失。因此,智能合约需进行安全审计。在审计中,概念验证(PoC)漏洞利用通过向利益相关者证明报告的漏洞是真实、可重现且可操作的,发挥着关键作用。然而,手动创建PoC耗时、易出错,且常受限于紧张的审计时间表。我们提出PoCo,一个代理式框架,可从审计人员编写的自然语言漏洞描述中自动生成可执行的PoC漏洞利用。PoCo通过在与一组代码执行工具交互的Reason-Act-Observe循环中以代理方式自主生成PoC漏洞利用。它生成与Foundry测试框架兼容的完全可执行漏洞利用,可直接集成到审计报告和其他安全工具中。我们在23个真实漏洞报告的数据集上评估PoCo。PoCo始终优于零样本和工作流基线,生成格式良好且逻辑正确的PoC。我们的结果表明,代理式框架可以显著减少智能合约审计中高质量PoC所需的工作量。我们的贡献为智能合约安全社区提供了可操作的知识。

英文摘要:

Smart contracts operate in a highly adversarial environment, where vulnerabilities can lead to substantial financial losses. Thus, smart contracts are subject to security audits. In auditing, proof-of-concept (PoC) exploits play a critical role by demonstrating to the stakeholders that the reported vulnerabilities are genuine, reproducible, and actionable. However, manually creating PoCs is time-consuming, error-prone, and often constrained by tight audit schedules. We introduce PoCo, an agentic framework that automatically generates executable PoC exploits from natural-language vulnerability descriptions written by auditors. PoCo autonomously generates PoC exploits in an agentic manner by interacting with a set of codeexecution tools in a Reason-Act-Observe loop. It produces fully executable exploits compatible with the Foundry testing framework, ready for integration into audit reports and other security tools. We evaluate PoCo on a dataset of 23 real-world vulnerability reports. PoCo consistently outperforms the Zero-shot and Workflow baselines, generating well-formed and logically correct PoCs. Our results demonstrate that agentic frameworks can significantly reduce the effort required for high-quality PoCs in smart contract audits. Our contribution provides actionable knowledge for the smart contract security community.

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

↑