Assessing Prompt Injection Risks in 200+ Custom GPTs

Jiahao Yu, Yuhang Wu, Dong Shu, Mingyu Jin, Sabrina Yang +1 more
11/20/2023
cs.CRcs.AI

No official code found. Best implementation: sherdencooper/prompt-injection (31 stars, last commit 2023-11-22).

Abstract

In the rapidly evolving landscape of artificial intelligence, ChatGPT has been widely used in various applications. The new feature - customization of ChatGPT models by users to cater to specific needs has opened new frontiers in AI utility. However, this study reveals a significant security vulnerability inherent in these user-customized GPTs: prompt injection attacks. Through comprehensive testing of over 200 user-designed GPT models via adversarial prompts, we demonstrate that these systems are susceptible to prompt injections. Through prompt injection, an adversary can not only extract the customized system prompts but also access the uploaded files. This paper provides a first-hand analysis of the prompt injection, alongside the evaluation of the possible mitigation of such attacks. Our findings underscore the urgent need for robust security frameworks in the design and deployment of customizable GPT models. The intent of this paper is to raise awareness and prompt action in the AI community, ensuring that the benefits of GPT customization do not come at the cost of compromised security and privacy.

View on arXivView PDF

Code Implementations(1)

Official repo for Customized but Compromised: Assessing Prompt Injection Risks in User-Designed GPTs

315Nov 15, 20232 years ago

Similar Papers

Cite this paper

@article{yu2023assessing,
  title  = {Assessing Prompt Injection Risks in 200+ Custom GPTs},
  author = {Jiahao Yu and Yuhang Wu and Dong Shu and Mingyu Jin and Sabrina Yang and Xinyu Xing},
  year   = {2023},
  eprint = {2311.11538},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.11538v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.11538.svg)](https://codeofpaper.com/paper/2311.11538)

Discussion