Attacks on Third-Party APIs of Large Language Models

Wanru Zhao, Vidit Khazanchi, Haodi Xing, Xuanli He, Qiongkai Xu +1 more
4/24/2024
cs.CRcs.AIcs.CL

Official code: vk0812/Third-Party-Attacks-on-LLMs (8 stars, last commit 2024-04-18).

Abstract

Large language model (LLM) services have recently begun offering a plugin ecosystem to interact with third-party API services. This innovation enhances the capabilities of LLMs, but it also introduces risks, as these plugins developed by various third parties cannot be easily trusted. This paper proposes a new attacking framework to examine security and safety vulnerabilities within LLM platforms that incorporate third-party services. Applying our framework specifically to widely used LLMs, we identify real-world malicious attacks across various domains on third-party APIs that can imperceptibly modify LLM outputs. The paper discusses the unique challenges posed by third-party API integration and offers strategic possibilities to improve the security and safety of LLM ecosystems moving forward. Our code is released at https://github.com/vk0812/Third-Party-Attacks-on-LLMs.

View on arXivView PDF

Code Implementations(1)

82PythonApr 9, 20242 years ago

Cite this paper

@article{zhao2024attacks,
  title  = {Attacks on Third-Party APIs of Large Language Models},
  author = {Wanru Zhao and Vidit Khazanchi and Haodi Xing and Xuanli He and Qiongkai Xu and Nicholas Donald Lane},
  year   = {2024},
  eprint = {2404.16891},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.16891v1}
}

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/2404.16891.svg)](https://codeofpaper.com/paper/2404.16891)

Discussion