Skip to main navigation Skip to search Skip to main content

When Generative AI Prompts Bite Back: Investigating Different Types of Prompt Injection Attacks on Large Language Models (LLMs) and Their Prevention Methods

  • Dishita Naik
  • , Ishita Naik
  • , Nitin Naik*
  • *Corresponding author for this work
  • Birmingham City University
  • Aston University

Research output: Chapter in Book/Published conference output › Conference publication

Abstract

Large Language Models (LLMs) are designed to exhibit a high degree of flexibility, enabling them to adapt to a wide range of tasks expressed in natural language. LLMs predominantly operate through a prompt-based paradigm, wherein all interactions are facilitated through natural language prompts. The flexibility and expressive power of LLM prompts also render them a primary vector for prompt injection attacks due to the complex and often opaque structural characteristics of prompt composition, as well as the virtually unbounded attack surface introduced by the infinite variability of natural language expressions. The inherent complexity of prompt structures, coupled with their representation through the infinitely variable medium of natural language, creates opportunities for attackers to exploit these LLM prompts in ways that can manipulate the behaviour of the LLM and enable it to generate unintended or adversarial outputs. Such potential attacks pose significant challenges to the safe and trustworthy deployment of LLMs, thereby necessitating rigorous investigation and a comprehensive understanding to develop effective mitigation strategies. This paper will investigate different types of prompt injection attacks on LLMs. Firstly, it will investigate prompts in LLMs, and various elements of the LLM prompt. Secondly, it will investigate each type of prompt injection attack in detail including its associated attack vectors and an explicit difference with other types of prompt injection attacks. Thirdly, it will investigate several risks associated with prompt injection attacks on LLMs. Lastly, it will investigate several prevention methods for prompt injection attacks on LLMs.
Original languageEnglish
Title of host publicationContributions Presented at the International Conference on Computing, Communication, Cybersecurity & AI, July 10–11, 2025, Birmingham, UK.
Subtitle of host publicationC3AI 2025
EditorsNitin Naik, Paul Jenkins, Shaligram Prajapat, Paul Grace
PublisherSpringer, Cham
Pages619-643
Number of pages25
ISBN (Electronic)9783032167910
ISBN (Print)9783032167903
DOIs
Publication statusPublished - 17 May 2026

Publication series

NameLecture Notes in Networks and Systems (LNNS)
Volume1811
ISSN (Print)2367-3370
ISSN (Electronic)2367-3389

Bibliographical note

Copyright © 2026 The Author(s), under exclusive license to Springer Nature Switzerland AG 2024. This version of the article has been accepted for publication, after peer review and is subject to Springer Nature’s AM terms of use [ https://www.springernature.com/gp/open-research/policies/accepted-manuscript-terms ] but is not the Version of Record and does not reflect post-acceptance improvements, or any corrections. The Version of Record is available online at:
https://doi.org/10.1007/978-3-032-16791-0_30

Keywords

  • AI model DoS attacks
  • AI models
  • Direct prompt injection attacks
  • Generative AI
  • Indirect prompt injection attacks
  • Jailbreak attacks
  • LLMs
  • Large Language Models
  • Prompt hijacking attacks
  • Prompt leaking attacks
  • RAG injection attacks

Fingerprint

Dive into the research topics of 'When Generative AI Prompts Bite Back: Investigating Different Types of Prompt Injection Attacks on Large Language Models (LLMs) and Their Prevention Methods'. Together they form a unique fingerprint.

Cite this