mlsanityData to 7 Oct 2026

PROMPTFUZZ: Harnessing Fuzzing Techniques for Robust Testing of Prompt Injection in LLMs

arXiv 2409.14729 ↗First posted 23 Sep 2024cs.CR cs.AIcited by 17

On the map: LLM safety and security → Prompt injection and agent security

Abstract (arXiv)

Large Language Models (LLMs) have gained widespread use in various applications due to their powerful capability to generate human-like text. However, prompt injection attacks, which involve overwriting a model's original instructions with malicious prompts to manipulate the generated text, have raised significant concerns about the security and reliability of LLMs. Ensuring that LLMs are robust against such attacks is crucial for their deployment in real-world applications, particularly in critical tasks. In this paper, we propose PROMPTFUZZ, a novel testing framework that leverages fuzzing techniques to systematically assess the robustness of LLMs against prompt injection attacks. Inspired by software fuzzing, PROMPTFUZZ selects promising seed prompts and generates a diverse set of prompt injections to evaluate the target LLM's resilience. PROMPTFUZZ operates in two stages: the prepare phase, which involves selecting promising initial seeds and collecting few-shot examples, and the focus phase, which uses the collected examples to generate diverse, high-quality prompt injections. Using PROMPTFUZZ, we can uncover more vulnerabilities in LLMs, even those with strong defense prompts. By deploying the generated attack prompts from PROMPTFUZZ in a real-world competition, we achieved the 7th ranking out of over 4000 participants (top 0.14%) within 2 hours. Additionally, we construct a dataset to fine-tune LLMs for enhanced robustness against prompt injection attacks. While the fine-tuned model shows improved robustness, PROMPTFUZZ continues to identify vulnerabilities, highlighting the importance of robust testing for LLMs. Our work emphasizes the critical need for effective testing tools and provides a practical framework for evaluating and improving the robustness of LLMs against prompt injection attacks.

Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 55 of its 83 references that are in the map. First posted on arXiv 23 Sep 2024.

Builds on

55 of 83 references.

Closest ancestors · 10

Same direction, newest first

  1. 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions19 Apr
  2. 2024Automatic and Universal Prompt Injection Attacks against Large Language Models7 Mar
  3. 2024Neural Exec: Learning (and Learning from) Execution Triggers for Prompt Injection Attacks6 Mar
  4. 2024StruQ: Defending Against Prompt Injection with Structured Queries9 Feb
  5. 2023Assessing Prompt Injection Risks in 200+ Custom GPTs20 Nov
  6. 2023Tensor Trust: Interpretable Prompt Injection Attacks from an Online Game2 Nov
  7. 2023From Prompt Injections to SQL Injection Attacks: How Protected is Your LLM-Integrated Web Application?3 Aug
  8. 2023Prompt Injection attack against LLM-integrated Applications8 Jun
  9. 2023Multi-step Jailbreaking Privacy Attacks on ChatGPT11 Apr
  10. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection23 Feb

Other references · 45

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2023GPT-4 Technical Reportcited by 18,132
  5. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  6. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  7. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  8. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  9. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
  10. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
  11. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
  12. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
33 more
  1. 2020Extracting Training Data from Large Language Modelscited by 2,144
  2. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
  3. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
  4. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
  5. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
  6. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 738
  7. 2023Instruction Tuning with GPT-4cited by 676
  8. 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 619
  9. 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 520
  10. 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 505
  11. 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 478
  12. 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 434
  13. 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Ciphercited by 401
  14. 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 347
  15. 2024TrustLLM: Trustworthiness in Large Language Modelscited by 280
  16. 2023How is ChatGPT's behavior changing over time?cited by 265
  17. 2023Membership Inference Attacks against Language Models via Neighbourhood Comparisoncited by 249
  18. 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbotscited by 172
  19. 2023Backdooring Instruction-Tuned Large Language Models with Virtual Prompt Injectioncited by 143
  20. 2024PLeak: Prompt Leaking Attacks against Large Language Model Applicationscited by 113
  21. 2023On the Exploitability of Instruction Tuningcited by 110
  22. 2023Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Modelscited by 100
  23. 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Modelscited by 87
  24. 2023Language Model Inversioncited by 66
  25. 2024CodeChameleon: Personalized Encryption Framework for Jailbreaking Large Language Modelscited by 65
  26. 2024When LLM Meets DRL: Advancing Jailbreaking Efficiency via DRL-guided Searchcited by 42
  27. 2024Mind the Inconspicuous: Revealing the Hidden Weakness in Aligned LLMs' Refusal Boundariescited by 26
  28. 2023Generated Distributions Are All You Need for Membership Inference Attacks Against Generative Modelscited by 22
  29. 2024Learning to Poison Large Language Models for Downstream Manipulationcited by 15
  30. 2024Scaling Up LLM Reviews for Google Ads Content Moderationcited by 12
  31. 2023Quantifying Privacy Risks of Prompts in Visual Prompt Learningcited by 8
  32. 2023Opening A Pandora's Box: Things You Should Know in the Era of Custom GPTscited by 8
  33. 2021DIAR: Removing Uninteresting Bytes from Seeds in Software Fuzzingcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 8; 2026: 8.

17 papers.

Sort:

By area:

  1. 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safetycited by 63
  2. 2025AgentVigil: Generic Black-Box Red-teaming for Indirect Prompt Injection against LLM Agentscited by 42
  3. 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Surveycited by 26
  4. 2026The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysiscited by 25
  5. 2025SecureWebArena: A Holistic Security Evaluation Benchmark for LVLM-based Web Agentscited by 17
  6. 2024LeakAgent: RL-based Red-teaming Agent for LLM Privacy Leakagecited by 13
  7. 2025Pushing the Limits of Safety: A Technical Report on the ATLAS Challenge 2025cited by 11
  8. 2025PromptPex: Automatic Test Generation for Language Model Promptscited by 9
  9. 2025The Illusion of Role Separation: Hidden Shortcuts in LLM Role Learning (and How to Fix Them)cited by 6
  10. 2025POISONCRAFT: Practical Poisoning of Retrieval-Augmented Generation for Large Language Modelscited by 6
  11. 2026Physical Prompt Injection Attacks on Large Vision-Language Modelscited by 3
  12. 2025Transferable Direct Prompt Injection via Activation-Guided MCMC Samplingcited by 2
5 more
  1. 2026Analyzing Defensive Misdirection Against Model-Guided Automated Attacks on Agentic AI Systemscited by 2
  2. 2026VeriGrey: Greybox Agent Validationcited by 1
  3. 2026Misleading the Planner through Deceptive Resumes: Registration-Time Injection in Centralized Multi-Agent Systemscited by 1
  4. 2026Arbitrary Cipher Attacks Against Large Language Models Do Not Require Fine-Tuningcited by 0
  5. 2026When Correct Memory Goes Wrong: Fuzzing Persistent Memory Use in LLM Agentscited by 0