← Latest papers
💻 computer science

Context-to-Execution Integrity for LLM Agents

This paper introduces Context-to-Execution Integrity (CXI), a system that secures LLM agents by enforcing strict authority checks on protected sink fields, payloads, and invocation events to ensure that only actions with binding field, effect, and invocation authority are executed, thereby achieving zero observed security escapes across diverse benchmarks.

Original authors: Igor Santos-Grueiro

Published 2026-07-08
📖 5 min read🧠 Deep dive

Original authors: Igor Santos-Grueiro

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a highly skilled but gullible assistant (the AI agent) who is trying to get things done for you, like sending emails, editing files, or running code. This assistant reads a massive notebook filled with instructions, notes, and messages. The problem is that a clever trickster (the attacker) can sneak notes into that notebook, trying to trick the assistant into doing something dangerous, like deleting a database or sending money to the wrong person.

The paper introduces a system called Context-to-Execution Integrity (CXI). Think of CXI as a super-strict security guard standing at the door of the "Action Room." Its job isn't to read the whole story or decide if the task is a good idea; its job is to check if the assistant has the specific, valid keys to open the door for this specific action.

Here is how it works, using simple analogies:

1. The Problem: "Authority Laundering"

Usually, if the assistant reads a note in the notebook that says, "The file failed, so run the delete_all command," it might just do it. The paper calls this Authority Laundering. It's like a thief taking a legitimate-looking ID card (the note about the file failure) and trying to use it to open a bank vault (the delete command). The note explains why something happened, but it shouldn't have the power to make something happen.

2. The Solution: The Three-Part Security Check

CXI acts as a gatekeeper. Before the assistant can actually do anything (like write a file or send an email), the gatekeeper checks three things. All three must match the same specific plan (called a "Manifest").

  • Check 1: The "Who" (Field Authority)

    • Analogy: Imagine the assistant wants to write a letter to a specific person. The note in the notebook might say, "Send to Bob." But the security guard checks: "Did a trusted boss or a verified system actually say 'Send to Bob'?"
    • If the name "Bob" just came from a random note the attacker wrote, the guard says NO. The name must come from a "Typed Release"—a special, verified slip of paper that says, "Yes, this specific name is allowed for this specific field."
  • Check 2: The "What" (Effect Authority)

    • Analogy: Imagine the assistant wants to apply a patch to a computer program. The note says, "Apply this code." The guard checks: "Does this code actually do what we think it does?"
    • The guard doesn't just look at the words; it looks at the result. If the code is a "patch," the guard verifies exactly what changes it will make to the system. If the attacker tries to sneak in a command that looks like a patch but actually deletes files, the guard catches it because the "effect" doesn't match the authorized plan.
  • Check 3: The "When" (Invocation Authority)

    • Analogy: Imagine the assistant wants to press the "Go" button. The guard checks: "Does the assistant have a valid ticket to press the button right now?"
    • Even if the name and the plan are correct, the assistant needs a specific "capability" or ticket to trigger the action. If the attacker tries to trick the assistant into pressing the button twice or at the wrong time, the guard says NO because the ticket is missing or expired.

3. The "Manifest" (The Master Plan)

The paper calls the final approved plan a Manifest. Think of this as a contract.

  • The assistant proposes an action.
  • The guard checks the "Who," "What," and "When."
  • If all three match perfectly and are tied to the same contract, the guard stamps the contract and hands the assistant a "Lease" (permission) to execute.
  • If even one part is missing or doesn't match (e.g., the name is right, but the "When" ticket is wrong), the guard shuts the door.

4. What About the "Bad" Notes?

The paper notes that the assistant can still read the attacker's notes.

  • Opaque Data: If the attacker writes, "The system is broken," the assistant can copy that text into a "Comment" or "Evidence" box. This is like putting the note in a glass display case. It's visible for humans to read, but it has no power to open doors or trigger actions. It's just data, not a key.

5. What Did They Test?

The authors tested this system in a few ways:

  • Live Simulations: They used a "dojo" (a training ground) with 720 real-life scenarios where attackers tried to trick agents. The system blocked every single unauthorized action.
  • Code Agents: They tested agents that write code. Even when attackers tried to inject bad commands, the system only allowed actions that had the correct "keys."
  • Result: In all the tests, zero unauthorized actions got through the gate. The system successfully stopped "authority laundering."

Summary

CXI is a system that stops AI agents from being tricked. It ensures that just because an AI reads a dangerous instruction in a note, it doesn't mean it has the power to do it. The AI can only act if a trusted system explicitly gives it the specific keys for that specific job, at that specific time. It turns the AI from a gullible reader into a disciplined worker who only follows verified orders.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →