跳到正文
返回论文列表
cs.CR提交于 已译

超越复制:通过协议变异构建终身智能合约安全任务

Beyond Copying: Lifelong Smart Contract Security Task Construction via Protocol Mutation

Zifan Peng · Peng Huang · Jingyi Zheng · Yingjie Xue · Xuechao Wang · Xinlei He · et al.

中文摘要

AI agent 可通过检查代码和运行测试来辅助智能合约安全,但现有评测可能奖励记忆或复制答案,包括从公开区块链交易中恢复的攻击代码,重构合约与验证任务还需高昂人工成本。CONSTRAINTDIAL 是基于协议变异的智能合约安全任务终身构建框架,可自动完成本地合约重构,并利用攻击执行结果选择对必需调用或输入的修改。执行检查指导修订,使原攻击失败,同时保留可利用性、安全目标与正常功能;新事件和审计发现也采用同一流程。该框架从 203 个公开案例构建了 3,045 个任务输入,覆盖检测、利用和修复。相比仅重构,协议变异使用公开答案时的成功率在三类任务上平均下降 10.9 个百分点,靠复制在线答案解决的任务比例下降 9.3 个百分点。

关键要点

  1. 01现有智能合约安全评测可能奖励记忆或复制公开攻击答案。
  2. 02CONSTRAINTDIAL 自动重构合约,并通过攻击执行筛选协议变异。
  3. 03修订须使原攻击失败,同时保留可利用性、安全目标和正常功能。
  4. 04框架从 203 个公开案例构建 3,045 个检测、利用与修复任务输入。
  5. 05协议变异使公开答案成功率平均下降 10.9 个百分点,复制解题比例下降 9.3 个百分点。

解读

尚无解读。

原始英文摘要

arXiv:2610.32453v1 Announce Type: cross Abstract: 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.

同方向论文 · cs.CR

查看全部 →

反向发现 · 这篇论文相关的工具与提示词

去交叉发现 →

关联提示词 · 6

编程tech.qimao.com·外部收录·

按规范检查 Go 代码改动,分析问题与服务影响并生成 Code Review 报告

``` # Code Review 规范 你是 golang 编程的专家,现在对代码进行 Code Review,请按照以下步骤进行: (若遇到 git 命令分页的情况,请加上`| cat`) ## 步骤一:代码规范检查 - [ ] 是否遵循最佳实践 @.cursor/rules/rule-code-spec.mdc - [ ] 是否存在重复代码 - [ ] 是否有充分的注释和文档 - [ ] 是否易于理解和维护 ## 步骤二:功能问题分析 - [ ] 分析本次代码改动的影响…

编程zhuanlan.zhihu.com·外部收录·

用于指导 Claude Code 按阶段规划、测试驱动实现、重构并提交代码。

### 1. 规划与分阶段 将复杂的工作分解为 3-5 个阶段。在 `IMPLEMENTATION_PLAN.md` 中记录: ```text ## 阶段 N: [Name] **目标**: [具体可交付成果] **成功标准**: [可测试的结果] **测试**: [具体的测试用例] **状态**: [未开始|进行中|已完成] ``` * 随着进展更新状态 * 所有阶段完成后删除文件 ### 2. 实现流程 1. **理解** - 研究代码库中的现有模式 2. **测试**…

研究github.com/f/awesome-chatgpt-prompts·外部收录·

Enhanmcnet suggestion and analysis

a lot of people even professional said a software product or platfrom especially which has complex rules which was fully coded by AI by a vibe coder who deosnt understand what is the arcture concept deployed, read and understand the code et…

编程github.com/f/awesome-chatgpt-prompts·外部收录·

debug

Please debug the current codebase and implement a robust development plan to ensure the system is fully functional. Prioritize refactoring the application architecture to follow industry best practices, resolve existing build errors, and en…

编程github.com/f/awesome-chatgpt-prompts·外部收录·

Python Auto Typer with Customizable Delay

Act as a Python Software Developer. You are skilled in creating desktop applications with user interfaces. Your task is to develop a Python program that: - Automatically types a specified text and presses "Enter" after each message to send…