Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection

AI-generated keywords: LLM Prompt Injection Indirect Prompt Injection Taxonomy Mitigations

AI-generated Key Points

The license of the paper does not allow us to build upon its content and the key points are generated using the paper metadata rather than the full article.

  • Large Language Models (LLMs) are being integrated into various applications
  • LLM functionalities can be modulated via natural language prompts
  • Flexibility of LLMs renders them susceptible to targeted adversarial prompting, such as Prompt Injection (PI) attacks
  • LLM-integrated applications blur the line between data and instructions, opening up new attack vectors using Indirect Prompt Injection
  • Adversaries can remotely exploit LLM-integrated applications by strategically injecting prompts into data likely to be retrieved without direct interface with the user
  • A comprehensive taxonomy is derived from a computer security perspective to systematically investigate impacts and vulnerabilities, including data theft, worming, information ecosystem contamination, and other novel security risks
  • The study demonstrates the practical viability of these attacks against real-world systems like Bing's GPT-4 powered Chat and code-completion engines as well as synthetic applications built on GPT-4
  • Processing retrieved prompts can act as arbitrary code execution, manipulate an application's functionality and control whether or not other APIs are called.
  • Effective mitigations for these emerging threats are currently lacking.
  • The authors aim to promote safe and responsible deployment of these powerful models while developing robust defenses that protect users and systems from potential attacks.
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Kai Greshake, Sahar Abdelnabi, Shailesh Mishra, Christoph Endres, Thorsten Holz, Mario Fritz

Abstract: Large Language Models (LLMs) are increasingly being integrated into various applications. The functionalities of recent LLMs can be flexibly modulated via natural language prompts. This renders them susceptible to targeted adversarial prompting, e.g., Prompt Injection (PI) attacks enable attackers to override original instructions and employed controls. So far, it was assumed that the user is directly prompting the LLM. But, what if it is not the user prompting? We argue that LLM-Integrated Applications blur the line between data and instructions. We reveal new attack vectors, using Indirect Prompt Injection, that enable adversaries to remotely (without a direct interface) exploit LLM-integrated applications by strategically injecting prompts into data likely to be retrieved. We derive a comprehensive taxonomy from a computer security perspective to systematically investigate impacts and vulnerabilities, including data theft, worming, information ecosystem contamination, and other novel security risks. We demonstrate our attacks' practical viability against both real-world systems, such as Bing's GPT-4 powered Chat and code-completion engines, and synthetic applications built on GPT-4. We show how processing retrieved prompts can act as arbitrary code execution, manipulate the application's functionality, and control how and if other APIs are called. Despite the increasing integration and reliance on LLMs, effective mitigations of these emerging threats are currently lacking. By raising awareness of these vulnerabilities and providing key insights into their implications, we aim to promote the safe and responsible deployment of these powerful models and the development of robust defenses that protect users and systems from potential attacks.

Submitted to arXiv on 23 Feb. 2023

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

The license of the paper does not allow us to build upon its content and the AI assistant only knows about the paper metadata rather than the full article.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2302.12173v2

This paper's license doesn't allow us to build upon its content and the summarizing process is here made with the paper's metadata rather than the article.

Large Language Models (LLMs) are becoming increasingly integrated into various applications, and their functionalities can be modulated via natural language prompts. However, this flexibility also renders them susceptible to targeted adversarial prompting, such as Prompt Injection (PI) attacks that allow attackers to override original instructions and controls. While it was previously assumed that the user is directly prompting the LLM, a new study argues that LLM-Integrated Applications blur the line between data and instructions, opening up new attack vectors using Indirect Prompt Injection. This allows adversaries to remotely exploit LLM-integrated applications by strategically injecting prompts into data likely to be retrieved without direct interface with the user. The authors derive a comprehensive taxonomy from a computer security perspective to systematically investigate impacts and vulnerabilities, including data theft, worming, information ecosystem contamination, and other novel security risks. They demonstrate the practical viability of these attacks against real-world systems like Bing's GPT-4 powered Chat and code-completion engines as well as synthetic applications built on GPT-4. The study shows how processing retrieved prompts can act as arbitrary code execution, manipulate an application's functionality and control whether or not other APIs are called. Despite increasing integration and reliance on LLMs in various applications, effective mitigations for these emerging threats are currently lacking. By raising awareness of these vulnerabilities and providing key insights into their implications, the authors aim to promote safe and responsible deployment of these powerful models while developing robust defenses that protect users and systems from potential attacks.
Created on 12 May. 2023

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.

The license of this specific paper does not allow us to build upon its content and the summarizing tools will be run using the paper metadata rather than the full article. However, it still does a good job, and you can also try our tools on papers with more open licenses.

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.