Formal Runtime Verification for Tool-Using LLM Agents: An Offline Same-Benchmark Study on AgentDojo and STAC
Nikolaos Kekatos, Stylianos Basagiannis, Marinelio Chintri, Alexios Lekidis, Tom Nianios, Ioannis Seitoglou, Anastasios Temperekidis, Panagiotis Katsaros
Abstract
Guardrails for tool-using LLM agents are usually application-specific rules, which makes multi-step, data-dependent safety policies hard to specify, audit and reuse. As a declarative alternative, we evaluate metric first-order temporal logic (MFOTL), replaying the recorded trajectories that AgentDojo, STAC and R-Judge already ship through the unmodified MonPoly monitor, offline and without running an agent. On these corpora, five generic obligations flag 71.8% of STAC attack chains and 70.1% of successful AgentDojo attacks, but also fire on 29.3% of benign runs. This imprecision stems from the corpora rather than the logic: they rarely record approvals and never record timestamps, so history-dependent obligations reduce to detecting risky action types. Where the trace does carry relational context, provenance-aware policies discriminate better; that context, however, is itself attackable, and one planted line defeats a naive provenance check on 94-99% of the runs it would otherwise flag. Binding provenance to the lookup that produced it closes this evasion at no cost in detection or benign firing. Taken together, these results show that formal temporal monitoring adds value exactly when the trace exposes trustworthy history. We therefore quantify how far current benchmarks are from that point and propose a twelve-field enforcement-ready trace schema.
Create a lesson
Metadata
- Comments
- 14 pages, 1 figure, 13 tables. Accepted at the 8th Workshop on CPS&IoT Security and Privacy (CPSIoTSec '26), co-located with ACM CCS 2026, The Hague
Related papers
CreepScope: Measuring Post-Use Authorization Exposure in Tool-Using Agents
Shared title terminologycs.CRHaoran Yu, Lifei Liu, Danping Zhang et al.
Protecting Shared Agent Workflows from Invalidation Attacks with Signed Trajectories and Runtime Verification
Shared title terminologycs.CRRuixiao Li, Fahao Chen, Peng Li
Multi-Aspect Runtime Verification for Simulation-Based V&V of LLM-Enabled Autonomous Agents
Shared title terminologycs.CRNikolaos Kekatos, Dimitrios Nikou, Anastasios Temperekidis et al.
Aligning Tool Descriptions and Implementations to Detect Prompt Injections in LLM Agents
Shared title terminologycs.CRJohnny Song, Shih-Chieh Dai, Guanhong Tao
SkillMarker: A KGW-Based Watermarking Method for Agent Skill Ownership Verification
Shared title terminologycs.CRAlan Tang, Lifeng Wang, Gang Wu et al.
No, Your Tools Are Not Enough: It's Time to Bring Agents to the Hunt
Shared title terminologycs.CRAti Priya Bajaj, Xiang Mei, Tiffany Bao et al.