Automated Vulnerability Injection in Smart Contracts Using Large Language Models
- Source
- arxiv.org
- Author
- Luca Migliaccio, Roberto Natella, Naghmeh Ivaki, Nuno Laranjeiro, Marco Vieira
- Date

Context
Researchers used language models to deliberately introduce security flaws into smart contracts, creating test cases for vulnerability detectors. The useful output was a collection of confirmed defects: each candidate had to pass checks for compilation, execution, preserved business logic and the intended vulnerability. The study reports 32 validated contracts covering 25 vulnerability types after generating nearly 1,000 candidate variants and removing duplicates.
The surviving examples favored simpler contracts and flaws requiring localized code changes. The result shows that AI can help build security-testing datasets, while the validation process determines which generated examples are credible enough to test a scanner.
- LLM — A large language model — the neural network behind tools like Claude and ChatGPT, trained on huge amounts of text to predict what comes next.
articleLLMVul: A Vulnerability-Labeled Dataset of LLM-Generated C/C++ Functions from Real Production RepositoriesMohammad Farhad, Shuvalaxmi Dass
articleHow effective are traditional test criteria at detecting bugs in large language models generated code?Asma Hamidi, Michael Konstantinou, Renzo Degiovanni, Mike Papadakis
articleLarge Language Models and Language Server Protocol: a match made in contextAlessandro Schena, Ilgiz Mustafin, Julia Kotovich
Checking sign-in…
Loading comments…