Skip to content

SecureGARD: Dynamic Ontology-Guided Governance for Tool-Using LLM Agent SecuritySecureGARD: Dynamic Ontology-Guided Governance for Secure Tool-Using LLM Agents

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2611.06682· Guoqin Xiong, Shengtao Wen, Xiang Chen, Xinyi Zeng, Zhaoxin Fan, Wei Ye, Xiaofeng Cao, Sheng-Jun HuangMIIT Key Laboratory of Pattern Analysis and Machine Intelligence, College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics; Tsinghua University; Beihang University; College of Electronic and Information Engineering, Tongji University; School of Computer Science and Technology, Tongji UniversityIndexed by this site · 18 days ago· Originally publishedDefenses

Quick read

Defenses

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

The authors propose SecureGARD, an ontology-guided agent execution governance framework, and claim an observed ASR of 0% on AgentDojo, ASB, and AgentDyn while maintaining task utility.

Threat modelIndirect prompt injection: attack content is embedded in untrusted environmental content such as emails, web pages, documents, or tool outputs, redirecting tool selection, tampering with parameter binding, or inducing actions that violate the user's original request. The defender inserts a semantic governance layer between agent planning and external tool execution, evolves the ontology offline and freezes it before evaluation, and online only updates the ABox and TaskState.

Questions
Tool-using LLM agents turn model outputs into actual actions, and indirect prompt injection becomes an execution security problem. The authors argue that existing defenses mostly act on prompts, interfaces, or trajectories, while action semantics and state dependencies are implicit, making it hard to generalize across tools.
Methods
SecureGARD grounds heterogeneous tool calls as shared semantic actions, using rules from a frozen TBox and verified facts from an ABox to make three-way ready/waiting/forbidden decisions, with waiting triggering bounded recovery; the ontology is proposed by an offline LLM from verified training evidence as axioms, passes multiple checks, and is then frozen.
Experiments and results
On AgentDojo, ASB, and AgentDyn with GPT-4o-mini and Qwen3.8-Flash as backbones, the authors report observed ASR of 0% in all cases, and AU better than DRIFT across all six settings; the ontology is evolved only from the AgentDojo training set and, once frozen, transferred directly to the other two benchmarks.
Limitations and future work
The authors note that the design depends on the granularity of the seed axioms and the coverage of validated training evidence; the relation vocabulary cannot yet express temporal, conditional, or cross-action dependencies, and performance in long-horizon tasks and rapidly evolving tool environments is unexplored. The evaluation covers only the prompt injection settings of three benchmarks; the remaining attack surfaces of ASB are not included.
Experimental setupGPT-4o-mini、Qwen3.8-Flash et al. · AgentDojo、ASB et al. · Clean Utility (CU)、Attack Utility (AU) et al.
Evaluated models
GPT-4o-miniQwen3.8-FlashClaude Sonnet-4.5Qwen3-4BGemma-2-9B
Benchmarks
AgentDojoASBAgentDyn
Metrics
Clean Utility (CU)Attack Utility (AU)Attack Success Rate (ASR)
AI summaryResearchers propose the SecureGARD framework, which uses dynamic ontology-guided governance to protect tool-using LLM agents from indirect prompt injection, and the authors report an attack success rate (ASR) of 0% on three benchmarks. The framework maps heterogeneous tool calls to a shared semantic representation and, combining an executable ontology with episode-level task state, derives deterministic decisions of three types: ready, wait and forbid, where a wait decision indicates an unmet but recoverable obligation and permits bounded replanning without expanding the authorization boundary. The ontology evolves offline from validated training executions; an offline LLM proposes instance-independent action-state axioms, and only axioms that can fix ontology errors exposed by training failures, preserve logical consistency and protected inferences, and pass held-out validation are accepted, after which the ontology is frozen. Under benign and indirect prompt injection settings on AgentDojo, ASB and AgentDyn, SecureGARD achieves better task utility under attack than existing baselines, and the authors state that the results show explicit semantic governance can enhance execution safety without indiscriminate blocking.

Researchers propose the SecureGARD framework, which uses dynamic ontology-guided governance to protect tool-using LLM agents from indirect prompt injection, and the authors report an attack success rate (ASR) of 0% on three benchmarks. The framework maps heterogeneous tool calls to a shared semantic representation and, combining an executable ontology with episode-level task state, derives deterministic decisions of three types: ready, wait and forbid, where a wait decision indicates an unmet but recoverable obligation and permits bounded replanning without expanding the authorization boundary. The ontology evolves offline from validated training executions; an offline LLM proposes instance-independent action-state axioms, and only axioms that can fix ontology errors exposed by training failures, preserve logical consistency and protected inferences, and pass held-out validation are accepted, after which the ontology is frozen. Under benign and indirect prompt injection settings on AgentDojo, ASB and AgentDyn, SecureGARD achieves better task utility under attack than existing baselines, and the authors state that the results show explicit semantic governance can enhance execution safety without indiscriminate blocking.

Related events and news

1 events · 1 news mentions

News that mentions this paper

大模型安全周报:智能体安全边界在签名、授权与上下文

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Under indirect prompt injection, interface-level defenses are hard to generalize across tools and cannot verify state preconditions, so the authors propose a semantic governance layer.

    Core problem: execution safety of tool-using LLM agents under indirect prompt injection—how to determine whether a tool call is authorized and whether its state preconditions have been verified, without one-size-fits-all blocking.

    • Problem setting: Tool access turns LLMs from generating replies into executing tasks; injected content in emails, web pages, documents, or tool outputs may be treated as instructions, redirecting tool selection, tampering with argument bindings, or inducing actions that violate the user's original request (Introduction).
    • Shortcomings of existing methods (as claimed by the authors): Existing defenses act on prompts, specific tool interfaces, data flows, or planning trajectories; semantically equivalent tools require separately written constraints (Figure 1(a)), permission and argument checks cannot determine whether an action's state preconditions hold, and binary allow/deny either lets through actions without evidence or rejects recoverable tasks (Figure 1(b)).
    • Core observation: An ontology can abstract actions away from concrete implementations and connect actions to environment states with explicit semantic relations (requires, establishes, invalidates, observes), serving as an executable semantic layer rather than a passive description of domain knowledge.
    • Proposed approach: SecureGARD, a dynamic ontology-guided governance framework: it grounds heterogeneous tool calls as shared semantic actions, and combines a frozen TBox with an episode-level ABox/TaskState to deterministically issue ready, waiting, or forbidden verdicts; waiting means an obligation is unmet but recoverable, permitting bounded replanning that does not expand the authorization boundary; the ontology is frozen after offline evidence-driven evolution.
    • Threat model:
      • Attacker goal: Make the agent accomplish an adversarial goal via indirect prompt injection (as judged by the benchmarks' official evaluators).
      • Attacker capability: Embed injected instructions in untrusted environment content such as emails, web pages, documents, or tool outputs.
      • Victim system: A tool-using LLM agent exercising authorization on behalf of a user.
      • Defense setting: The defender inserts a semantic governance layer between planning and execution; the ontology evolves offline only from the AgentDojo training set and is then frozen, and online execution can update only the ABox and TaskState.
  2. What related research exists?

    Related work falls into three groups: agents and tool use, execution defenses and governance, and ontology-based semantic modeling; the baselines are four system-level defenses.

    LLM agents and tool use

    • ReAct (2023), Toolformer (2023): the former alternates reasoning and acting; the latter lets models learn when and how to call external tools.
    • API-Bank (2023), ToolLLM (2024): executable benchmarks and instruction fine-tuning and retrieval mechanisms for tool-augmented LLMs.
    • Memory and planning work such as MemGPT (2023): maintains long-horizon interaction histories; the authors state that these works improve reasoning and interaction capabilities but do not establish whether an external action is authorized or supported by the current environment.

    Defenses and governance for tool-using agents

    • Model-level defenses: StruQ, Llama Guard, and InjecGuard strengthen instruction-data separation or detect injected content; DeCo and UNIHD focus on content reliability, which the authors describe as complementary to execution governance.
    • System-level governance: CaMeL separates trusted control logic from untrusted information flows; Progent, AgentSpec, and DRIFT impose constraints through structured policies, runtime specifications, and execution verification. The authors criticize this line of work because its control knowledge is expressed mainly through tool interfaces, execution traces, or predefined policies, lacking a unified semantic abstraction, so governance knowledge is hard to generalize across heterogeneous tool environments.

    Ontology-based semantic modeling

    • KnowPrompt, MKGformer (both 2022): apply relational semantics and structural constraints to relation extraction and multimodal knowledge graph completion.
    • LLMs4OL (2023), OaK (2026): LLM-assisted ontology construction and a task-oriented ontology kernel. The authors state that existing ontology-enhanced agents mainly use semantic representations for knowledge organization rather than governing safety-sensitive actions, and that static semantic models struggle to accommodate new tools and new dependencies.
    • Reflexion (2023), ExpeL (2024): improve subsequent behavior from execution feedback; the authors state that they do not guarantee that updates do not break verified behavior.

    Baselines and benchmarks: the comparison baselines are an undefended agent and four system-level defenses, Tool Filter, Progent, DRIFT, and CaMeL; the evaluation benchmarks are AgentDojo, ASB (prompt injection subset only), and AgentDyn.

    The authors position this paper as introducing a dynamic ontology as a semantic control layer that preserves established behavioral constraints while adapting to new action semantics.

  3. How does the paper address this problem?

    Tool calls are grounded as semantic actions, adjudicated three-way by TBox+ABox+TaskState, and the ontology is frozen after offline evidence-gated evolution.

    Overall idea: insert an explicit semantic layer between agent planning and external tool execution. SecureGARD consists of three parts: semantic execution modeling, ontology-guided runtime governance, and evidence-grounded offline ontology evolution (Figure 2).

    Semantic execution modeling

    • Grounding: The planner produces tool calls ct = (ut, θt) (interface and argument bindings); the grounding process constructs a semantic action instance xt = ⟨ at, Et, Rt, Ct ⟩, containing the action class, semantic effects, argument semantic roles, and execution context (plan membership, tool provenance, argument provenance, verified evidence, etc.).
    • Cross-tool transfer: Constraints are defined over abstract capabilities and, via action-class inheritance, uniformly apply to heterogeneous tools grounded to that capability, rather than being bound to specific interface names.

    Runtime governance

    • Dual-state representation: The ontology at execution step t is O_t = (T, A_t), where T is the cross-task TBox (reusable semantic knowledge) and A_t is the episode-level ABox (verified runtime facts); additionally, TaskState Q_t = ⟨H_t, V_t, P_t, B_t⟩ records completed actions, the fact projection visible to the planner, pending actions, and outstanding obligations. TaskState excludes planner reasoning and untrusted free text and cannot independently authorize actions.
    • Four action–state relations: requires, establishes, invalidates, observes, supporting pre-execution precondition checks and post-execution state updates, respectively.
    • Execution boundary and adjudication: The boundary is defined by authorization constraints such as the user request, tool capabilities, and argument provenance, and ontology evolution must not expand it; the initial TBox contains one fixed seed axiom prohibiting state-changing actions not originating from the original user goal or an accepted plan revision. The missing requirements are M_t = Req_T(x_t) \ State(A_t), and the decision is: forbidden if the boundary is violated, waiting if M_t is non-empty, otherwise ready.
    • Bounded recovery: A waiting action records the missing obligation in TaskState, and the planner may propose recovery actions that establish or observe the required state; recovery actions likewise undergo grounding and boundary checks, and after successful recovery the original action is re-adjudicated rather than directly allowed.
    • State update: After successful execution, the ABox is updated as A_{t+1} = (A_t \ Inv_T(x_t)) ∪ Est_T(x_t) ∪ Obs_T(x_t, o_t); an observes declaration only indicates observability, and a fact is added only if verified in the sanitized structured observation o_t. Planner declarations and untrusted text cannot establish runtime facts.

    Offline ontology evolution

    • Evidence attribution: Only training-set executions participate; failures caused by planning errors, tool failures, or unreliable observations are excluded, and only results pointing to missing or incorrect action–state knowledge are retained as evidence e_i = ⟨a_i, S_i^-, S_i^+, y_i, g_i⟩; executions of the same user task are grouped into one evidence group and cannot be counted repeatedly; raw tool outputs, identifiers, and concrete instance values do not enter evidence records.
    • Axiom proposal: Candidate axioms are limited to the four relations and a fixed vocabulary, proposed by deterministic extraction or an offline LLM (GPT-4o) from bounded evidence summaries; the LLM is only a hypothesis generator and cannot modify the ontology or participate in runtime adjudication; requires candidates need paired evidence of "wait/fail if state missing, ready/succeed if state present"; Appendix C gives the full proposal prompt, and Appendix B gives an extraction example for one requires axiom.
    • Admission and freezing: A revision must pass four gates—supporting its motivating training evidence, logical consistency (HermiT OWL 2 reasoner), preservation of protected entailments, and compatibility with held-out validation evidence; the validation set has veto power only. Among qualifying revisions, the minimal edit is selected; if no feasible revision exists, the TBox is unchanged; the accepted TBox is finalized and frozen before evaluation and deployment.

    Success determination

    • Three official metrics: Clean Utility (task success rate for benign execution), Attack Utility (legitimate task success rate under attack), and Attack Success Rate (adversarial goal success rate, as judged by each benchmark's official evaluator).
  4. What experiments did the paper conduct?

    Main results on three benchmarks with two backbones show ASR of 0% throughout; there are also a five-backbone sensitivity analysis, a four-variant ablation, ontology evolution transfer, attack mitigation tracing over 477 episodes, and a cost analysis.

    Experimental setup

    • Backbones tested: Main experiments use GPT-4o-mini and Qwen3.8-Flash; the backbone sensitivity analysis additionally tests Claude Sonnet-4.5, GPT-4o, Qwen3 4B, and Gemma-2 9B (Figure 4).
    • Benchmarks: AgentDojo (workspace, banking, Slack, travel environments, indirect prompt injection); ASB, only its prompt injection subset, excluding memory-poisoning, backdoor, and mixed attacks; AgentDyn (dynamically evolving environments, unseen tools).
    • Baselines: No Defense agent, Tool Filter, Progent, DRIFT, CaMeL.
    • Metrics: CU, AU, ASR, all as percentages, judged by each benchmark's official protocol and native evaluator.
    • Implementation: GPT-4o as the offline axiom proposer, HermiT as the OWL 2 consistency reasoner; AgentDojo is split 40%/10%/50% into training/validation/test by user task (seed 42) and is the only source of ontology learning.
    • Budget and repetitions: AgentDojo and AgentDyn allow at most 15 rounds of tool interaction per task, ASB follows the official protocol; Appendix A repeats with four random seeds on 97 benign and 477 attacked instances.

    Main results

    According to Table 1 (units %, "–" means not given in the paper):

    Swipe horizontally to read the table

    LLMMethodAgentDojo CU/AU/ASRASB CU/AU/ASRAgentDyn CU/AU/ASR
    GPT-4o-miniNo Defense67.4/37.3/27.351.7/37.7/49.146.7/35.7/50.0
    GPT-4o-miniDRIFT57.3/50.3/2.326.5/28.5/4.718.3/20.3/3.1
    GPT-4o-miniCaMeL30.3/33.6/0.7–/–/–0.0/0.0/0.0
    GPT-4o-miniSecureGARD58.8/61.6/0.034.8/32.5/0.020.0/22.5/0.0
    Qwen3.8-FlashNo Defense87.3/69.9/2.823.7/14.8/10.573.3/69.6/2.2
    Qwen3.8-FlashDRIFT65.7/64.5/0.429.3/16.5/2.311.7/15.5/0.0
    Qwen3.8-FlashCaMeL29.1/30.8/0.0–/–/–0.0/0.0/0.0
    Qwen3.8-FlashSecureGARD61.4/69.8/0.035.3/22.3/0.026.7/21.2/0.0

    (The Tool Filter and Progent rows are omitted; their CU on AgentDyn is no higher than 15.0%, and Tool Filter has no results on ASB.)

    • Safety: The authors claim SecureGARD has an observed ASR of 0% across all benchmarks and backbones; No Defense GPT-4o-mini has an ASR of 27.3%–50.0%, and DRIFT still has 2.3%–4.7% on that backbone.
    • Utility: Relative to DRIFT, SecureGARD has higher AU in all six settings and higher CU in five of them; the No Defense agent has high utility but also high ASR, which the authors treat as a utility reference rather than a defense baseline.
    • Transfer: The ontology evolves only from the AgentDojo training set and, once frozen, is used unchanged for ASB and AgentDyn; the authors take this to indicate that the learned action–state relations capture transferable execution semantics.

    Backbone sensitivity (Figure 4)

    • What was tested: On the same AgentDojo tasks and attack instances, only the backbone is changed, with the frozen ontology and governance pipeline unchanged.
    • Results: Across five backbones, observed ASR is 0.0%; CU ranges from 23.4% (Gemma-2 9B) to 61.4% (Qwen3.8-Flash), and AU from 28.0% to 69.8% (both Qwen3.8-Flash); Claude Sonnet-4.5 has CU 63.7% and AU 55.7%, GPT-4o 50.7%/45.4%, and Qwen3 4B 23.4%/28.0% (as labeled in the figure).
    • Authors' interpretation: Backbone capability affects legitimate task completion, while the stable observed ASR indicates that safety mainly comes from explicit semantic governance rather than the backbone's own injection recognition ability.

    Ablation (Figure 5, AgentDojo, GPT-4o-mini)

    • w/o Semantic Execution Modeling: CU and AU drop by 34.1 and 29.3 percentage points respectively (to 24.7%/32.3%), with ASR 0.21%.
    • w/o Ontology State Reasoning: AU drops by 10.7 percentage points, and ASR rises to 0.21%.
    • w/o Recoverable Semantic Dependencies: CU and AU drop by 8.3 and 9.8 percentage points, and ASR remains 0.0%.
    • w/o Goal-Bound Admission: CU rises slightly (60.8%) but AU drops, and ASR rises the most, to 1.7%. Authors' interpretation: semantic modeling and bounded recovery mainly preserve utility, while state reasoning and goal-bound admission mainly preserve safety.

    Ontology evolution and attack mitigation

    • Evolution transfer (Table 2): Adding 24 axioms from AgentDojo training feedback to the initial ontology O0 yields the frozen ontology O1; on unseen ASB tasks (GPT-4o-mini), observed ASR drops from 4.3% to 0.0%, with CU/AU of 34.8%/32.5% (O0: 36.5%/31.8%), and all 6 predefined regression checks are preserved (6/6, 100.0%).
    • Mitigation tracing (Table 3): Among 477 attacked AgentDojo episodes (GPT-4o-mini), 421 episodes (88.3%) had observations modified by evidence processing, 38 episodes (8.0%) had action proposals aligned with the attack goal, 13 episodes (2.7%) were rejected or deferred by adjudication, 26 episodes (5.5%) executed actions aligned with the attack but none completed the adversarial goal, and there were 0 successful attacks.
    • Cost (Figure 3, ASB, Qwen3.8-Flash): The authors claim SecureGARD's token consumption and per-episode runtime are close to No Defense and lower than other defense methods; the figure's axes are tokens per episode (0k–4k) and seconds (0–10), and the converted text does not retain the specific values of each bar.

    Other analyses

    • Multi-seed (Appendix A, Table 4): Across four seeds, CU is 57.5±1.5 and AU 60.4±0.8, and the observed ASR over 1908 attacked executions is 0.0% throughout; the authors note that zero observed ASR does not constitute an absolute safety guarantee.
    • Case (Figure 6): When an injected email forges a "recipient verified" claim, the undefended agent may send the file to the wrong recipient; SecureGARD sets the original call to waiting because email text cannot establish a verified fact, and after a contact lookup reveals a recipient conflict, adjudicates it as forbidden. The appendix gives an example of the injected email body.
  5. What are some points that can be further explored?

    The authors list limitations including seed axiom granularity, evidence coverage, and relation expressiveness; the evaluation covers the prompt injection settings of three benchmarks and six backbones.

    Limitations and future directions noted by the authors

    • Dependence on seed axiom granularity: The current design depends on the granularity of the seed axioms (Conclusion and Future Work).
    • Dependence on training evidence coverage: It depends on the coverage of validated training evidence (Conclusion and Future Work).
    • Expressiveness of the relation vocabulary: The relation vocabulary cannot yet capture richer temporal, conditional, or cross-action dependencies (Conclusion and Future Work).
    • Long-horizon tasks unexplored: Performance on longer-horizon tasks has not been explored (Conclusion and Future Work).
    • Rapidly evolving environments unexplored: Performance in rapidly evolving tool environments has not been explored (Conclusion and Future Work).
    • Future directions: Future work can address these limitations while preserving validated knowledge and fixed runtime safety boundaries (Conclusion and Future Work).

    Experimental coverage

    • Backbones tested: 2 in the main experiments (GPT-4o-mini, Qwen3.8-Flash), 5 in total in the sensitivity analysis (adding Claude Sonnet-4.5, GPT-4o, Qwen3 4B, Gemma-2 9B, 6 in total after deduplication), all on AgentDojo (Sections 4.1, 4.3).
    • Attack settings: Only benign and indirect prompt injection; for ASB, only its prompt injection subset is evaluated, explicitly excluding memory-poisoning, backdoor, and mixed attack settings (Section 4.1).
    • Ontology learning source: Only the AgentDojo training split (40%/10%/50%, seed 42); ASB and AgentDyn use the frozen ontology without target-benchmark revisions (Section 4.1).
    • Repetitions and sample size: Multi-seed experiments use 4 seeds, 97 benign and 477 attacked instances (Appendix A); the main results table does not report the number of instances and repetitions for each setting.
    • Unreported items: The paper does not report the specific number of tasks in each benchmark test set, nor statistical significance tests; the cost analysis in Figure 3 gives only axes and relative comparisons, and the converted text contains no specific token counts or seconds for each method.
  6. Summarize the main content of the paper

    Ontology-guided execution governance: semantic grounding plus three-way adjudication, observed ASR of 0% on three benchmarks, and cross-benchmark transfer after offline ontology evolution.

    SecureGARD is a dynamic ontology-guided governance framework for tool-using LLM agents, aiming to ensure execution safety under indirect prompt injection without one-size-fits-all blocking.

    • Problem: The authors argue that existing defenses act on prompts, interfaces, data flows, or trajectories, while action semantics, state dependencies, and evidence relations remain implicit, so policies are hard to transfer across equivalent tools and binary allow/deny is either unsafe or over-rejecting.
    • Method: Tool calls are grounded as shared semantic action instances; a frozen TBox provides reusable action–state rules, the ABox records verified facts, and TaskState tracks task progress; each action is deterministically adjudicated as ready, waiting, or forbidden, and waiting triggers bounded recovery that does not expand the authorization boundary. The ontology is proposed by an offline LLM (GPT-4o) from validated training evidence, gated by consistency, preservation of protected entailments, and held-out validation, then frozen; online, only the ABox and TaskState are updated.
    • Main results: On AgentDojo, ASB, and AgentDyn with GPT-4o-mini and Qwen3.8-Flash as backbones, the observed ASR is 0% in all cases (Table 1); AU is better than DRIFT in all six settings, e.g., on GPT-4o-mini AgentDojo, AU is 61.6% vs. 50.3%.
    • Generalization and ablation: The ontology evolves only from the AgentDojo training set, and after freezing, transferring it to the other two benchmarks still maintains 0% observed ASR; across five backbones, ASR is 0.0% while CU ranges from 23.4% to 61.4% (Figure 4); the ablation removing Goal-Bound Admission raises ASR to 1.7% (Figure 5).
    • Authors' conclusion: The authors claim that explicit semantic governance can enhance execution safety without relying on indiscriminate blocking, and that the learned action–state relations transfer across benchmarks; they also note that zero observed ASR does not constitute an absolute safety guarantee, and the design still depends on seed axiom granularity and training evidence coverage.

Related papers

Show 3 more papers
Read originalarxiv.org