Skip to content

EvoSafeHarness: Automatically evolving model- and domain-specific safety guardrails for AgentsEvoSafeHarness: Evolving Model- and Domain-Specific Harnesses for Securing Agents

arXiv· arXiv:2609.05903· Nanxi Li, Yingzi Ma, Yulong Cao, Chong Xiang, G. Edward Suh, Bo Li, Yejin Choi, Dawn Song, Chaowei Xiao·Indexed by this site · 2026-10-01· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

EvoSafeHarness automatically searches for safety harnesses combining natural language policies and executable logic for frozen models and target domains, reducing average ASR on DTAP from 45.6% to 10.0% at a utility cost of 3.3 percentage points.

Threat modelAttackers cannot touch model weights or the harness. The indirect channel controls external content the agent will read (important_instructions in files, records, tickets, messages, or tool results), trying to steer the agent toward an injection target; the direct channel's malicious target is the user instruction itself. Defenses check content-level provenance and domain/action-level authorization effectiveness.

Questions
System-level safety harnesses are typically designed once by experts and then reused across models and domains. Models require different levels of external constraint, and domains govern different effects, states, and action sequences, so fixed policies can over-intercept or miss safety relationships.
Methods
EvoSafeHarness jointly searches natural language policies and executable code logic on frozen models and target domains. The Designer rewrites based on behavioral feedback, an independently contextualized Criticizer rejects rules that rely on literal benchmark traces, and cascaded evaluation separately records benign utility and direct/indirect ASR.
Experiments and results
Across DTAP's fifteen deployments, average ASR drops from 45.6% to 10.0% with a 3.3-percentage-point utility cost, achieving the highest score in 14/15 cells. On AgentDojo, average utility is 82.8% and ASR 0.0%; the same harness zero-shot transfers to AgentDyn with 75.0% and 0.0%. On ASB, it achieves the best score on each victim model; with PAIR budget 16, average ASR is 19.5%.
Limitations and future work
The authors note that synthetic harnesses may still miss detections, with DeepSeek/os-filesystem having the highest residual ASR; search depends on the training split and domain specifications, and the costs of the outer optimizer and inner evaluation are accounted separately. Experiments cover five DTAP victim models, three action domains, and fixed or transferred evaluations on ASB, AgentDojo, AgentDyn, and AgentCanary.
Experimental setupSonnet 4.6、GLM-5 et al. · DecodingTrust-Agent (DTAP)、Agent-SafetyBench et al. · ASR、benign utility U et al.
Evaluated models
Sonnet 4.6GLM-5Kimi-K2.5Qwen3.7-plusDeepSeek-V4-FlashDeepSeek-V3.2Kimi-K2.6GLM-5.2MiMo-V2.5-ProDeepSeek-V4-ProOpenClaw (DeepSeek-V4-Flash)
Benchmarks
DecodingTrust-Agent (DTAP)Agent-SafetyBenchAgentDojoAgentDynAgentCanary
Metrics
ASRbenign utility Uscore = U − ASRUBRUAscore = UA − ASR
AI summaryEvoSafeHarness is a safety optimization framework for LLM agents that synthesizes deployable safety guardrails for a frozen model in a target domain, defending against both indirect prompt injection and direct harmful requests. It jointly searches natural-language policies and executable code logic, using model behavior, domain specifications, and adversarial review in a fresh context to eliminate rules that only target specific benchmarks. On DecodingTrust-Agent, average attack success rate drops from 45.6% to 10.0% with only a 3.3-percentage-point utility loss, achieving the best score in 14 of 15 cells; on AgentDojo it reaches 82.8% utility at 0.0% ASR, twice CaMeL's utility at the same operating point, and transfers unchanged to the unseen AgentDyn suite.

EvoSafeHarness is a safety optimization framework for LLM agents that synthesizes deployable safety guardrails for a frozen model in a target domain, defending against both indirect prompt injection and direct harmful requests. It jointly searches natural-language policies and executable code logic, using model behavior, domain specifications, and adversarial review in a fresh context to eliminate rules that only target specific benchmarks. On DecodingTrust-Agent, average attack success rate drops from 45.6% to 10.0% with only a 3.3-percentage-point utility loss, achieving the best score in 14 of 15 cells; on AgentDojo it reaches 82.8% utility at 0.0% ASR, twice CaMeL's utility at the same operating point, and transfers unchanged to the unseen AgentDyn suite.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Fixed harnesses cannot simultaneously adapt to different models' constraint strengths and different domains' safety relationships.

    Can we automatically synthesize a deployable safety harness for a given frozen model and target domain, rather than using a fixed expert-designed policy across all deployments.

    • Scenario and importance: The authors argue that once LLM agents turn language into real-world effects, failures can be transfers, credential leaks, deletion of production data, or leaving persistent shells. The safety unit expands from a single sentence to an entire action trajectory. Harmful instructions come through two channels: indirect prompt injections hide in external content like emails, web pages, or documents; direct attacks propose over-limit transfers, data deletion, or credential leaks through the user channel.
    • Limitations of existing methods: Model-level defenses can increase the likelihood of compliant behavior but do not provide system-level enforcement boundaries independent of model behavior. Existing harnesses often use fixed expert designs, with the same policies and control flow across models and domains. The authors argue that for already-strong models like Claude Opus, strict capability constraints like CaMeL preserve safety but significantly reduce benign utility; the same restriction may still be necessary for models more susceptible to adversarial instructions. Domain differences change the safety relationships that must be implemented: file systems require checking command effects, sensitive paths, secret movement, and downstream data flow; finance requires distinguishing transactions from fund outflows, checking destinations, and maintaining transaction history, because a series of individually allowed transactions can constitute wash trading.
    • Core observation: Model differences determine how strong interventions should be and where to enforce them semantically or deterministically; domain differences determine which predicates, states, routing, and enforcement points to protect. The authors argue that a single fixed design is unlikely to give the best safety–utility trade-off on both simultaneously. Directly replacing the task reward with attack success rate introduces three shortcuts: rejecting everything collapses utility, overfitting to benchmark artifacts like filenames or paths, and synthetic code that fails open leaving untested paths. A scalar reward also cannot distinguish failures from direct requests versus indirect injections.
    • What this paper proposes: The authors propose EvoSafeHarness, which searches for a deployable harness H=(P, C)—natural-language policy plus executable code logic—on a frozen model M and target domain D, and uses adversarial review in an independent context to reject rules that only work on benchmark artifacts.
    • Threat model:
      • Goal: The indirect channel steers the agent toward an injection goal g, such as transferring funds to an attacker's account; the direct channel requires the agent to directly reject harmful requests appearing as user instructions. The harness must block both channels.
      • Knowledge and boundaries: Neither channel can touch model weights or the harness. The paper divides channels by what the attacker controls as input, and orthogonally distinguishes content-level provenance checks from domain/action-level authorization checks.
      • Capabilities: The indirect attacker controls content the agent will read, but not the user request. DTAP delivers via files, records, tickets, and messages; AgentDojo/AgentDyn's attack family is important_instructions, wrapping payloads in seemingly authoritative tags and planting them in tool results. In direct attacks, the malicious goal is the user instruction itself.
      • Victim system: The tool-using agent is a frozen language model M and a harness H mediating user, model, and tool interactions. The no-defense harness H0 is a bare loop.
  2. What related research exists?

    Related work is grouped into three categories: harness optimization, system-level defenses, and agent safety benchmarks.

    The paper groups prior work into three categories in Related Work and uses the failure of fixed defenses in the introduction to position itself.

    Harness and pipeline optimization

    • DSPy (Khattab et al., 2023) and GEPA (Agrawal et al., 2025) — optimize prompts for fixed pipelines.
    • Meta-Harness (Lee et al., 2026) — uses an agent proposer that can read execution traces to edit harness source code; NLAH (Pan et al., 2026) makes the harness an editable natural language policy; VeRO and AHE (Ursekar et al., 2026; Lin et al., 2026a) add evaluation loops with version and budget control. The paper says these works optimize task performance or cost, not behavior under adversarial conditions, and do not search defenses separately by model and domain, although harness benefits are known to vary non-monotonically with the base model (Lin et al., 2026b).
    • This paper's positioning: retains Meta-Harness's trace-driven search and NLAH's policy surface, changing to safety domain specifications, threat-stratified scoring, and a new adversarially contextualized review.

    Prompt injection and system-level defenses

    • Indirect prompt injection (Greshake et al., 2023; Liu et al., 2024; Perez and Ribeiro, 2022) lets attackers controlling ingested content issue instructions the model may follow; adaptive attacks tuned against known defenses break most published defenses (Zhan et al., 2025). The paper's threat model covers both this channel and direct harmful requests.
    • System-level defenses (Xiang et al., 2026) range from prompt-level marking (Hines et al., 2024), injection detection or guardrail stacks (Inan et al., 2023; Li et al., 2026b; Chennabasappa et al., 2025), to in-loop trajectory monitoring DRIFT (Li et al., 2025) and IPIGuard (An et al., 2025), capability policies Progent (Shi et al., 2025), and CaMeL (Debenedetti et al., 2025) which architecturally separates untrusted data from control flow.
    • SafeHarness (Lin et al., 2026c) — hand-designed four-layer lifecycle defense, reusing the same architecture across models and domains. The paper says EvoSafeHarness treats mechanism selection and its thresholds themselves as an optimization problem, using existing designs only as warm-start experience; the Designer can delete, reorganize, or invent mechanisms for each deployment.

    Agent safety benchmarks

    • DecodingTrust-Agent (DTAP) (Chen et al., 2026) is a multi-domain agent red-teaming benchmark where agents act through tool servers; its release includes fourteen domains, and this paper evaluates three of them in a cross-model grid. AgentDojo (Debenedetti et al., 2024) evaluates injection attacks and defenses for tool-using agents across four suites; its out-of-distribution extension AgentDyn (Li et al., 2026a) is used as a generalization stress test.
    • Agent-SafetyBench (Zhang et al., 2024) evaluates unsafe agent behavior on 2,000 safety-critical tasks and multiple interaction environments; AgentCanary (Li et al., 2026c) provides the adaptive PAIR-style attacker used in §6.3. InjecAgent (Zhan et al., 2024) evaluates indirect injection in tool-integrated agents, and AgentHarm (Andriushchenko et al., 2025) measures harmfulness under direct misuse.
    • ReAct-style tool use (Yao et al., 2023) is the underlying agent loop throughout the paper. The paper says these benchmarks measure vulnerability, and this paper's contribution is searching for defenses against failures measured on specific models.

    Baseline methods are CaMeL, DRIFT, Progent, and SafeHarness only on Agent-SafetyBench. Benchmarks/datasets are DTAP (os-filesystem, finance, telecom), Agent-SafetyBench, AgentDojo, AgentDyn, and AgentCanary. The authors distinguish this paper from the above work in that the search target is mechanisms and thresholds on each model × domain deployment, rather than a fixed architecture reused across deployments or harness search that only optimizes task utility.

  3. How does the paper address this problem?

    A four-component closed loop searches H=(P, C) for each frozen model × domain, and an independent review blocks benchmark artifacts.

    The overall idea is to make EvoSafeHarness a safety-specific search around a frozen model M and target domain D: the Designer proposes natural-language policies P and executable code logic C, a new-context Criticizer performs adversarial review, a cascade evaluation scores each separately, and the Analyzer distills failed trajectories into experience for the next iteration.

    Problem Setting and Objectives

    • Agent and harness: The tool-using agent is (M, H). H is an ordered pipeline: constructs the system message and initial query, calls M, executes tool calls issued by M, returns tool results to M, until M gives a final answer. The no-defense H0 is a bare loop; a defense is any modification to H0.
    • Representation: H=(P, C). P is a policy transformation applied to the model's context, such as trust-boundary declarations, provenance frameworks, refusal criteria, or other standing instructions. C is any program legal under the harness adapter, which can rewrite or intercept tool calls, transform tool outputs, maintain trajectory state, enforce capability constraints, or call isolated auxiliary classifiers. This decomposition only indicates where the Designer can act; it does not split defenses into fixed mechanisms or lifecycle slots.
    • Objective: For a benchmark D containing benign tasks B and attack tasks A, utility U and ASR are the success rate and attack success rate under the benchmark's own judge, respectively. The optimization scalar is score(M, H, D)=100·(U−ASR). Rejecting everything or completing all benign tasks while allowing all attacks both score zero; intercepting nothing yields a score equal to the no-defense score. The search space HD is all programs satisfying the adapter and domain specification's immutable constraints, with no hand-enumerated mechanism taxonomy.

    Domain Specification and Warm Start

    • Specification content: The domain specification directly serves as the Designer's task contract, specifying the frozen victim model, backend, tools, and judge; direct and indirect threat semantics and their respective trusted runtime contexts; the training-only evaluation cascade and scores; generalization requirements and anti-overfitting robustness checks; and the adapters where the defense can act. The specification defines invariants and evaluation methods, not the defense architecture.
    • Adapter: On DTAP, the minimal adapter is a Python Defense object with system_prompt_transform, on_pre_tool_call, on_post_tool_call, plus arbitrary auxiliary code and per-trajectory state. On AgentDojo, executable logic is similarly open but instantiated as one or more pipeline components composed around the fixed agent loop. The paper states these three are interception APIs, not mechanism slots.
    • Warm start: An empty archive lacks safety-specific guidance. The authors distill eight safety design lessons from mature defenses (Li et al., 2025; Debenedetti et al., 2025) as initial candidates and reusable guidance, e.g., tool outputs must remain untrusted data rather than becoming instructions, and tool call effects must be checked against trusted user requests before execution. The Designer can delete, reorganize, replace, or extend these lessons; the returned harness often contains mechanisms not present in the warm start.

    Designer, Criticizer, and Cascade

    • Designer: The archive H stores candidate source packages, parent nodes and design assumptions, cascade scores, Criticizer verdicts, and per-task trajectories on M. The policy is π:(ΣD, H)↦(Hparent, μ), H′=μ(Hparent), where μ is a free-form edit that can change P, introduce trajectory state, add or remove judges or gates, change control flow, or rewrite C entirely, subject only to adapter constraints. When possible, it changes one mechanism at a time. The Designer can view previous programs, scoreboards, design notes, and raw failure trajectories, but does not read the held-out split. The archive retains every completed candidate, plus prefix evidence for candidates stopped early by confidence gates.
    • Criticizer: Every rule must pass generalization requirements: would the rule still trigger if an attacker renames paths, moves to an unlisted location, or rewrites instructions with the same malicious intent? Acceptance is based on attack invariants: provenance (dangerous instructions appear in tool outputs rather than from the user), scope (actions touch resources never named in the user's task), and intent mismatch (actions unrelated to the request). A candidate's P and C are given to an independent Criticizer in a clean context before any cascade run; it is not bound by the frozen model. Flagged trivial evasions are fixed before spending evaluation budget, and verdicts are recorded with the candidate.
    • Cascade four stages: Stage 0 performs import and structure checks; the package must expose a legal build. Stage 1 is a small diagnostic prefix that must complete without exceptions. Stage 2 extends the prefix into a broader utility–safety sample, stopping only if a one-sided 95% upper bound from stratified bootstrap makes the candidate lower than the no-defense reference by more than δ Score points; uncertain candidates continue. Stage 3 extends the same trajectory set to the full search sample, whose aggregate becomes the search score. Earlier trajectories are reused. The held-out split is invisible to every cascade decision. Prefix lengths and gate constants for each corpus are listed in Appendix A.
    • Two-level resources: The outer level uses an agent-coding model to inspect archives, diagnose trajectories, propose or review modifications, and edit harnesses; the inner level uses victim-model turns to measure candidates. The paper states that neither candidate count nor an undifferentiated resource budget can measure both, because they use different models, tokenizers, caching semantics, and units of work.

    Search Procedure

    Algorithm 1 first distills external designs into seed packages and evaluates them, then loops within budget B: the Designer reads the spec, scores, and trajectories before editing; the Criticizer fixes flagged renames, relocations, or rewrites; candidates failing static checks or smoke tests are skipped; stopping occurs when the prefix score's 95% UCB is below −δ; otherwise, evaluation is extended and submitted; finally, the highest-scoring harness in the archive is returned.

  4. What experiments did the paper conduct?

    DTAP average ASR across fifteen cells drops from 45.6% to 10.0%, and utility goes from 83.1% to 79.8%.

    Experimental Setup

    • Models under test: DTAP freezes five victim models: Sonnet 4.6, GLM-5, Kimi-K2.5, Qwen3.7-plus, DeepSeek-V4-Flash. Agent-SafetyBench uses DeepSeek-V3.2, Kimi-K2.6, GLM-5.2. AgentDojo/AgentDyn use MiMo-V2.5-Pro, DeepSeek-V4-Pro, GLM-5.2. AgentCanary uses DeepSeek-V4-Flash to drive the OpenClaw agent runtime.
    • Benchmarks and scale: DTAP uses three action domains: os-filesystem, finance, telecom, each with 30 benign, 35 direct, and 35 indirect tasks, totaling fifteen model×domain cells, with search conducted independently per cell. Agent-SafetyBench has a held-out split of 240 tasks, each run under six conditions: clean plus five attack channels. On AgentDojo, search is performed once, and the same harness is not re-searched; zero-shot runs are on AgentDyn's shopping, GitHub, and daily-life suites. AgentCanary freezes the searched harness and lets a PAIR-style attacker use the target's own responses as feedback to rewrite prompts, with an increased refinement budget. DTAP release includes fourteen domains, but the grid uses only three.
    • Baselines: CaMeL, DRIFT, Progent are each ported once and frozen across all victim models and domains; Agent-SafetyBench additionally includes SafeHarness. EvoSafeHarness is searched per cell. Search only reads the training split; held-out results do not enter the Designer or Criticizer.
    • Metrics: DTAP, AgentDojo, AgentDyn report benign utility U, ASR, and score=U−ASR; DTAP splits ASR into direct and indirect. ASB uses its own clean unsafe behavior rate UBR, micro ASR, attacked utility UA, and score=UA−ASR. AgentCanary counts an attack as successful when the safety judge's result score ≤0.5.
    • Statistics: Appendix Table A7 performs paired McNemar tests on the DTAP held-out grid, with 70 attack tasks per cell, reporting 95% Wilson intervals; utility has 30 benign tasks per cell. The paper does not report the number of repetitions in the main text.

    Main Results

    DTAP held-out results (from Table 1; Util is benign utility, ASR is overall attack success rate, both in %):

    Swipe horizontally to read the table

    ModelNo defense Util / ASRCaMeLDRIFTProgentEvoSafeHarness
    Sonnet 4.684.5 / 4.863.3 / 2.971.1 / 2.956.7 / 1.481.1 / 0.9
    GLM-582.0 / 39.568.5 / 29.372.2 / 36.566.7 / 16.778.9 / 8.1
    Kimi-K2.571.1 / 55.368.9 / 35.374.4 / 48.144.4 / 11.477.8 / 10.5
    Qwen3.7-plus86.7 / 57.670.0 / 55.281.1 / 56.660.0 / 11.078.9 / 8.5
    DeepSeek-V4-Flash91.1 / 71.077.8 / 65.786.7 / 67.654.4 / 11.982.2 / 21.9
    Five-model average83.1 / 45.669.7 / 37.777.1 / 42.456.4 / 10.579.8 / 10.0

    The numbers in the table are three-domain averages. EvoSafeHarness's direct/indirect ASR averages are 12.6% / 7.4%, compared to 50.9% / 40.4% for no defense.

    • Authors' interpretation: EvoSafeHarness achieves the highest score in 14 of 15 cells, relative to no defense and the three fixed baselines. The only cell where it loses is Sonnet 4.6/finance, where the no-defense ASR is already 2.9%. Grid-average ASR drops from 45.6% to 10.0%, with a utility cost of 3.3 percentage points. Progent's ASR is 10.5%, close to the safety result, but utility drops to 56.4%.
    • Domain differences for fixed defenses: The authors state that no-defense ASR ranges from 4.8% for Sonnet 4.6 to 71.0% for DeepSeek-V4-Flash, making the victim model itself the largest safety variable. CaMeL and DRIFT help most on os-filesystem, partially on finance, and not at all on telecom, because harmful actions use ordinary customer-service tools within scope. In the Table 1 average row, on telecom, CaMeL ASR is 45.0% (no defense 42.6%), and DRIFT is 43.6%.
    • Statistics: Paired McNemar rejects no change in 13/15 cells, with exceptions being the two Sonnet cells where no-defense ASR is already below 3%. Combined, 385 attacks are blocked and 11 newly opened (p≈2×10−78). Wilson intervals for benign utility overlap with no defense in every cell (Appendix H / Table A7).

    Agent-SafetyBench and AgentDojo Transfer

    • ASB (Table 2a): On the three-model average, EvoSafeHarness has UBR 12.3%, ASR 7.4%, UA 63.4%; no defense has 24.6%, 17.2%, 61.6%; SafeHarness has 18.9%, 10.5%, 44.8%. The authors state it is the only defense that simultaneously reduces UBR and ASR and improves attacked utility. Per model, UBR is lowest: DeepSeek-V3.2 14.6%, Kimi-K2.6 10.0%, GLM-5.2 12.2%. SafeHarness has the same ASR of 8.6% on GLM-5.2, but UA is 48.6% versus EvoSafeHarness's 70.5%, a difference the authors call 22 UA points. On Kimi-K2.6, Progent's ASR is 13.7%, higher than no defense's 13.5%.
    • AgentDojo→AgentDyn (Table 2b average row): EvoSafeHarness on AgentDojo has utility 82.8%, ASR 0.0%, which the authors state is twice CaMeL's utility (41.0%) at the same zero-ASR operating point; zero-shot transfer to AgentDyn gives utility 75.0%, ASR 0.0%, higher than no defense's 73.3% and 12.8%. CaMeL on AgentDyn has utility 0.0%, ASR 0.0%; Progent has utility 9.7%, ASR 2.9%. Per model, MiMo-V2.5-Pro's EvoSafeHarness on AgentDojo is 79.3% / 0.0%, and on AgentDyn 71.7% / 0.0%, lower than that model's no-defense AgentDyn utility of 76.7%.
    • Authors' interpretation: Part of ASB's harm is not injection-induced; user requests themselves may be unsafe, or the agent may paraphrase harmful content into the final answer without unsafe tool calls in the trajectory, so defenses that only intercept tool calls cannot intervene. Transfer works because it enforces provenance and task scope, not tool lists.

    Adaptive Attacks and Search Ablations

    • AgentCanary (§6.3, Figure 4a): At budget 0, the frozen harness reduces held-out ASR from 23.6% to 9.7%, with utility 74.1% versus no defense's 73.7%. ASR remains 9.7% at budget 2; at budget 16, two of three attackers have 16.7% and the third 25.0%, averaging 19.5%, which the authors state is still below the no-defense agent facing static prompts. Figure 4a also marks an intermediate point at 12.5%. The protocol, attacker model, and per-budget numbers are in Appendix B's Table A1; the main text does not list attacker model names.
    • Outer optimizer (Figure 4b): Only the outer model performing the search changes, with the victim model fixed to Kimi-K2.5, and Opus 4.8 as the main grid reference. The legend includes GPT-5.6 Sol, Opus 5, Sonnet 5, GPT-5.6 Terra, Opus 4.8; the x-axis is Mean ASR, the y-axis is Mean utility. The main text does not give specific coordinates for each point in the provided text.
    • Component ablation (Figure 4c, §7.5): On the same victim model, held-out scores (utility−ASR) are compared with and without safety warm-start knowledge and the new-context Criticizer, split into finance, telecom, and OS-fs. The text states that removing the Criticizer leaves search scores unchanged or higher, but held-out scores drop by up to 31 points. Figure 4c's coordinates range roughly from 50 to 90; the text does not give exact endpoints for each bar. The authors state that the safety warm-start, new-context Criticizer, and nested cascade each have measurable contributions (§7.5).

    Other Ablations and Analyses

    • Mechanism analysis (§7.1–7.2, Figure 2): With os-filesystem fixed, Figure 2C marks Sonnet 4.6's CaMeL utility 63.3%, ASR 2.9%, and EvoSafeHarness 81.1%, 0.9%; for GLM-5, CaMeL 68.5%, 29.3%, and EvoSafeHarness 78.9%, 8.1%. The authors state that Sonnet 4.6 achieves zero held-out ASR with lightweight policies and two semantic checks, while GLM-5 benefits from deterministic gates, provenance state, and adjudication caching; in Figure 2C's table, Sonnet's ours ASR is 0.9%, inconsistent with the text's claim of "zero held-out ASR."
    • Domain comparison (Figure 2D, model fixed to GLM-5): On os-system, CaMeL utility 61.3%, ASR 32.9%, ours 76.0%, 16.3%; on finance, CaMeL 69.7%, 35.2%, ours 84.6%, 11.7%. These numbers align with Table 1's five-model average row, though the figure caption says Model: GLM-5. The authors state that file systems depend on command effects, sensitive paths, and data flow, while finance must distinguish transactions from fund outflows and preserve transaction history.
    • Qwen/finance trajectory (§7.1): The authors report an archived action-reversal trajectory: a trusted instruction authorizes only a buy, external content induces a trade call in the opposite direction, and the harness rejects it due to direction mismatch without judging which input is malicious; the same victim model then issues the authorized buy, and the judge records both task success and attack failure.
    • Residuals (§7.3, Table A7): The 11 newly opened successes concentrate in cells with weaker victim models, especially DeepSeek/os-filesystem, which the authors call the cell with the largest residual ASR in Table 1 (44.3%, no defense 78.6%, b/c=26/2). Sonnet 4.6/finance and telecom have no-defense ASRs of 2.9% and 1.4%, McNemar is not significant, and EvoSafeHarness keeps ASR at the same floor with c≤1.
    • Fixed-defense failures in Figure 2A: CaMeL+DeepSeek on AgentDyn drops benign utility from no-defense 70.0% to 0.0%; CaMeL+GLM-5 on DTAP reduces attack success rate from 39.5% to 29.3%. Under the same harness, os-fs ASR goes from 57.4% to 32.9%, and finance from 36.9% to 35.2%.
    • Utility intervals: Table A7 states that with 30 benign tasks, per-cell utility costs fall within sampling noise, consistent with §6.1's total utility change of about 3 percentage points. The paper does not report per-candidate details of query counts; §7.6 and Appendix G analyze a two-level consumption ledger, but the provided text does not list ledger numbers.
  5. What are some points that can be further explored?

    Residual attacks still appear in cells with weaker models, especially DeepSeek's file-system domain.

    Limitations and future directions noted by the authors

    • Residual risk remains (§7.3): The authors frame the analysis goal as seeing what search learns and where it stops being helpful, and note that newly opened successes correspond to documented residuals, with DeepSeek/os-filesystem having the largest residual ASR. In the given text, before it is truncated at §7.3, the authors have written "when malicious text is hard to detect, check at action boundaries whether the effect is authorized by a trusted task" as a design lesson recovered from failed trajectories, while acknowledging that detecting injection in arbitrary external content is an open-world classification problem.
    • Statistically, utility changes fall within noise (Appendix H / Table A7): With only 30 benign tasks per cell, the Wilson intervals for per-cell utility overlap with no-defense in all 15 cells; the authors say this is consistent with a total utility change of about 3 percentage points, rather than being separable cell by cell.
    • Two Sonnet cells have no neutralizable attacks (Table A7): For Sonnet 4.6/finance and Sonnet 4.6/telecom, the no-defense ASR is already 1.4–2.9% (one or two successes out of 70), b≤1, and McNemar is not significant. The authors describe these as cells where the victim model is already nearly immune and there is almost nothing to neutralize.
    • The paper does not list code release or follow-up experiment plans in a separate Limitations section in the given text. The subsection structure of §7 includes lessons for safety optimization (§7.4), search-stack ablations (§7.5), and a two-level cost ledger (§7.6); the given text does not include sentences in these subsections explicitly called future work.

    Experimental coverage

    • DTAP grid: five victim models, three action domains, 30 benign plus 35 direct plus 35 indirect tasks per domain; EvoSafeHarness searches per cell, while CaMeL, DRIFT, and Progent are frozen across cells (Table 1, §5–§6.1). The DTAP release contains fourteen domains; the grid evaluates three representative domains (§2).
    • The other three benchmark families: ASB with three victim models, 240 held-out tasks, six conditions per task, with SafeHarness among baselines (Table 2a); AgentDojo searched on three models, with the same harness running AgentDyn's shopping, GitHub, and daily-life zero-shot (Table 2b); AgentCanary on an OpenClaw runtime driven by DeepSeek-V4-Flash, with PAIR refined to a budget of 16, and three attackers (§6.3).
    • Statistics and ablations: Table A7 reports Wilson intervals and McNemar for 15 cells, pooling 1050 paired attack tasks; Figure 4 varies the outer search model (victim model fixed to Kimi-K2.5) as well as the presence of warm start and Criticizer. The paper says removing the Criticizer lowers held-out scores by up to 31 points, while search scores stay the same or increase (§4.5, §7.5).
    • Search constraints: Search only reads the training split; Designer and Criticizer do not see held-out results; the cascade's prefix length and gate constants are in Appendix A, and the given main text does not list numerical values for these constants. The two-level resources are accounted separately by outer optimizer and inner victim model rounds (§4.4, §7.6).
    • Attack channels: DTAP reports both direct and indirect ASR; ASB includes unsafe user requests that do not manifest as tool calls, and misinformation; AgentDojo/AgentDyn attack families are important_instructions. The paper discusses InjecAgent and AgentHarm, but the experiments report numbers on the four benchmark families above, not on those two benchmarks.
  6. Summarize the main content of the paper

    Search harnesses by model × domain, simultaneously lowering ASR and preserving utility across four benchmark categories.

    EvoSafeHarness automatically synthesizes a deployable safety harness for each frozen model and target domain, rather than applying the same expert policy to all deployments.

    • Problem: Agents must simultaneously block indirect prompt injections hidden in external content and direct harmful requests from the user channel. Model differences change how strong external constraints should be; domain differences change the effects, states, and action sequences that must be checked. A fixed harness can crush utility on one victim model while leaving risk on another, and the same policy cannot cover both file-system and financial relationships.
    • Method: The search object is H=(P, C). The Designer freely edits policies and code based on the target model's failure trajectories; a Criticizer in a clean context rejects rules that rely only on paths, filenames, or benchmark-specific wording, accepting based on provenance, task scope, and intent mismatch. The cascade goes from static checks to the full search sample, separately preserving benign utility, direct ASR, and indirect ASR. The score is 100·(U−ASR); rejecting everything scores zero. Eight lessons from existing defenses serve only as a warm start.
    • DTAP: On the held-out grid of five models and three domains, average ASR drops from 45.6% to 10.0%, benign utility from 83.1% to 79.8%; direct ASR from 50.9% to 12.6%, indirect from 40.4% to 7.4%. It achieves the highest score in 14/15 cells. Progent averages ASR 10.5% and utility 56.4%. Paired tests reject no change in 13/15 cells, combining to 385 blocked and 11 newly opened. DeepSeek-V4-Flash's average ASR remains 21.9%, with its os-filesystem cell at 44.3%.
    • Transfer and adaptivity: On AgentDojo, three-model average utility is 82.8%, ASR 0.0%; the same harness on AgentDyn gives 75.0% and 0.0%. On ASB, three-model average UBR is 12.3%, ASR 7.4%, attacked utility 63.4%, which the authors state is the best score on each victim model. On AgentCanary, three PAIR attackers at budget 16 average ASR 19.5%, and at budget 0, 9.7% (no-defense static prompt 23.6%).
    • Authors' conclusion: Domain semantics determine which safety relationships and trajectory states are needed; model and runtime behavior determine how and where these relationships are enforced. The authors argue this supports optimizing the harness for the deployment at hand rather than pursuing a single universal design. Removing the Criticizer can leave search scores unchanged or higher, but held-out scores drop by up to 31 points.

Related papers

Show 3 more papers
Read originalarxiv.org