Manuscript Offprint

arXiv:2611.06682

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

Guoqin Xiong, Shengtao Wen, Xiang Chen, Xinyi Zeng, Zhaoxin Fan, Wei Ye, Xiaofeng Cao, Sheng-Jun Huang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Guoqin Xiong*

MIIT Key Laboratory of Pattern Analysis and Machine Intelligence, College of Computer Science and Technology

Nanjing University of Aeronautics and Astronautics

Nanjing, China

guoqin_xiong@nuaa.edu.cn

Xinyi Zeng

Tsinghua University

Beijing, China

Shengtao Wen*

MIIT Key Laboratory of Pattern Analysis and Machine Intelligence, College of Computer Science and Technology

Nanjing University of Aeronautics and Astronautics

Nanjing, China

shengtao_wen@nuaa.edu.cn

Xiang Chen†

MIIT Key Laboratory of Pattern Analysis and Machine Intelligence, College of Computer Science and Technology

Nanjing University of Aeronautics and Astronautics

Nanjing, China

xiang_chen@nuaa.edu.cn

Zhaoxin Fan

Beihang University

Beijing, China

Wei Ye

College of Electronic and Information Engineering

Tongji University

Shanghai, China

Xiaofeng Cao

School of Computer Science and Technology

Tongji University

Shanghai, China

Sheng-Jun Huang

MIIT Key Laboratory of Pattern Analysis and Machine Intelligence, College of Computer Science and Technology

Nanjing University of Aeronautics and Astronautics

Nanjing, China

huangsj@nuaa.edu.cn

Abstract

Tool-using large language model (LLM) agents translate model outputs into consequential actions, turning indirect prompt injection into an execution-security problem. Existing defenses constrain tool calls, trajectories, or information flows, but often leave action semantics, state dependencies, and evidence relations implicit, limiting generalization across heterogeneous tools and complicating safe updates. We present SECUREGARD, a dynamic ontology-guided governance framework. SECUREGARD grounds heterogeneous calls in a shared semantic representation and combines an executable ontology with episode-level task state to derive deterministic ready, waiting, and forbidden decisions. A waiting decision identifies an unmet but recoverable obligation, enabling bounded replanning

without expanding the agent's authorization boundary. SECUREGARD evolves its ontology offline from verified training executions. An offline LLM proposes instance-independent action-state axioms, which are accepted only if they address ontology errors exposed by training failures, preserve logical consistency and protected entailments, and pass held-out validation before the ontology is frozen. We evaluate SECUREGARD on AgentDojo, ASB, and AgentDyn under benign and indirect prompt-injection settings. SECUREGARD achieves a 0% attack success rate (ASR) across all three benchmarks while improving task utility under attack compared with existing baselines. These results show that explicit semantic governance can strengthen execution security without indiscriminate blocking.

CCS Concepts

• Security and privacy → Software and application security;

• Computing methodologies → Ontology engineering; Intelligent agents.

References (13)