Manuscript Offprint

arXiv:2610.09793

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

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

Nikolaos Kekatos

Clone Systems

Larnaca, Cyprus

nkekatos@clone-systems.com

Alexios Lekidis

University of Thessaly

Larissa, Greece

alekidis@uth.gr

Stylianos Basagiannis

International Hellenic University

Serres, Greece

basagiannis@ihu.gr

Tom Nianios

Clone Systems

Larnaca, Cyprus

tnianios@clone-systems.com

Marinelio Chintri

International Hellenic University

Serres, Greece

marchint@ihu.gr

Ioannis Seitoglou

International Hellenic University

Serres, Greece

ioaseito@ihu.gr

Anastasios Temperekidis

Aristotle University of Thessaloniki

Thessaloniki, Greece

anastemp@csd.auth.gr

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.

CCS Concepts

• Security and privacy → Software and application security; • Theory of computation → Logic and verification; • Computing methodologies → Intelligent agents.

Panagiotis Katsaros

Aristotle University of Thessaloniki

Thessaloniki, Greece

katsaros@csd.auth.gr

References (13)