Prompt Injection attack against LLM-integrated Applications

By Yi Liu, Gelei Deng, Yuekang Li, Kailong Wang, Tianwei Zhang, Yepang Liu, Yanhong Zheng, Yang Liu. arXiv.org, 2023

827 citations recorded by the source corpus.

Large Language Models (LLMs), renowned for their superior proficiency in language comprehension and generation, stimulate a vibrant ecosystem of applications around them. However, their extensive assimilation into various services introduces significant security risks. This study deconstructs the complexities and implications of prompt injection attacks on actual LLM-integrated applications. Initially, we conduct an exploratory analysis on ten commercial applications, highlighting the constraints of current attack strategies in practice. Prompted by these limitations, we subsequently formulate HouYi, a novel black-box prompt injection attack technique, which draws inspiration from traditional web injection attacks. HouYi is compartmentalized into three crucial elements: a seamlessly-incorporated pre-constructed prompt, an injection prompt inducing context partition, and a malicious payload designed to fulfill the attack objectives. Leveraging HouYi, we unveil previously unknown and severe attack outcomes, such as unrestricted arbitrary LLM usage and uncomplicated application prompt theft. We deploy HouYi on 36 actual LLM-integrated applications and discern 31 applications susceptible to prompt injection. 10 vendors have validated our discoveries, including Notion, which has the potential to impact millions of users. Our investigation illuminates both the possible risks of prompt injection attacks and the possible tactics for mitigation.

Subfields: Artificial Intelligence, Information Systems

View Paper: https://www.semanticscholar.org/paper/db4cf9f6a653d5c15973e836c800ea47743251ae

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Jinyuan Jia
  2. Neil Zhenqiang Gong
  3. Jiahao Yu
  4. Xinwei Wu
  5. Tianhao Shen
  6. Weilong Dong
  7. Chuang Liu
  8. Qiusi Zhan

In Information Systems

  1. Jinyuan Jia
  2. Neil Zhenqiang Gong
  3. Binghui Wang
  4. Le Zhang
  5. Hao Fu

Citations in the corpus