Coercing LLMs to do and reveal (almost) anything

Jonas Geiping, Alex Stein, Manli Shu, Khalid Saifullah, Yuxin Wen +1 more
2/21/2024
cs.LGcs.CLcs.CR

No official code found. Best implementation: JonasGeiping/carving (71 stars, MIT, last commit 2024-02-22).

Abstract

It has recently been shown that adversarial attacks on large language models (LLMs) can "jailbreak" the model into making harmful statements. In this work, we argue that the spectrum of adversarial attacks on LLMs is much larger than merely jailbreaking. We provide a broad overview of possible attack surfaces and attack goals. Based on a series of concrete examples, we discuss, categorize and systematize attacks that coerce varied unintended behaviors, such as misdirection, model control, denial-of-service, or data extraction. We analyze these attacks in controlled experiments, and find that many of them stem from the practice of pre-training LLMs with coding capabilities, as well as the continued existence of strange "glitch" tokens in common LLM vocabularies that should be removed for security reasons.

View on arXivView PDF

Code Implementations(1)

MIT

Package to optimize Adversarial Attacks against (Large) Language Models with Varied Objectives

716Shell, PythonFeb 21, 20242 years agoMIT

Similar Papers

Cite this paper

@article{geiping2024coercing,
  title  = {Coercing LLMs to do and reveal (almost) anything},
  author = {Jonas Geiping and Alex Stein and Manli Shu and Khalid Saifullah and Yuxin Wen and Tom Goldstein},
  year   = {2024},
  eprint = {2402.14020},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.14020v1}
}

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

Discussion