HASTE: Automatically Evolving Agent Guardrails with Sparse Threat Evidence to Defend Against Emerging AttacksHASTE: Evolving Agent Harnesses Against Emerging Attacks Using Sparse Evidence
The authors propose the multi-agent framework HASTE, which automatically evolves agent harness defenses from sparse threat evidence; the authors claim that on Agent-SafetyBench, HASTEseen reduces average ASR to 28.50%.
Defender's perspective: agent systems in deployment face rapidly emerging new attacks (malicious instructions, injections, compromised tools, etc.), and new attacks initially come with only sparse threat evidence (descriptions in threat reports or preprints, a small number of attack examples). The defender holds an initial harness h0 and sparse evidence O, and automatically adapts the harness without access to the full evaluation set D, with the goal of reducing ASR on D while maintaining utility.
- Newly emerging agent attacks often come with only sparse evidence (descriptions in threat reports or a small number of examples), insufficient to directly drive defense adaptation; model-level defense updates are expensive, and harness-level defenses currently rely on manual engineering.
- Proposes the multi-agent framework HASTE: an attack parser abstracts sparse evidence into attack specifications, a specification optimizer and a case optimizer adversarially co-generate safety specifications and attack cases, a proposer iteratively modifies the harness accordingly, and review feedback drives evolution in a closed loop.
- Evaluated across multiple backbone models on Agent-SafetyBench and STAC, the authors claim HASTE consistently reduces ASR and maintains or improves SHR; HASTEseen on ASB has average ASR 28.50% and SHR 58.39%, outperforming baselines such as Meta-Harness.
- The authors point out that HASTEblind lacks fixed cases, so the final harness can only be taken from the last round; and it currently handles new attacks only one at a time, with the case of multiple simultaneous attacks left for future work. Experiments cover four backbone models and two benchmarks, and adaptation and final evaluation use different reviewer models.
- Evaluated models
- DeepSeek-V4-ProQwen3-8BPhi-4-mini-instructGPT-5.4-mini
- Benchmarks
- Agent-SafetyBench (ASB)ASB-300STAC
- Metrics
- ASRSHR
HASTE is a multi-agent framework that automatically evolves agent guardrails from sparse descriptions or a few attack examples in threat reports and preprints, through an adversarial loop between safety specification generation and attack case generation. Safety specifications guide guardrail updates to patch identified safety vulnerabilities, while attack cases probe residual vulnerabilities after each update, and evaluation results feed back into both processes, enabling guardrails to handle emerging attacks beyond initial evidence. Experiments across multiple base models, attack types, and evidence forms show that HASTE consistently reduces attack success rates while maintaining utility on benign tasks. Code is publicly available.
Paper analysis
What problem does this paper attempt to solve?
How to use only sparse threat evidence (descriptions or a small number of examples) to let an agent harness automatically evolve to defend against newly emerging attacks.
Core question: when a new attack comes with only sparse threat evidence (descriptions in threat reports or preprints, a small number of attack examples), can an agent harness automatically evolve an effective defense.
- Scenario and importance: LLM agents consist of a backbone model and a harness (a stateful program that maintains context and executes tool calls), and in deployment face risks such as harmful queries, injected instructions, and compromised tools. The authors argue that the harness directly controls execution and environment interaction and plays a key role in defense.
- Shortcomings of existing methods: model-level defenses require updating the underlying model, which the authors describe as computationally expensive and slow; harness-level defenses are more flexible, but adaptation still relies mainly on manual engineering. Sparse evidence has limited coverage and cannot be used directly as an evaluation signal for automated adaptation the way a full attack benchmark can.
- Core observation: the authors' key idea is to extrapolate from sparse evidence—driving harness evolution beyond the initially observed evidence through the adversarial interaction between safety specification generation and attack case generation.
- The paper proposes: HASTE (Harness Adaptation from Sparse Threat Evidence), a three-stage multi-agent framework, evaluated on Agent-SafetyBench and STAC across four backbone models and two evidence forms.
- Threat model (defender's perspective):
- Attack source: new security risks in deployment, such as malicious instructions in environment observations and tool outputs; the paper does not posit a single attacker but targets the category of "newly emerging attacks."
- Defender's knowledge: only sparse threat evidence O (attack descriptions, technical reports, or a small number of observed examples), with no access to the full evaluation set D during adaptation.
- Defender's capability: holds an initial harness h0 and can automatically modify the harness (without changing backbone model parameters).
- Victim system: an LLM agent system consisting of a backbone LLM and a harness.
What related research exists?
Related research covers three categories—automated harness engineering, attacks against agents, and agent defenses—and this paper is positioned at automated harness adaptation under sparse evidence.
Automated harness engineering
- Early work showed that carefully designed harnesses can improve agent capabilities; later work automated parts of the harness, such as prompts (Agrawal et al., 2026; Fernando et al., 2023), module composition (Shang et al., 2025; Hu et al., 2025), and workflows (Zhang et al., 2025a; Li et al., 2024).
- Meta-Harness (Lee et al., 2026) and AutoHarness (Lou et al., 2026) treat the entire harness as the search target, synthesizing or refining the harness based on evaluation feedback. The paper notes that these methods usually assume sufficiently broad evaluation feedback is available, and do not address how a safety harness adapts to new attacks when only sparse threat evidence exists.
Attacks against agents
- Jailbreak attacks induce harmful behavior through adversarial user prompts (Xiong et al., 2026; Ren et al., 2024); prompt injection changes agent behavior through direct or indirect adversarial instructions (Liu et al., 2023; Perez & Ribeiro, 2022; Debenedetti et al., 2024; Li et al., 2026).
- Tool-exploitation attacks induce unauthorized actions through malicious tool descriptions or unsafe parameters (Shi et al., 2025a; Wang et al., 2026b; Mou et al., 2026; Zhan et al., 2024); memory poisoning injects malicious information into persistent memory to influence subsequent decisions (Chen et al., 2024; Srivastava & He, 2025). The paper notes that these attacks have different interfaces but all exploit the agent harness.
Agent defenses
- Guardrail models (Liu et al., 2026; Mou et al., 2026; Huang et al., 2026) use auxiliary classifiers to screen inputs, outputs, and tool calls; the paper states that such methods intervene at a relatively coarse granularity.
- Harness-level defenses (Debenedetti et al., 2025; Shi et al., 2025b; Lin et al., 2026) constrain what the agent can observe, remember, and execute through mechanisms such as instruction hierarchies, sandboxes, and access control. The paper notes that existing defenses are mostly designed around pre-specified attacks.
Baselines and benchmarks: comparison baselines include the guardrail models Qwen3Guard, Safiron, and TS-Guard, the harness-level defenses LlamaFirewall, TS-Flow, and SafeHarness, and Meta-Harness, which empirically updates the harness from a fixed case set; the evaluation benchmarks are Agent-SafetyBench and STAC.
The authors position this paper as follows: unlike defenses designed around pre-specified attacks, HASTE automatically adapts a defensive harness from sparse threat evidence.
How does the paper address this problem?
HASTE uses five agent roles to form a three-stage process: parse evidence into an attack specification, adversarially co-optimize the safety specification and attack cases, and drive harness evolution through a reviewer-feedback loop.
Overall approach: extrapolate from sparse evidence, driving iterative harness evolution through the adversarial interaction between safety specification generation and attack case generation—the safety specification guides fixes to identified vulnerabilities, the attack cases probe for vulnerabilities remaining after each update, and execution feedback flows back into both generation processes.
Problem formulation
- An agent system consists of a backbone model π and a harness h; on a task set D, each task x produces a trajectory under harness h, and both the safety score s and the utility score u are 0/1, determined by the benchmark's built-in reviewer (model review or programmatic check).
- Core metrics: ASR(D,h)=1/(|D|)∑x∈ D(1−s(τxh)), SHR(D,h)=1/(|D|)∑x∈ Ds(τxh)u(τxh), i.e., attack success rate and safe-and-useful rate.
- Problem definition: given sparse evidence O and an initial harness h0, automatically obtain h* that improves safety and maintains utility on the full evaluation set D, which is unseen during adaptation.
Multi-agent roles (five policies in total)
- Attack parser πparse: distills sparse evidence into a structured attack specification a, summarizing attacker capabilities and the underlying attack mechanism; a is fixed throughout evolution.
- Specification optimizer πspec: each round, generates a safety specification σt used to strengthen the current harness.
- Case optimizer πcase: each round, generates two types of cases—attack cases Gt,ns with no safe completion path (probing residual vulnerabilities) and cases Gt,s with a safe completion path (probing utility regressions).
- Proposer πprop: modifies the current harness according to the safety specification (ht=πprop(ht−1,σt)), refining the existing harness rather than synthesizing from scratch, to preserve defenses from earlier iterations.
- Reviewer πjudge: gives safety/utility scores and diagnostic feedback on trajectories; feedback accumulates across iterations and flows back to the two optimizers, forming a closed loop.
Key designs
- Information isolation: the specification optimizer and the case optimizer run independently within each round, and newly generated cases are kept secret from the specification optimizer and the proposer, preventing the harness from being directly tailored to the evaluation cases.
- Feasibility validation: generated cases are first validated for feasibility with the initial harness h0, checking only whether they can be executed in the deployment environment (filtering unavailable tools, illegal parameters, etc.), without applying safety or utility criteria; failed cases are returned to the case optimizer with logs for regeneration.
- Two evidence conditions: with no observed examples, it is called HASTEblind, and evaluation relies entirely on generated cases; with a small number of observed examples, it is called HASTEseen, and the observed examples are split into Os and Ons according to whether a safe completion path exists, merged with generated cases, and participate in evaluation throughout.
Final harness selection
- HASTEblind: generated cases change each round, there is no common validation set, and the harness from the last round (hT) is returned directly.
- HASTEseen: the observation set is fixed, ASRt and SHRt are computed each round, and the harness corresponding to t* = arg max(1 − ASRt + SHRt) is selected; observed examples are drawn from the corresponding benchmark, and the remaining examples form a held-out set D used only for final evaluation.
Implementation parameters
- Default 5 rounds of adaptation, 16 safety cases (ASB additionally adds 16 completable cases); the proposer and the two optimizers use Claude Code (DeepSeek-V4-Pro), and the attack parser uses GPT-5.1; each harness is implemented as a single Python file that modifies the agent's safety instructions and state-aware execution control.
What experiments did the paper conduct?
Comparing seven categories of baselines across four backbone models on ASB and STAC, HASTEseen has the lowest average ASR; ablations, cross-benchmark transfer, continuous threats and parameter sensitivity are all covered.
Experimental setup
- Backbone models under test: DeepSeek-V4-Pro, Qwen3-8B, Phi-4-mini-instruct, GPT-5.4-mini (STAC omits Phi-4-mini-instruct due to its multi-turn setting, which the paper states its capability is not suited for).
- Benchmarks: Agent-SafetyBench (ASB, 2,000 tasks, 8 risk categories, 349 environments, of which 1,265 cannot be safely completed and 735 can be completed); STAC (483 validated attack cases, 10 failure modes, 390 cases in the SHADE-Arena environment and 93 cases in the ASB environment); ASB-300 (randomly sampled 200 non-completable + 100 completable) used for ablations and analyses.
- Baselines: No-defense; guardrail models Qwen3Guard, Safiron, TS-Guard; harness-level defenses LlamaFirewall, TS-Flow, SafeHarness; Meta-Harness.
- Metrics and reviewers: ASR (safety) and SHR (utility, completable tasks only); adaptation and final evaluation use different reviewers — ASB adaptation-period safety/utility reviewers are AgentDoG and DeepSeek-V4-Flash, final evaluation uses official ShieldAgent (safety) and GPT-5.6-luna (utility); STAC adaptation period uses AgentDoG, final evaluation uses DeepSeek-V4-Flash under the official protocol.
- Number of repetitions: each experiment is repeated 3 times, reporting mean and standard deviation.
- Evidence forms: research papers and observed attack examples; default 5 adaptation rounds and 16 cases.
Main results
According to Table 1 (ASB, ASR↓/SHR↑, %) and Table 2 (STAC, ASR↓, %):
Swipe horizontally to read the table
Method ASB average ASR ASB average SHR STAC average ASR No-defense 51.39 44.52 64.96 LlamaFirewall 46.54 36.64 54.45 Qwen3Guard 44.86 43.57 63.15 Safiron 40.67 37.20 36.18 TS-Guard 42.32 43.32 58.96 TS-Flow 44.07 44.19 59.18 SafeHarness 49.13 46.64 50.01 HASTEblind 35.75 49.81 29.12 Meta-Harness 32.03 49.85 16.29 HASTEseen 28.50 58.39 15.76 - The authors consider that HASTEblind, without observed examples, can already reduce ASR while maintaining utility, indicating that attack cases targeting residual vulnerabilities plus completable cases probing utility can drive evolution from sparse evidence.
- The authors claim that observed examples further reduce ASR, and that HASTEseen improves SHR on ASB; under the same observed examples, HASTEseen outperforms Meta-Harness, which the authors attribute to iterative optimization of specifications and cases producing richer adaptation signals.
- Exceptions: on STAC, HASTEseen's average ASR (15.76) is close to Meta-Harness's (16.29), and HASTEblind has large standard deviation (e.g., Qwen3-8B is 39.06 ± 27.12); on ASB, Meta-Harness's SHR on DeepSeek-V4-Pro (68.96) is lower than HASTEblind's (68.68 is the HASTEblind value, Meta-Harness 68.96 is slightly higher), and column by column HASTE is not best in every cell.
Ablation: optimization components (Table 3, ASB-300, Qwen3-8B)
- Freezing either component (specification or test cases) raises ASR and lowers SHR: full HASTEblind is 26.00/54.00, freezing case optimization gives 46.33/49.00, freezing specification gives 53.67/48.00.
- The authors point out that reusing first-round cases causes greater degradation than fixing a generic specification, and consider continuous optimization of test cases more important.
Cross-benchmark generalization and cross-model transfer (Table 6, Table 7)
- Cross-benchmark: harnesses generated on ASB transferred directly to STAC (93 cases instantiated in the ASB environment), HASTEblind average ASR 8.74, HASTEseen 8.24, lower than No-defense's 66.11, but higher than 6.10/5.02 evolved directly on STAC; the authors claim that target-side threat evidence makes evolution more effective.
- Cross-backbone transfer (Table 7, ASB-300): harnesses generated by a source backbone remain effective on unseen target backbones (OOD average ASR about 30.03–31.06, No-defense 48.96); the authors claim in-domain (ID) results are generally better than cross-domain (OOD), and matching source and target backbones yields additional gains.
Continuous threats and parameter sensitivity (Figure 3–5)
- Continuous threats: ASB's 8 risk categories are introduced in sequence, with 5 adaptation rounds per stage (8 attacks + 8 completable cases), and each risk category is evaluated with 50 sampled attack cases plus a fixed 100 completable cases (Qwen3-8B). Figure 3 shows that as risks increase, the ASR of the three methods on the first risk generally rises; the authors claim HASTEseen has the lowest ASR and most stable SHR in most stages. In Figure 4, the authors claim HASTEseen's covariance ellipse is concentrated in the upper-right region, while HASTEblind and Meta-Harness are less stable (the authors attribute these to adaptation drift of generated cases and overfitting to fixed cases, respectively).
- Parameter sensitivity (Figure 5, ASB-300, GPT-5.4-mini): increasing adaptation rounds or number of cases generally first improves HASTEseen and then stabilizes; HASTEblind and Meta-Harness first benefit and then degrade. Only the axes (Rounds at 1/3/5, Test cases at 8/14/16/32) and trends are visible in the figure; specific values are not labeled.
Other ablations and analyses
- Reviewer models (Table 4, ASB-300, Qwen3-8B): after replacing the adaptation-period safety reviewer with DeepSeek-V4-Flash, ASR rises for all three methods (HASTEblind 26.00→34.00); after replacing the utility reviewer with GPT-5.1, both metrics worsen for HASTEblind, while Meta-Harness and HASTEseen instead show lower ASR and higher SHR.
- Proposer/optimizer models (Table 5, ASB-300, GPT-5.4-mini backbone): after replacing the default DeepSeek-V4-Pro with GPT-5.5, HASTEseen's ASR drops from 20.47 to 16.67 and SHR rises from 71.00 to 77.00; the authors claim the method benefits from stronger proposers and optimizers.
- Less evidence (Table 8, Appendix A): using only observed examples without research papers, HASTEseen average ASR is 23.93 (three backbones), and 21.37 with papers added, both lower than No-defense's 44.69.
- Reviewer consistency (Appendix B): ASB safety reviewer pairwise agreement rate 69.35–84.22% (Table 11), utility reviewer 93.50–95.00% (Table 12); after switching to different final reviewer combinations, the relative ranking of methods remains largely unchanged (Table 10).
What are some points that can be further explored?
The authors point out that HASTEblind's final harness selection is constrained and that multiple simultaneous attacks are not handled; the experiments cover four backbone models and two benchmarks.
Limitations and future directions noted by the authors
- Final selection of HASTEblind: the lack of fixed cases hinders selection of the final harness; currently the harness adapted in the last round is returned directly (Appendix E Limitations).
- Multiple attacks in parallel: HASTE currently handles newly emerging attacks one at a time; evolution under multiple simultaneous attacks is left for future work (Appendix E Limitations).
Scope of experiments
- 4 backbone models under test: DeepSeek-V4-Pro, Qwen3-8B, Phi-4-mini-instruct, GPT-5.4-mini; STAC experiments use only 3 of them (Phi-4-mini-instruct omitted).
- Evaluation benchmarks are Agent-SafetyBench (2,000 tasks) and STAC (483 cases); ablations and in-depth analyses are conducted on ASB-300 (300 tasks); cross-benchmark generalization experiments use 93 STAC cases instantiated in the ASB environment.
- Defense baselines cover 3 guardrail models, 3 harness-level defenses and Meta-Harness; threat evidence forms cover both research papers and observed attack examples.
- Each experiment is repeated 3 times and standard deviation is reported; the adaptation period and final evaluation use different reviewer models; Appendix B reports pairwise agreement rates between reviewers, but agreement with human annotation is not reported.
- Continuous threat experiments are conducted on Qwen3-8B, introducing ASB's 8 risk categories in sequence, 8 evolution stages in total; parameter sensitivity experiments are conducted on GPT-5.4-mini.
Summarize the main content of the paper
HASTE evolves harnesses from sparse threat evidence via adversarial co-optimization, and the authors claim it reduces ASR and maintains or improves utility on ASB and STAC.
A harness-level defense paper: studying how to automatically evolve an agent harness when new attacks come with only sparse evidence (descriptions or a small number of examples).
- Problem: model-level defense updates are expensive, and harness-level adaptation relies on manual work; sparse evidence has limited coverage and cannot directly serve as an evaluation signal for automatic adaptation.
- Method: HASTE forms a closed loop with five agent roles — an attack parser distills evidence into attack specifications, a specification optimizer and a case optimizer adversarially generate safety specifications and attack/utility cases (with information isolation between them), a proposer iteratively modifies the existing harness, and review feedback accumulates and flows back across rounds. Two settings: HASTEblind (no observed examples, takes the last-round harness) and HASTEseen (with observed examples, selects the round by 1 − ASR + SHR).
- Main results: on ASB, HASTEseen average ASR 28.50%, SHR 58.39%, outperforming Meta-Harness's 32.03%/49.85% and all static defense baselines (Table 1); on STAC, HASTEseen average ASR 15.76%, close to Meta-Harness's 16.29% (Table 2).
- Other findings: freezing either specification or case optimization raises ASR (Table 3); harnesses evolved on ASB transferred to STAC have average ASR 8.74% (HASTEblind, Table 6), and after cross-backbone transfer still lower than No-defense (Table 7); when 8 risk categories are introduced continuously, the authors claim HASTEseen's ASR and SHR are the most stable (Figure 3, 4).
- Authors' conclusion: the results indicate that automatically turning sparse threat evidence into harness evolution is feasible; the authors also point out that HASTEblind's lack of fixed cases constrains final selection, and that the case of multiple simultaneous attacks remains to be studied.