超越复制:通过协议变异实现智能合约安全任务的终身构建 Beyond Copying: Lifelong Smart Contract Security Task Construction via Protocol Mutation 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-23
⬇️ 1 次下载
👁️ 预览文献
💡 AI 中文简介
区块链安全损失高达386亿美元,但现有AI安全评测常奖励“背答案”或复制链上公开攻击代码的行为。为此,研究者提出CONSTRAINTDIAL框架,自动在本地重建合约,并通过协议变异(修改调用或输入)让原始攻击失效,同时保留可利用性、安全目标和正常功能,从而持续生成新任务。基于203个公开案例构建了3045个检测、利用与修复任务,使照抄公开答案的成功率平均下降10.9个百分点,复制在线答案解题的比例下降9.3个百分点。
领域区块链安全 / 智能合约安全与AI智能体评测
适合谁读需要一定专业背景(智能合约安全、程序分析或AI评测方向)
核心贡献提出CONSTRAINTDIAL框架,通过协议变异自动、持续地构建智能合约安全任务,避免模型靠记忆或复制公开攻击代码得分;实现从检测、利用到修复的多类型任务规模化生成,并支持新事件与审计发现自动纳入。
关键数据从203个公开案例构建3045个任务输入;相比仅重建,协议变异使使用公开答案的成功率平均降低10.9个百分点;复制在线答案解题的比例下降9.3个百分点。
推荐理由如果你关心AI做安全评测是否在“背答案”,这篇工作用协议变异把作弊路堵上,数据扎实、思路巧妙,值得一读。
关键词["智能合约安全", "协议变异", "任务自动构建", "AI智能体评测", "终身学习", "漏洞检测与修复"]

原文摘要

查看英文原文摘要

AI agents can inspect code and run tests to support smart contract security. SlowMist reports about $38.6 billion in losses across the broader blockchain ecosystem. Existing evaluations can reward memorized or copied answers, including attack code recovered from public blockchain transactions. Reconstructing contracts and validating tasks also require costly manual effort. To address these issues, we propose CONSTRAINTDIAL, a framework for lifelong construction of smart contract security tasks via protocol mutation. It automates local contract reconstruction and uses attack execution to select changes to the required calls or inputs. Execution checks guide revisions that make the original attack fail while preserving exploitability, the security objective, and normal functionality. New incidents and audit findings enter the same procedure. With CONSTRAINTDIAL, we construct 3,045 task inputs from 203 public cases, covering detect, exploit, and patch. Compared with reconstruction alone, protocol mutation reduces success with supplied public answers by 10.9 percentage points on average across detect, exploit, and patch. The fraction of tasks solved by copying online answers falls by 9.3 points.