← Lab /Security & privacy

Guardrail models miss malicious instructions hidden in overlong prompts

Overlong prompts can evade guardrail detectors while remaining actionable to downstream LLMs

Security & privacy arXiv 22 May 2026 Attack Simulation evidence Threat model

Published as “Prompt Overflow: What the Guardrail Inspects Is Not What the Model Infers”

Why it matters

Deployments that rely on lightweight guardrails with limited windows are vulnerable to distributed prompt attacks, potentially allowing unsafe behavior from LLMs even when safety checkers appear to block malicious inputs.

Summary

The paper shows that Prompt Overflow attacks can bypass guardrail models with a 100% success rate by fragmenting malicious instructions across overlong prompts, while downstream LLMs still execute the unsafe intent. The evidence comes from systematic experiments against Meta Llama Prompt Guard, IBM Granite Guardian, and DeBERTa-v3 using natural filler text, achieving near-total bypass, though detection remains strong when synthetic filler is used. The study’s scope is limited to constructed prompts and an initial mitigation that may not hold against adaptive attackers.

What they found 5

  1. 100% bypass rate against current guardrails using interleaved natural fillers

    “We reveal that the attacker achieves a 100% bypass rate against current guardrails, including Llama Guard and IBM Granite Guardian when using interleaved natural fillers, proving that standard sliding-window aggregation is completely ineffective against sparse adversarial signals [1, 32, 35].”

  2. Detection collapses to near-total failure when malicious fragments are embedded in coherent natural text

    “DeBERTa-v3 remains highly effective. In contrast, its detection capability collapses to near-total failure (approximately 100% bypass) when the same adversarial content is embedded within coherent natural text, a phenomenon we refer to as Semantic Camouflage.”

  3. Downstream LLMs still correctly infer malicious intent despite guardrail evasion

    “Gemini 3 Pro, Qwen2.514B, and Dolphin-2.9.3 accurately identified the malicious intent of the bypassed prompts, indicating that the attack set aside safety inspection while maintaining the semantic integrity for execution.”

  4. Bypass persists even with overlapping windows under the Interleave layout

    “As shown in Figure 4, bypass rates remain high even when overlapping windows are used under the Interleave layout.”

  5. Proposed sum-based aggregation defense can recover attacks that max-pooling misses

    “Our proposed aggregation defense method successfully recovered this case by capturing the collective weight of distributed evidence.”

Caveats 3

  • When synthetic or randomly generated noise is used as filler, DeBERTa-v3 remains highly effective, showing that the attack’s success depends on the type of filler text.
  • The proposed aggregation defense should be viewed as an initial mitigation, and its robustness against stronger adaptive attackers remains an open question.
  • The defense’s benign-calibrated thresholds and accumulation rule may require refinement across domains and for very long benign inputs.

What’s new here 4

  • Exploits the mismatch between guardrail window size and downstream LLM context length to evade safety checks.
  • Introduces risk-aware fragmentation that balances evasion with downstream executability.
  • Demonstrates that overlapping sliding-window inspection does not prevent bypass when malicious tokens are sparsely distributed.
  • Proposes a preliminary global aggregation defense to recover distributed evidence.

Threat model stated by the source

Adversarynon-privileged attacker who can submit overlength prompts and observe binary Allow/Block outcomes
Capabilitycan interleave malicious fragments with benign filler and perform limited calibration queries
Assumesguardrail inspection is window-based and cannot be altered; downstream LLM parameters are unknown