Beware EviLLM: Enabling Vulnerability Injection via Large Language Models
On the map: LLM safety and security → Prompt injection and agent security also fits: Jailbreaking
Abstract (arXiv)
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). 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.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 30 of its 65 references that are in the map. First posted on arXiv 2 Oct 2026.
Builds on
30 of 65 references.
Closest ancestors · 3
Same direction, newest first
- 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judge26 Mar
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defenses19 Oct
- 2023Prompt Packer: Deceiving LLMs through Compositional Instruction with Hidden Attacks16 Oct
Other references · 27
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 707
- 2024WildChat: 1M ChatGPT Interaction Logs in the Wildcited by 629
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 489
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 431
- 2022Do Users Write More Insecure Code with AI Assistants?cited by 192
- 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbotscited by 183
- 2022GitHub Copilot AI pair programmer: Asset or Liability?cited by 152
- 2024Making Them Ask and Answer: Jailbreaking Large Language Models in Few Queries via Disguise and Reconstructioncited by 107
- 2022Lost at C: A User Study on the Security Implications of Large Language Model Code Assistantscited by 91
- 2024Don't Listen To Me: Understanding and Exploring Jailbreak Prompts of Large Language Modelscited by 86
- 2023How Secure is Code Generated by ChatGPT?cited by 81
15 more
- 2022Is GitHub's Copilot as Bad as Humans at Introducing Vulnerabilities in Code?cited by 67
- 2024We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMscited by 65
- 2024Instruction Backdoor Attacks Against Customized LLMscited by 62
- 2023TrojanPuzzle: Covertly Poisoning Code-Suggestion Modelscited by 60
- 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detectioncited by 40
- 2023The Philosopher's Stone: Trojaning Plugins of Large Language Modelscited by 37
- 2023DeceptPrompt: Exploiting LLM-driven Code Generation via Adversarial Natural Language Instructionscited by 33
- 2024Malla: Demystifying Real-world Large Language Model Integrated Malicious Servicescited by 33
- 2023Assessing the Security of GitHub Copilot Generated Code -- A Targeted Replication Studycited by 26
- 2024Measure-Observe-Remeasure: An Interactive Paradigm for Differentially-Private Exploratory Analysiscited by 24
- 2023Poisoned ChatGPT Finds Work for Idle Hands: Exploring Developers' Coding Practices with Insecure Suggestions from Poisoned AI Modelscited by 17
- 2023A User-centered Security Evaluation of Copilotcited by 15
- 2024Attacks on Third-Party APIs of Large Language Modelscited by 15
- 2024Trojans in Large Language Models of Code: A Critical Review through a Trigger-Based Taxonomycited by 2
- 2021HEDP: A Method for Early Forecasting Software Defects based on Human Error Mechanismscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024Double Backdoored: Converting Code Large Language Model Backdoors to Traditional Malware via Adversarial Instruction Tuning Attacks
- 2025System Prompt Poisoning: Persistent Attacks on Large Language Models Beyond User Injection
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Survey
- 2026Securing Code Understanding: Detecting Natural Backdoor Vulnerability in Code Language Models
- 2024ShadowCode: Towards (Automatic) External Prompt Injection Attack against Code LLMs
- 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Models
- 2024A Disguised Wolf Is More Harmful Than a Toothless Tiger: Adaptive Malicious Code Injection Backdoor Attack Leveraging User Behavior as Triggers
- 2026From Prompt Injection to Web Exploitation: Revisiting Classic Vulnerabilities in LLM-Integrated Applications