Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)

Apurv Verma, Satyapriya Krishna, Sebastian Gehrmann, Madhavan Seshadri, Anu Pradhan, Tom Ault, Leslie Barrett, David Rabinowitz, John A. Doucette, NhatHai Phan · OpenReview

Abstract

Creating secure and resilient applications with large language models (LLM) requires anticipating, adjusting to, and countering unforeseen threats. Red-teaming has emerged as a critical technique for identifying vulnerabilities in real-world LLM implementations. This paper presents a detailed threat model and provides a systematization of knowledge (SoK) of red-teaming attacks on LLMs. We develop a taxonomy of attacks based on the stages of the LLM development and deployment process and extract various insights from previous research. In addition, we compile methods for defense and practical red-teaming strategies for practitioners. By delineating prominent attack motifs and shedding light on various entry points, this paper provides a framework for improving the security and robustness of LLM-based systems.

Introduction

While Large Language Models (LLMs) exhibit remarkable capabilities, they remain "predictably unpredictable." They excel at sequence prediction but can fail catastrophically by generating toxic content, leaking sensitive data, or succumbing to malicious instructions. The current landscape of LLM security research is highly fragmented; while new vulnerabilities are discovered frequently, the field lacks a standardized framework to organize these threats. This paper bridges that gap by operationalizing a threat model that spans the entire LLM lifecycle, from user-input manipulation to sophisticated supply-chain attacks.

A Structured Threat Model for LLMs

The core of this systematization is a taxonomy organized by five primary "entry points" or access levels. These vectors represent different stages of the LLM development and deployment pipeline, as illustrated below:

The LLM development and deployment pipeline with five primary attack vectors (Boxes 1-5).
  1. Direct Attacks (Box 1 & 2): These involve black-box interactions via the application UI or API. They range from manual jailbreaks (e.g., "DAN" prompts) to automated attacks that utilize optimization techniques to discover adversarial suffixes.
  2. Infusion Attacks (Box 3): These exploit "in-context" data. Examples include poisoning documents retrieved in a Retrieval-Augmented Generation (RAG) system or injecting malicious instructions into a database accessed by the LLM.
  3. Inference Attacks (Box 4): These are white-box or gray-box attacks where an adversary has access to model activations or the tokenizer, enabling techniques like "activation steering" to bypass safety filters.
  4. Training Attacks (Box 5): This is the most intrusive level, involving the poisoning of pre-training or fine-tuning data, or tampering with model weights and adapters to insert hidden backdoors.

Systematization of Red-Teaming Attacks

The paper provides a comprehensive hierarchical map of dozens of attack types, categorizing them by the adversary's access level and methodology. This unified taxonomy allows researchers to see the lineage of attacks, such as how automated optimization-based attacks often evolve from manual tricks discovered by the community.

Detailed hierarchical taxonomy of red-teaming attacks categorized by access level and methodology.

Beyond attack categorization, the paper systematizes defense strategies into three pillars:

  • Extrinsic: External filters and guardrails that wrap the model.
  • Intrinsic: Improving the model itself through alignment techniques like RLHF.
  • Holistic: Multi-layered "Swiss Cheese" defense models that combine multiple safeguards.

Key Insights and Ideas

Several critical insights emerge from this systematization:

  • Access Level Defines the Threat: There is a clear distinction between what a casual user can achieve versus a malicious insider or state-level actor. Organizations must prioritize security investments based on their specific threat profile.
  • The Manual-to-Automated Pipeline: Sophisticated automated attacks often trace their origins to simple manual exploits. This underscores the need for diverse red-teaming teams, including non-technical experts like ethicists and journalists.
  • The "Softmax Bottleneck": Architectural choices, such as the unembedding layer, can create side channels. These may be exploited to extract model parameters or training data through standard API access.
  • Context-Dependent Harm: Harm is not universal; a hallucination might be a bug in a medical application but a creative feature in a storytelling tool. Effective red-teaming must be guided by domain-specific risk taxonomies.

Conclusion and Future Work

This operational framework provides a clear breakdown of adversary capabilities and a curated list of state-of-the-art defenses (e.g., SmoothLLM, Self-Reminder). However, limitations remain. Current research often focuses on single-turn prompts, whereas real-world interactions are multi-turn and dynamic. Future work should address this "multi-turn gap" and focus more heavily on supply chain security, particularly regarding the integrity of third-party data and external tools that LLMs are increasingly empowered to use.

Summary updated

BibTeX
@article{verma2024operationalizing,
  author = {Apurv Verma and Satyapriya Krishna and Sebastian Gehrmann and Madhavan Seshadri and Anu Pradhan and Tom Ault and Leslie Barrett and David Rabinowitz and John A. Doucette and NhatHai Phan},
  title = {{Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2024},
  url = {https://openreview.net/forum?id=sSAp8ITBpC},
}
Figure