Skip to content

Researchers disclose a reasoning-amplified denial-of-service attack against LLM agent guardrailsFrom Shield to Target: Denial-of-Service Attacks on LLM-Based Agent Guardrails

Paper Tracker· arXiv:2606.14517· Yuguang Zhou, Xunguang Wang, Pingchuan Ma, Zhantong Xue, Zhaoyu Wang, Shuai Wang·Indexed by this site · 2026-10-08· Originally publishedSelected AttacksSelectedAttention42

Quick read

Attacks

Based on the paper PDF (generated by Gemini); refer to the original

The authors exploit the schema-following characteristics of guardrails to induce reasoning-extension DoS, achieving up to 63.4× token inflation on DeepSeek-V3.2 (Table 1).

Threat modelBlack-box threat model: The attacker only injects text into third-party environment content that the agent normally fetches, with no access to internal weights, prompts, or state; the goal is to exhaust computational resources by inflating guardrail reasoning.

Questions
LLM-based agent guardrails introduce deep reasoning overhead to defend against prompt injection and jailbreaks, making the guardrail a computational bottleneck on the critical path of every action; attackers can induce the guardrail to produce excessively long reasoning loops through environment content injection, causing denial of service and crippling system availability.
Methods
Proposes exploiting the guardrail's own schema-following property to induce reasoning-extension DoS. A beam-search optimization framework constructs natural language payloads that fit the guardrail's analysis structure, including two implementations: LLM-as-Proposer and Mechanism-Aware mutation, with scenario-specific adaptation for code, multi-agent, web, and desktop systems in end-to-end settings.
Experiments and results
In independent evaluations, payloads optimized with TS-Guard-8B transfer seamlessly to 8 mainstream models, achieving 13–63× token inflation, significantly higher than existing DoS baselines (only 1.11–1.20×). In 4 real agent deployments, the highest measured latency amplification is 131× and 148.2× for web and multi-agent endpoints, respectively, and a 23.3% throughput drop is caused in a shared multi-agent guardrail.
Limitations and future work
The authors point out in Section 8 that pre-inference filters and blacklists cannot defend against payloads with high natural language fluency; hard token truncation leads to safety bypass under fail-open and directly achieves DoS under fail-closed; stronger reasoning models produce longer loops due to better instruction-following capabilities. Experiments cover 8 independent guardrail models, 3 benchmarks, and 4 end-to-end agent systems. The paper does not report defense against adaptive attacks, hybrid review environments with human intervention, or cross-lingual testing.
Experimental setupTS-Guard-8B、Qwen3.5-9B et al. · AgentDojo、ASB et al. · Attacked thinking length、Extension ratio et al.
Evaluated models
TS-Guard-8BQwen3.5-9BDeepSeek-V3.2GLM-4.7Kimi-K2.5Claude-3.5-HaikuGPT-4o-miniGemini-3-FlashQwen3.5-FlashDeepSeek-R1-0528ShieldAgent (Qwen2.5-7B)
Benchmarks
AgentDojoASBAgentHarmSWE-benchWebArenaOSWorld
Metrics
Attacked thinking lengthExtension ratioLatency amplificationToken amplificationRelative throughput
AI summaryand selection rationaleResearchers from the Hong Kong University of Science and Technology and other institutions propose a reasoning-amplified denial-of-service attack that exploits the pattern-following characteristics of LLM guardrails, using injected content to induce them into unbounded reasoning loops. The attack generates natural language payloads through a beam search optimization framework, and after optimization on a single open-source agent model, TS-Guard-8B, it transfers to 8 models including Claude, GPT, Gemini, DeepSeek, and Qwen, achieving 13–63× token amplification, while six existing DoS methods achieve only 1.1–1.2×. In four real deployments—OpenHands, LangGraph, BrowserGym, and OSWorld—peak latency amplification reaches 36.3×, 148×, 131×, and 18× respectively, and LangGraph also shows throughput degradation due to head-of-line blocking in the shared guardrail. The researchers evaluated mitigations such as pre-inference filtering and hard token budgets, and found that none can directly resolve the vulnerability.

Researchers from the Hong Kong University of Science and Technology and other institutions propose a reasoning-amplified denial-of-service attack that exploits the pattern-following characteristics of LLM guardrails, using injected content to induce them into unbounded reasoning loops. The attack generates natural language payloads through a beam search optimization framework, and after optimization on a single open-source agent model, TS-Guard-8B, it transfers to 8 models including Claude, GPT, Gemini, DeepSeek, and Qwen, achieving 13–63× token amplification, while six existing DoS methods achieve only 1.1–1.2×. In four real deployments—OpenHands, LangGraph, BrowserGym, and OSWorld—peak latency amplification reaches 36.3×, 148×, 131×, and 18× respectively, and LangGraph also shows throughput degradation due to head-of-line blocking in the shared guardrail. The researchers evaluated mitigations such as pre-inference filtering and hard token budgets, and found that none can directly resolve the vulnerability.

Why it was selectedThe paper reveals a reasoning-extension DoS vulnerability in LLM guardrails and provides measured amplification data across 8 models and four types of Agent deployments.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Reveals the exploitation of schema-following characteristics in agent reasoning guardrails to induce reasoning-extension DoS, turning the safety shield into a resource-exhaustion bottleneck.

    Targeting reasoning-extension DoS against agent guardrails, revealing how their schema-following characteristics can be exploited to exhaust computational resources and cripple system availability.

    • Problem scenario and importance: LLM-driven autonomous agents (covering web, desktop, code, and multi-agent systems) widely perform real-world interactions, making runtime safety layers essential. To defend against complex indirect prompt injection and jailbreaks, the industry commonly deploys LLM-based reasoning guardrails on the critical path of every agent action, but this deployment introduces stringent availability dependencies.
    • Shortcomings of existing defenses and attacks: Rule-based filters and discriminative classifiers cannot handle open-ended complex contexts; existing LLM DoS attacks (such as task-derailment puzzles, adversarial characters, tool-chain expansion) mostly attempt to shift the model's task focus, which are directly treated as irrelevant data under the highly constrained "safety evaluation" task of guardrails, with the authors measuring only 1.11–1.20× inflation.
    • Core observation: Guardrail models generally exhibit strong schema-following characteristics, strictly enumerating risk categories, weighing evidence, and generating structured analysis. When the environment contains content that mimics and extends the guardrail's own analysis framework, the guardrail treats it as legitimate analysis structure and faithfully executes it, causing attention to self-loop on schema headers and leading to reasoning extension.
    • Proposed approach: Proposes a beam-search-based payload optimization framework, including two implementations: LLM-as-Proposer and Mechanism-Aware structural mutation, and proposes adaptation strategies such as adversarial conflict and transformation resilience for four major real-world scenarios.
    • Threat model:
      • Attacker goal: Exhaust the target guardrail's computational resources and service capacity, causing extremely high latency or timeout truncation, achieving agent-level availability denial or safety bypass.
      • Attacker knowledge: During offline optimization, full white-box observation of locally deployed open-source proxy guardrails; during online deployment, the target guardrail is completely black-box, with no knowledge of its weights, system prompts, internal activations, or token probabilities, only observable external behaviors such as latency and timeouts.
      • Attacker capability: Can only inject natural language text into third-party environment content (e.g., web pages, code repository files, conversation messages) that the agent normally fetches or observes, with no host privileges, no ability to modify guardrail configurations, or intervene in the user's initial task.
      • Victim system: Autonomous agent systems that rely on LLM-based standalone or integrated reasoning guardrails for pre-action safety review.
  2. What related research exists?

    Systematically reviews prompt injection, agent guardrails, and existing LLM DoS work, pointing out that existing DoS methods fail on task-constrained guardrails.

    The paper discusses the following three groups of related work:

    Prompt Injection and Jailbreak Attacks

    • Perez and Ribeiro (2022) and Greshake et al. (2023)—propose direct prompt injection and indirect prompt injection through third-party environment content (web pages, documents), respectively.
    • Zou et al. (2023) and Wei et al. (2023)—the former uses gradient-based optimization to find universal adversarial suffixes that elicit harmful outputs, while the latter systematically categorizes jailbreak strategies exploiting competing objectives and safety generalization mismatches.

    LLM-Based Agent Guardrails

    • WebGuard (Liao et al., 2025), ShieldAgent (Chen et al., 2025), and NeMo Guardrails (Rebedea et al., 2023)—build safety protections for web agents (reviewing actions against accessibility trees), desktop agents (performing triple independent verification of location, action, and state), and multi-agent systems (intercepting input and output tracks), respectively.
    • LlamaFirewall (Chennabasappa et al., 2025), ToolSafe (Mou et al., 2026), TaskShield (Jia et al., 2025), and GuardAgent (Xiang et al., 2025)—propose guardrail architectures combining discriminators with reasoning adjudication, structured prompt templates based on explicit risk categories, and knowledge-retrieval-based generation of executable verification logic.

    LLM Denial-of-Service (DoS) Attacks

    • ENGORGIO (Dong et al., 2025), CRABS (Zhang et al., 2025), OverThink (Kumar et al., 2026), ReasoningBomb (Liu et al., 2026), RECUR (Wang et al., 2026), and ThinkTrap (Li et al., 2026)—respectively use EOS suppression, evolutionary search, injection of time-consuming math/logic puzzles to induce lengthy self-referential reasoning, and optimization of high-perplexity adversarial prompts in embedding space to produce excessive output. The paper points out that these methods assume the target model will execute derailed tasks, which fails on safety guardrails strictly constrained to their task, and adversarial characters are easily detected by perplexity checks.
    • Zhou et al. (2026)—expands agent action loops through chained tool calls to consume resources; the paper notes this method requires control over the agent's tool registry, giving the attacker significantly higher privileges than simple environment text injection.

    Comparison Baselines and Benchmarks

    • Baseline methods: Compared against 6 existing DoS schemes: ENGORGIO, OverThink, CRABS, ReasoningBomb, RECUR, and ThinkTrap.
    • Evaluation benchmarks: Evaluated on AgentDojo, ASB, AgentHarm, SWE-bench, WebArena, and OSWorld.

    Positioning Difference from Existing Work: The authors note that previous defense research only focused on whether guardrails output correct safety decisions while ignoring their own availability overhead; this paper does not attempt to divert the model from the safety evaluation task, but instead follows and inversely exploits the guardrail's own instruction-following and safety analysis patterns, causing pathological expansion within its own task.

  3. How does the paper address this problem?

    Through a beam-search framework with LLM/mechanism-aware mutation, construct natural language payloads that mimic guardrail analysis structures, inducing attention self-loops.

    The paper proposes exploiting the guardrail's own structured analysis pattern-following (schema-following) property, using beam-search optimization to generate payloads with high natural language fluency, inducing the guardrail into deep reasoning loops.

    Core observations and mechanism findings

    • Attention Cycling: The authors found that effective payloads alter the model's attention patterns; response tokens during generation re-focus on the model's own output pattern headers (schema headers) with attention weights 9.6 times higher than baseline, forming a closed loop of self-referential generation.
    • Entropy Collapse: After entering the loop state, the model's token prediction uncertainty significantly decreases (average Shannon entropy drops from 0.264 bits in normal generation to 0.132 bits), indicating the model has departed from genuine logical reasoning and shifted to mechanical template filling.

    Beam-search optimization framework

    The optimization objective is to maximize the reasoning output length of the proxy guardrail Gs under the context distribution: p∗ = argmaxp ∈ P 𝔼c ∼ C [|Φ(Gs(T(c[p])))|] where Φ(·) extracts the reasoning part content, and |·| computes character length. The beam maintains k=5 candidate payloads, each round of mutation expands b=5 offspring, uses SequenceMatcher to set a diversity threshold δ=0.9 to prevent diversity collapse, and early stopping tolerance rounds P=5.

    Two framework implementations

    • LLM-as-Proposer: Uses large models like GPT-5.2 as proposers. The proposer receives the parent payload, the guardrail's complete thinking process, and a strategy bank accumulating over 100 pattern strategies (Strategy Bank, updated with exponential moving average weights, selecting Top-10 strategies to inject into prompts), iteratively generating mutated payloads.
    • Mechanism-Aware Optimization: Abandons the LLM proposer, abstracting the payload into a template state vector with 6 named slots (including category list s1, enumeration depth s2, analysis sections s3, anti-brevity clauses s4, multi-level calibration s5, hypothesis count s6). Mutations are performed through operators such as adding/removing categories, adjusting enumeration levels, and adding anti-aggregation clauses (e.g., requiring restart from scratch if missing), combined with attention cycling score scoring and early stopping entropy filtering, significantly reducing offline search overhead.

    Adaptation to real deployment scenarios

    • Code agents (integrated guardrails): For monolithic architectures where action generation and safety review run in parallel, conflict factors are used to construct dilemmas, forcing the model to repeatedly weigh between executing valid actions and multiple potential compliance conflicts.
    • Multi-agent systems (transformation elasticity optimization): To address the issue that payloads rewritten by preceding agents may strip safety meta-terms, structures containing numerical tables, section headers, and entity facts are designed, with weighted moderate objectives guiding optimization:

    ftransform = α · ∑i=1N wi · think(G(stagei(x))) where the weight sequence w = [0.5, 1.0, 1.5, 2.0, …] increases with pipeline depth, ensuring cross-stage survival and reverse expansion.

  4. What experiments did the paper conduct?

    Covering 8 models and 4 major real-world scenarios, achieving up to 63.4× token inflation and 148.2× latency amplification, significantly surpassing existing baselines.

    Experimental Setup

    • Models under test: Open-source models include TS-Guard-8B, Qwen3.5-9B, DeepSeek-V3.2, GLM-4.7, Kimi-K2.5; closed-source models include Claude-3.5-Haiku, GPT-4o-mini, Gemini-3-Flash; the end-to-end phase additionally tests Qwen3.5-Flash, DeepSeek-R1-0528, Qwen2.5-7B.
    • Datasets and benchmarks: AgentDojo, ASB, AgentHarm; end-to-end tests cover SWE-bench (20 tasks), LangGraph multi-agent suite (25 tasks across 5 domains), WebArena (10 shopping tasks), OSWorld (20 desktop scenarios).
    • Baseline methods: ENGORGIO, OverThink, CRABS, ReasoningBomb, RECUR, ThinkTrap.
    • Metric definitions: attacked thinking length (characters), inflation factor (ratio to equal-length benign input), fitness score.
    • Review and optimization settings: offline optimization uniformly uses TS-Guard-8B as the proxy model; the proposer mainly uses GPT-5.2; no additional scoring classifier is set, directly measuring generated thinking length.

    Main Results

    Under the ToolSafe template and different test benchmarks, payloads optimized with TS-Guard-8B are transferred to test each guardrail model (from Table 1):

    Swipe horizontally to read the table

    Guardrail ModelAgentDojo (Inst. I)AgentDojo (Inst. II)ASB (Inst. I)ASB (Inst. II)AgentHarm (Inst. I)AgentHarm (Inst. II)
    TS-Guard-8B* (proxy model)42,959* / 45.2×47,736* / 50.2×45,818* / 49.6×36,851* / 39.9×47,589* / 46.5×45,235* / 44.2×
    Qwen3.5-9B482,344* / 23.1×395,562* / 19.0×521,697* / 26.3×489,350* / 24.7×437,976* / 23.0×413,220* / 21.7×
    DeepSeek-V3.280,803* / 59.2×66,335* / 48.6×77,176* / 63.4×48,082 / 39.5×52,154 / 43.8×49,181 / 41.3×
    GLM-4.738,644 / 24.0×24,838 / 15.4×32,656 / 21.0×36,855 / 23.7×35,234 / 21.2×32,076 / 19.3×
    Kimi-K2.536,066 / 25.2×18,892 / 13.2×56,117* / 33.8×49,974* / 30.1×31,615 / 21.1×28,168 / 18.8×
    Claude-3.5-Haiku61,981* / 27.7×36,921 / 16.5×54,415* / 26.3×42,622 / 20.6×49,130* / 23.6×46,424 / 22.3×
    GPT-4o-mini14,103 / 20.6×13,008 / 19.0×17,857 / 21.8×19,987 / 24.4×13,381 / 17.4×14,515 / 18.8×
    Gemini-3-Flash28,872 / 22.1×28,218 / 21.6×26,943 / 23.9×22,885 / 20.3×21,077 / 19.1×19,642 / 17.8×
    • Black-box transferability: The authors report that payloads optimized only with open-source proxy models can achieve 17–27× inflation on major closed-source models, with the highest reaching 63.4× on DeepSeek-V3.2 (asterisk indicates sustained loops with more than 10 repetitions).
    • Baseline comparison disparity: According to Table 2, on Claude-3.5-Haiku the existing DoS baseline reaches at most 1.20× (ReasoningBomb), while this method achieves 27.7× (thinking length 61,981 characters).

    End-to-End Scenario Testing

    • Code agent (OpenHands): README injection achieves an average token inflation of 25.9× and a peak of 36.3× (Table 8), with single-task safety review time extended from 138 seconds to over 59 minutes; configuration file injection also achieves an average of 11.9×.
    • Multi-agent cascade paralysis (LangGraph + NeMo): Inter-agent message injection reaches a maximum token inflation of 115.2× and latency amplification of 148.2× (single-step time up to 730.8 seconds, Table 9); under a supervisor architecture, it causes head-of-line blocking in the shared guardrail, reducing system throughput of uncontaminated worker nodes by 23.3% (Figure 7).
    • Web agent (BrowserGym + WebGuard): Hidden DOM injection makes the checkout task achieve 131× latency amplification (15 steps taking 1310.8 seconds); under a 30-second timeout forced pass, 10 timeout pass-throughs occur, and task success rate rises to 6/10 but safety is compromised (Table 11).
    • Desktop agent (OSWorld + ShieldAgent): The fine-tuned classification guardrail under triple verification (location, action, state) produces a multiplier effect, with single-step generation expanding from 504 to 9,284 tokens, and latency amplification of 14.4× (Table 13).

    Other Ablations and Analysis

    • Beam search greedy degeneration (k=1) causes fitness to drop from 59,182 to 7,220, a decrease of 88% (Table 3).
    • Removing the anti-brevity clause causes fitness to drop by 83.0%, to 5,776 (Table 5).
    • Removing S1–S9 category enumeration causes fitness to drop by 74.2%, to 8,760 (Table 5).
    • Reducing enumeration depth to 1 causes fitness to drop by 81.1%, to 6,424 (Table 5).
    • Cross-prompt-template transfer (TaskShield and MELON) tests still maintain over 20× amplification for all models (Table 6).
  5. What are some points that can be further explored?

    The authors point out that RL-based de-pattern compliance and cost-boundary guardrails are future directions; experiments covered 8 models and 4 types of system environments.

    Limitations and future directions noted by the authors

    • Heuristic pattern-based guardrail design (Section 8): The authors note that stronger instruction-following in models leads to longer loops, and future research could explore combining directed RL techniques with high-quality datasets to reduce guardrail models' compliance with inductive pattern structures in payloads.
    • Two-way dilemma of truncation strategies (Section 8): The authors note that simply setting hard token thresholds cannot eliminate the risk; it only converts computational exhaustion into safety bypass (fail-open) or availability denial (fail-closed), necessitating new guardrails that balance cost boundaries and reasoning robustness.

    Experimental coverage

    • Guardrail models tested: Independent experiments covered 8 models: TS-Guard-8B, Qwen3.5-9B, DeepSeek-V3.2, GLM-4.7, Kimi-K2.5, Claude-3.5-Haiku, GPT-4o-mini, and Gemini-3-Flash.
    • Environment deployment frameworks: End-to-end evaluation covered 4 agent frameworks: OpenHands, LangGraph, BrowserGym, and OSWorld.
    • Defense mechanism evaluation: Defense evaluation covered 3 mitigation approaches: DeBERTa prompt injection classifier, hard token truncation quotas, and deploying stronger reasoning models.
    • Metrics not reported in the paper: The paper does not report the attack's sustained effectiveness against targeted adaptive defense algorithms; does not report adversarial performance across multiple languages (non-English environments); does not report interruption mitigation effectiveness in environments with human collaborative access.
  6. Summarize the main content of the paper

    The paper reveals that agent reasoning guardrails are vulnerable to schema-following DoS attacks; a single point of contamination can induce hundreds-fold latency amplification and paralyze shared systems.
    • Research positioning: Targeting the LLM safety guardrails that autonomous agents commonly rely on before executing actions, revealing a reasoning-extension denial-of-service (reasoning-extension DoS) security vulnerability arising from their reasoning and pattern-following characteristics.
    • Core problem: Existing guardrails must fully analyze action contexts and external environment inputs; attackers do not need to attack the model itself or gain system privileges, only need to implant payloads mimicking analysis frameworks into third-party data fetched by the agent, inducing pathologically lengthy reasoning analyses in the guardrail, causing severe computational and latency amplification.
    • Method highlights: Proposes a beam-search-based adversarial optimization framework, with two forms: LLM-as-Proposer and Mechanism-Aware lightweight structural mutation; exploits attention self-looping and low-entropy pattern filling characteristics, combined with conflict decision and transformation elasticity adaptation strategies for deployment environments such as code and multi-agent systems.
    • Main experimental results:
      • In independent tests, payloads optimized on open-source TS-Guard-8B transferred zero-shot to 8 mainstream models, achieving 13–63× token inflation (DeepSeek-V3.2 reached 63.4×, Qwen3.5-9B reached 521,697 characters), while 6 existing DoS baselines only achieved 1.11–1.20× (Table 1, Table 2).
      • In OpenHands, LangGraph, BrowserGym, and OSWorld, peak latency or token inflation of 36.3×, 148.2×, 131×, and 18.42× were measured, respectively.
      • In multi-agent architectures, induced blocking of the shared guardrail head caused throughput of unaffected benign worker nodes to drop by 23.3% (Figure 7).
    • Authors' conclusions and implications: The authors argue that the stronger the guardrail's instruction-following and deep reasoning capabilities, the higher its compliance with executing false patterns; pre-filtering detection and hard budget truncation expose a safety-availability dilemma when facing natural-language-fluent payloads, calling on academia and industry to build a new generation of safety guardrail systems with strict cost boundaries and reasoning robustness.

Related papers

Read originalarxiv.org