Beware EviLLM: Enabling Vulnerability Injection via Large Language Models

Zeezoo Ryu, Simon Chung, Muhammad Faraz Karim, Anna Raymaker, Karan Singh Jodha +2 more
10/2/2026
cs.CRcs.AI

No confident code implementation found for this paper.

Abstract

Advances in large language models (LLMs) have enabled AI-driven code generation from natural language specifications, introducing new attack surfaces for injecting vulnerabilities into software. Prior work has studied this problem only in benign settings where vulnerabilities are introduced inadvertently, or under unconventional threat models where the LLM itself is malicious (backdooring) or the user is the attacker (jailbreaking).

Show full abstract

In this paper, we study a more realistic threat model: a third-party adversary, with capabilities comparable to existing cybercriminals, compromises the AI code generation pipeline to deliberately introduce vulnerabilities. We call this the EviLLM attack. We have implemented two instances of EviLLM, each of which only requires the underlying LLM to be accessed through a compromised account or browser, and can inject vulnerabilities from 13 CWE classes. As we show in our feasibility study, both attack vectors are already used to implement many existing cyberattacks. Our user study shows that 7 out of 8 and 10 out of 13 participants did not notice the vulnerabilities injected by the two instances of EviLLM, and 13 out of 21 participants "rarely" or "never" considered the risk of an attack like EviLLM.

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{ryu2026beware,
  title  = {Beware EviLLM: Enabling Vulnerability Injection via Large Language Models},
  author = {Zeezoo Ryu and Simon Chung and Muhammad Faraz Karim and Anna Raymaker and Karan Singh Jodha and Yash Chaturvedi and Sukarno Mertoguno},
  year   = {2026},
  eprint = {2610.03857},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.03857v1}
}

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.03857.svg)](https://codeofpaper.com/paper/2610.03857)

Discussion