Metraipolis › archive › dc_e6c504a57384

Automated Vulnerability Injection in Smart Contracts Using Large Language Models — arXiv:2609.02624

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.02624
License (as archived)
CC0-1.0
Archived
2026-10-17T03:38:24.749Z
SHA-256 of the archived text
da649f35466645a964e8020c3fe991135b8f3836f73e62aabd87a2b0277f9df1
Stable URL of this page
https://metraipolis.com/documento/dc_e6c504a57384

How to cite

Automated Vulnerability Injection in Smart Contracts Using Large Language Models — arXiv:2609.02624 — arXiv (en), https://arxiv.org/abs/2609.02624 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_e6c504a57384 (Metraipolis archive dc_e6c504a57384, sha256 da649f35466645a964e8020c3fe991135b8f3836f73e62aabd87a2b0277f9df1)
BibTeX
@misc{dce6c504a57384,
  title = {Automated Vulnerability Injection in Smart Contracts Using Large Language Models — arXiv:2609.02624},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.02624},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_e6c504a57384; sha256 da649f35466645a964e8020c3fe991135b8f3836f73e62aabd87a2b0277f9df1},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.02624. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Assessing vulnerability detection tools for smart contracts requires datasets with known ground truth, yet such datasets are scarce and difficult to build by hand. We propose an approach that uses Large Language Models (LLMs) to automatically inject vulnerabilities into Solidity smart contracts, and demonstrate it in a case study targeting 49 vulnerability types from OpenSCV. Injected contracts are validated through a multi-step pipeline checking compilation, execution, business logic, and the presence of the intended vulnerability. Applied to real-world contracts from SmartBugs, LLMs generate nearly 1,000 candidate variants; after deduplication and validation, 32 confirmed vulnerable contracts spanning 25 vulnerability types survive (a 16.58% survival rate). Surviving contracts concentrate in structurally simpler targets and vulnerability types with localized syntactic patterns. We report practical challenges including LLMs' non-determinism and the difficulty of preserving contract semantics. We then use the validated contracts to assess three static analyzers, revealing complementary and incomplete coverage profiles. Results show that LLM-based vulnerability injection is feasible, while exposing key limitations in scalability and diversity.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-03 in cs.AI).
Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI); Cryptography and Security (cs.CR).
Pagina del lavoro: https://arxiv.org/abs/2609.02624 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-17T03:13:12.561Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-03?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).