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

Zifan Peng, Peng Huang, Jingyi Zheng, Yingjie Xue, Xuechao Wang +3 more
10/23/2026
cs.CRcs.AI

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{peng2026beyond,
  title  = {Beyond Copying: Lifelong Smart Contract Security Task Construction via Protocol Mutation},
  author = {Zifan Peng and Peng Huang and Jingyi Zheng and Yingjie Xue and Xuechao Wang and Xinlei He and Xia Hu and Dongrui Liu},
  year   = {2026},
  eprint = {2610.32453},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.32453v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.32453.svg)](https://codeofpaper.com/paper/2610.32453)

Discussion