STACK: Adversarial Attacks on LLM Safeguard Pipelines
Ian R. McKenzie, Oskar J. Hollinsworth, Tom Tseng, Xander Davies, Stephen Casper, Aaron D. Tucker, Robert Kirk, Adam Gleave
TL;DR
This work analyzes defense-in-depth pipelines guarding frontier LLMs and introduces STACK, a staged attack that targets input and output safeguards. It demonstrates that open-weight safeguard models can be significantly weakened, with Gemma2 outperforming existing options on harmful datasets. The authors show that a black-box front-to-back STACK achieves $71 ext{ ext{%}}$ ASR on ClearHarm and $33 ext{ ext{%}}$ ASR under transfer, underscoring transfer viability even without direct pipeline access. The paper concludes with practical mitigations to harden pipelines, emphasizing stronger, diverse safeguards and reducing information leakage to thwart staged, component-wise jailbreaks.
Abstract
Frontier AI developers are relying on layers of safeguards to protect against catastrophic misuse of AI systems. Anthropic and OpenAI guard their latest Opus 4 model and GPT-5 models using such defense pipelines, and other frontier developers including Google DeepMind pledge to soon deploy similar defenses. However, the security of such pipelines is unclear, with limited prior work evaluating or attacking these pipelines. We address this gap by developing and red-teaming an open-source defense pipeline. First, we find that a novel few-shot-prompted input and output classifier outperforms state-of-the-art open-weight safeguard model ShieldGemma across three attacks and two datasets, reducing the attack success rate (ASR) to 0% on the catastrophic misuse dataset ClearHarm. Second, we introduce a STaged AttaCK (STACK) procedure that achieves 71% ASR on ClearHarm in a black-box attack against the few-shot-prompted classifier pipeline. Finally, we also evaluate STACK in a transfer setting, achieving 33% ASR, providing initial evidence that it is feasible to design attacks with no access to the target pipeline. We conclude by suggesting specific mitigations that developers could use to thwart staged attacks.
