CaMeLoT: CaMeL orchestrated with Temporal logic for static verification and liveness
Elia Nikolaou, Magnus Wiik Eckhoff, Robert Flood, Gudmund Grov, Vasileios Mavroeidis, David Aspinall
Abstract
LLM-based agents generate and execute multi-step plans that invoke external tools which can access private data or execute commands. In this setting, security is a property of the entire execution that a plan creates, not just any single step. The plan itself is a critical artefact that captures the tool calls, control flow, and data dependencies. We present CaMeLoT, a complement to CaMeL, an existing defence against prompt injection in tool-using LLM agents. CaMeLoT extends CaMeL by adding a static verification layer that checks an agent's plan before any tool is invoked. CaMeLoT translates a generated plan into a finite-state transition system, labels it with tool calls, provenance and taint information, and checks it against temporal policies expressed in CTL using the nuXmv model checker. Because verification happens before execution, unsafe plans are rejected without using LLM calls or tool calls, saving tokens that runtime could have cost, as well as the need to unwind changes or teardown temporary sandboxes. When a verification fails, the model checker returns a counterexample to give feedback to the agent to repair the plan. We evaluate CaMeLoT on policies derived from the AgentDojo benchmark, SOC workflows, and prompt-extraction experiments, showing that it verifies a broad class of temporal properties before execution while preserving CaMeL's runtime-checkable coverage.
Create a lesson
Metadata
- Categories
- cs.CR, cs.LO
- Comments
- Accepted at CAMLIS 2026 (Conference on Applied Machine Learning in Information Security)
Related papers
TraceLift: Execution-Distilled Binary Deobfuscation via Temporal Waypoint Repair and Two-Link Verification
Shared title terminologycs.CRJunsheng Fu, Shuangshuang Gao
Canopy: Automatic Symbolic Verification for Large-Scale Security Protocols
Shared title terminologycs.CRZiyu Mao, Minghao Li, Daqian Ding et al.
Entropy Bounded Secret Key Generation in a Live 5G NR Stack Guard-Band Extraction and an Emulated Channel Operating Envelope
Shared title terminologycs.CRSachinkumar B. Mallikarjun, Hans D. Schotten
Trust and Verification in the New Data Economy
Shared title terminologycs.CRPablo D. Azar, Shafi Goldwasser, Ankur Moitra et al.
Quantum Authentication: Security against Authentication and Verification Queries
Shared title terminologycs.CRShaoquan Jiang
What the Model Cannot See: Name-Based Trust Lets Unverifiable Sanitizers Silence True Alerts in LLM-Based Static-Analysis Triage
Shared title terminologycs.CRZhiHong Liu, Shanhao Cao, Xiuli Ma et al.