← Lab /AI/ML

Contextual security properties reveal utility-security tradeoffs in LLM agents

Existing LLM agent attack definitions miss contextual factors, and a formal framework can capture these contexts

AI/ML arXiv 19 Mar 2026 Theory Theory Threat model

Published as “A Framework for Formalizing LLM Agent Security”

Why it matters

The framework provides a unified vocabulary and clear criteria for evaluating and improving LLM-agent defenses, guiding future research toward more context-aware security mechanisms.

Summary

The paper proposes a formal framework that defines four contextual security properties (task alignment, action alignment, source authorization, data isolation) and a set of oracle functions to verify them, showing that many existing LLM-agent attacks and defenses can be recast as violations or approximations of these properties. The contribution is conceptual and not backed by empirical evaluation.

What they found 2

  1. A framework is presented that systematizes attacks and defenses from a contextual security perspective.

    “We present a framework to systematize attacks and defenses for LLM agents from a contextual perspective, centered on a formal definition of execution context Ct.”

  2. Four security properties and associated oracle functions are introduced to capture contextual authorization requirements.

    “We introduce four security properties that correspond to the four authorization-relevant components of Ct, along with oracle functions that formalize what information defenses must approximate to achieve contextual authorization.”

Caveats 5

  • The operational definition of instructions relies on causal attribution that is currently infeasible, limiting practical applicability.
  • The authors acknowledge that the four properties are not proven sufficient; future attacks may require additional properties.
  • Operational definition of instructions: Our framework defines instructions operationally through I: an input is an instruction if it caused an action. However, this operational definition has limitations: it cannot be evaluated without solving causal attribution, it treats instruction-ness as binary when influence is continuous, and linguistic definitions fail because whether text functions as an instruction depends on context.
  • We do not claim the four properties are formally complete or axiomatically derived.
  • Scope and applicability: Our framework applies to synchronous agents that await observations before proceeding. Agents with different execution models may require modified property definitions and tracking.

What’s new here 4

  • Formalizes contextual security for LLM agents via four explicit properties tied to the execution context.
  • Introduces oracle functions that specify the ideal information needed to check each property.
  • Reformulates a wide range of known attacks and defenses as property violations or approximations.
  • Identifies systematic gaps in current defenses, such as missing instruction attribution or source provenance.

Threat model stated by the source

AdversaryAttackers who can inject malicious inputs (prompts, observations, memory records) and observe agent trajectories.
CapabilityCraft malicious user prompts, inject content into tool outputs, poison persistent memory, and monitor actions and environment state.
AssumesAgents follow a synchronous, turn-based execution model.; Standard authentication and access-control infrastructure is in place but may be insufficient for agent-specific threats.