← Lab /Security & privacy

MFOTL monitoring catches ~71% of attacks but also flags ~29% of benign runs

Formal temporal monitoring can detect most tool-using LLM agent attacks when trustworthy history is recorded

Security & privacy arXiv 7 Oct 2026 Measurement Simulation evidence

Published as “Formal Runtime Verification for Tool-Using LLM Agents: An Offline Same-Benchmark Study on AgentDojo and STAC”

Why it matters

The study shows that formal RV can meaningfully augment LLM-agent safety when benchmarks record sufficient provenance and timing data, and that a hardened provenance specification can close a major evasion without sacrificing detection.

Summary

Formal runtime verification using MFOTL detects 71.8% of STAC attack chains and 70.1% of successful AgentDojo attacks, but also flags 29.3% of benign runs, showing that detection hinges on trace richness rather than the logic itself. When provenance information is present, parametric obligations improve precision, yet a simple poisoning attack can defeat the naive provenance check on 94-99% of affected runs. Binding provenance to the originating lookup eliminates this evasion without changing detection or false-positive rates, highlighting that the value of formal RV depends on having enforcement-ready trace fields.

What they found 3

  1. Generic MFOTL obligations fire on 70.1% of successful AgentDojo attacks and on 29.3% of benign runs.

    “The generic obligations fire on 70.1% of the attacks that succeeded and on 29.3% of benign runs”

  2. On STAC, the monitor flags the withheld harmful action in 347 out of 483 chains (71.8%).

    “our reference monitor flags the withheld harmful action in 347/483 = 71.8% (95% CI [67.7, 75.7]) of chains”

  3. A structured directory or quoted line flips 94.0% of flagged banking runs and 99.0% of flagged workspace runs, defeating the naive provenance check.

    “A structured directory line or a quoted/forwarded line flips 94.0% of the 403 flagged banking-payee runs and 99.0% of the 203 flagged workspace-recipient runs to “known” (no longer flagged)”

Caveats 6

  • The benign-firing rate of 29.3% limits practical deployment of the generic layer.
  • Only 52.4% of AgentDojo detections occur before the harmful step, reducing preventive usefulness.
  • Parametric refinements preserve most detection but still incur false-positives, and their benefit depends on trace fields that are often missing.
  • Scope. We measure whether an obligation fires on a recorded trajectory (detection under post-hoc replay), not live-agent attack success under an in-loop shield.
  • none of the three carries real timestamps (only call order), structured state transitions, or reversibility typing.
  • The result holds for the tested attack family only: an attacker who can forge a matching lookup call, or compromise the tool being queried, is outside its reach.

What’s new here 4

  • Applies offline MFOTL monitoring to existing agent-security benchmarks without running live LLM agents.
  • Quantifies detection and benign-firing rates for both generic and parametric temporal obligations across AgentDojo, STAC, and R-Judge.
  • Identifies and mitigates a provenance-poisoning attack that subverts history-dependent policies.
  • Proposes a twelve-field enforcement-ready trace schema to enable meaningful history-dependent monitoring.