Abstract
Engaging in the deliberate generation of abnormal outputs from large language models (LLMs) by attacking them is a novel human activity. This paper presents a thorough exposition of how and why people perform such attacks. Using a formal qualitative methodology, we interviewed dozens of practitioners from a broad range of backgrounds, all contributors to this novel work of attempting to cause LLMs to fail. We relate and connect this activity between its practitioners' motivations and goals; the strategies and techniques they deploy; and the crucial role the community plays. As a result, this paper presents a grounded theory of how and why people attack large language models: LLM red teaming in the wild.
Introduction
The public release of ChatGPT in late 2022 marked a turning point in AI interaction, characterized by the immediate emergence of "jailbreaks"—cleverly crafted prompts designed to bypass safety filters. While social media was flooded with these exploits, the academic community lacked a rigorous understanding of the human element behind them. Most existing security literature focuses on the technical "what" of an attack. This paper addresses this gap by providing the first formal "grounded theory" of LLM red teaming, focusing on the cognitive "how" and the motivational "why" of the practitioners involved.
Methodology
The researchers utilized Grounded Theory, a qualitative methodology designed to develop theories systematically rooted in empirical data. The primary dataset consisted of 28 in-depth, semi-structured interviews, totaling 1,603 minutes of video recordings. These sessions included "think-aloud" demonstrations where participants performed live adversarial interactions, allowing researchers to observe "reflection-in-action."
The study's participants were recruited via snowball sampling from active online jailbreaking communities on platforms like Twitter, Discord, and Slack. As shown in Figure 1, the cohort was predominantly male and highly educated, with a significant number holding advanced degrees such as Masters or PhDs. The team employed three stages of coding—Open, Axial, and Selective—to distill thousands of highlights into a comprehensive taxonomy of 16 categories.
The Alchemist Mindset
A defining characteristic of LLM red teaming is the "Alchemist" mindset. Unlike traditional software engineering, which is often planned and deliberate, red teaming these "black box" models feels more like "hacking at something with a machete." Practitioners often view their prompts as "spells" and the models as "demons," embracing a trial-and-error approach where intuition and experimentation outweigh formal logic. This mindset is driven by curiosity and a desire to map the boundaries of what these models can be forced to do.
A Taxonomy of Red Teaming Strategies
The paper’s central contribution is a taxonomy of strategies used by red teamers, categorized into five main groups:
- Language: Using (pseudo)code, encodings like Base64, or "stylizing" language (e.g., being overly formal or servile) to confuse the model's safety filters.
- Rhetoric: Employing persuasion, "distraction" (tricking the model into thinking it has already completed a task), or Socratic questioning to reveal hidden biases.
- Possible Worlds: Creating "emulations" (e.g., "Imagine you are a Linux terminal") or "Opposite Worlds" where standard ethical guidelines are framed as inapplicable.
- Fictionalizing: Using narrative shifts, such as poetry or storytelling, to hijack the model's narrative goals.
- Stratagems: Meta-tactics like "Scattershot" (regenerating responses until one fails) or "Meta-prompting" (asking the AI for advice on how to attack itself).
A recurring observation among practitioners is the fragility of prompts. Specific techniques, like the famous "DAN" (Do Anything Now) prompt, are often quickly patched by developers. Consequently, elite red teamers focus on high-level strategies rather than specific, ephemeral techniques.
Categorizing Harm: The Actor-Subject Dimension
The authors propose a new framework for understanding AI harm based on the Actor-Subject Dimension. This categorizes harm by whether the outcome was intentional and who it affects—the self or others. For instance, a user tricking a bot into saying something offensive to them personally represents a different class of harm than using a bot to automate a massive phishing campaign targeting third parties.
Limitations and Future Work
The study acknowledges several limitations, most notably a significant male skew in the participant sample. The authors suggest that women may be less interested in "tinkering" for its own sake, though this requires further investigation. Additionally, the data represents a temporal snapshot from late 2022 to early 2023. While specific techniques like the "Grandma Exploit" may have been patched, the underlying strategies identified in the taxonomy remain highly relevant.
Conclusion
This grounded theory of LLM red teaming provides a vital framework for understanding the adversarial human-AI relationship. By moving beyond simple lists of exploits to the psychological and strategic foundations of these attacks, the research paves the way for more robust "blue teaming" (defense) strategies and a more nuanced approach to AI safety.
Summary updated