← Latest papers
💬 NLP

STACK: Adversarial Attacks on LLM Safeguard Pipelines

This paper introduces the STACK adversarial attack procedure, which successfully compromises a novel few-shot-prompted LLM safeguard pipeline with a 71% attack success rate, thereby highlighting critical vulnerabilities in current frontier AI defense systems and proposing specific mitigations.

Original authors: Ian R. McKenzie, Oskar J. Hollinsworth, Tom Tseng, Xander Davies, Stephen Casper, Aaron D. Tucker, Robert Kirk, Adam Gleave

Published 2026-02-06
📖 5 min read🧠 Deep dive

Original authors: Ian R. McKenzie, Oskar J. Hollinsworth, Tom Tseng, Xander Davies, Stephen Casper, Aaron D. Tucker, Robert Kirk, Adam Gleave

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are building a very powerful, helpful robot assistant. You want it to be smart, but you are terrified it might accidentally (or on purpose) give someone instructions on how to build a bomb or create a dangerous virus.

To stop this, the robot's creators don't just rely on one "stop" sign. Instead, they build a security pipeline, like a multi-layered fortress. This paper, titled STACK, investigates how well these fortresses actually hold up against clever hackers.

Here is the breakdown of the paper's story, using simple analogies:

1. The Fortress: "Defense in Depth"

Think of the AI safety system as a castle with three guards standing in a line:

  1. Guard 1 (Input Classifier): Checks the letter you send before it reaches the robot. If the letter looks suspicious, they stop it immediately.
  2. The Robot (The Model): If the letter passes Guard 1, the robot reads it and writes a reply.
  3. Guard 2 (Output Classifier): Checks the robot's reply before it gets to you. If the reply contains dangerous instructions, this guard snatches the letter back.

The idea is that for a bad guy to succeed, they have to trick both guards and the robot. This is called "Defense in Depth" (or the "Swiss Cheese" model), where even if one layer has a hole, the others should catch the threat.

2. The Problem: The Guards Are Sleepy

The researchers built a test version of this fortress using open-source tools (like a public blueprint). They found that the "guards" (the safety classifiers) were often too easy to trick.

  • They tested standard tricks (like rephrasing a question or adding random typos) and found that many existing safety guards failed to stop them, especially when the request was truly dangerous (like asking for chemical weapon recipes).
  • However, they also found that a simple trick—giving the guard a few examples of what to look for (called "few-shot prompting")—made the guard much sharper. This simple guard was better than the fancy, pre-trained ones.

3. The New Attack: STACK (Staged AttaCK)

This is the main discovery of the paper. The researchers realized that while the fortress is strong, the guards are looking at things separately. They don't talk to each other during the attack.

They invented a new hacking method called STACK (Staged AttaCK). Instead of trying to break the whole castle at once, they broke it one layer at a time, like a thief picking locks in a specific order:

  • Step 1: Trick the Robot. First, they used a persuasion technique to convince the robot to answer the dangerous question, ignoring its own internal safety rules.
  • Step 2: Trick Guard 1. They found a "magic phrase" (a universal jailbreak) that, when added to the front of the message, made Guard 1 think the message was harmless.
  • Step 3: Trick Guard 2. This was the hardest part. They needed the robot to write a reply that included a "magic phrase" at the end that would trick Guard 2 into thinking the reply was safe.

The Analogy: Imagine you want to sneak a forbidden note into a school.

  1. You first write the note in a way the teacher (the robot) will read and answer.
  2. You then wrap the note in a wrapper that the security camera at the door (Guard 1) thinks is just a lunchbox.
  3. Finally, you add a specific stamp to the back of the note that the security camera at the exit (Guard 2) thinks is a permission slip.

By combining these three specific tricks, the researchers successfully bypassed the entire fortress.

4. The Results: How Well Did It Work?

  • The Fortress Held Up (Sort Of): When they used standard attacks, the fortress worked great. The "few-shot" guard stopped 100% of the attacks on the most dangerous dataset.
  • STACK Broke the Fortress: When they used their new STACK method, they bypassed the fortress 71% of the time.
  • The "Black Box" Surprise: Even when the hackers couldn't see the guards' internal logic (a "black box" scenario) and had to guess which guard stopped them, they still succeeded 33% of the time. This is scary because it means you don't need to be an insider to break the system; you just need to be clever.

5. The Real-World Test

The researchers didn't just test this on their own toy model. They tried their method on the real, top-tier AI models from big companies (like Anthropic's Opus 4 and OpenAI's GPT-5).

  • They found that these real-world systems also leak information (like how long a request takes to process or specific error messages) that tells a hacker which guard stopped them.
  • Using this information, they successfully bypassed these high-security systems to get dangerous answers. The companies acknowledged the issues and patched them.

6. The Takeaway

The paper concludes with a few simple lessons for the builders of these AI fortresses:

  • Don't reveal your secrets: If your system tells a hacker "The Input Guard stopped you" vs. "The Output Guard stopped you," you are giving them a map. Make all refusals look the same.
  • Don't let hackers peek: If you release a "sibling" model (a slightly smaller version of your safety guard) to the public, hackers can train their attacks on that and then use them against your main system.
  • Defense in Depth is good, but not perfect: Having layers of security is better than having none, but if the layers don't communicate or if the guards are too predictable, a clever, staged attack can slip right through.

In short: The paper shows that while AI safety layers are a good idea, they are currently vulnerable to a specific type of "divide and conquer" attack. If you attack the layers one by one, you can defeat the whole system.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →