Thomas de Keyser, Portrait of Constantijn Huygens and his (?) Clerk, 1627: a young man hands a letter to Huygens at his desk.

An engineer asks an agent to investigate a failed deployment.

It reads the incident ticket, checks the logs, finds a plausible explanation and proposes a rollback. A second agent, responsible for releases, receives the proposal and executes it. The deployment goes green.

Later, somebody discovers that the rollback restored an old authentication configuration. The logs show two authenticated service accounts, two successful authorization checks and an incident marked as resolved.

There isn’t even an unauthorized API call to investigate.

This is a fictional incident. What makes it interesting is how ordinary the infrastructure looks.

The permission to investigate

In November, Bruce Schneier wrote about AI systems hacking other systems without necessarily being malicious. Earlier this year, Schneier and his co-authors described prompt injection as the beginning of a longer attack chain, rather than the whole security problem.

Both arguments become particularly interesting once you put an agent inside an existing backend.

Consider two capabilities:

investigator: read_logs, read_ticket, request_release_action
release_agent: rollback, deploy

The investigator has no deployment credentials. The release agent does. Separating them looks sensible until you inspect the interface between them.

If the release agent treats a message from the investigator as sufficient authority to roll back production, the investigator effectively has an indirect rollback capability. A ticket author may be able to influence it. Even without an attacker, the investigator might simply misunderstand its assignment.

This is an old problem with a new interface. In 1988, Norm Hardy described the confused deputy: a program with authority of its own can be induced to exercise that authority on behalf of someone who lacks it.

A 2026 survey of agentic AI vulnerabilities by Andrey Kovalev and Claire Guan identifies precisely this kind of authority laundering across agent boundaries.

The new complication is that the deputy receives requests written in prose, reasons about them, and may compose entirely new requests of its own.

A permission needs a history

Imagine that the incident workflow starts with the following grant, created by a trusted service after authenticating the engineer:

{
  "task": "incident-421",
  "principal": "oncall-engineer",
  "actions": ["logs.read", "ticket.read", "rollback.propose"],
  "resource": "payments-prod"
}

The model can suggest actions. It cannot change this grant.

When the investigation agent asks the release agent to execute a rollback, the release service should receive the original task’s authority through a trusted channel, alongside the proposed operation. It should not reconstruct that authority from whatever the investigator happened to write.

The effective permission is the intersection of the original grant, the receiving service’s privileges, and the current resource policy. There is no rollback execution permission in this example. The proposal can be recorded, but the operation needs a separate authorization.

A real implementation needs authenticated delegation, audience and resource binding, expiration, and a way to prevent replay. A task ID printed in an LLM response is not a credential.

There is also a second problem: what exactly did the engineer approve?

Suppose a rollback is approved while version 42 is running. During the next ten minutes, somebody deploys version 43. The agent retries the original operation. Depending on the implementation, an instruction to roll back one version now means something different.

For consequential operations, an approval should bind to the specific target, expected current state and proposed change. The executor should check those conditions atomically where possible, consume an appropriately scoped approval and use an idempotency key for retries.

Otherwise an approval can survive the circumstances that made it reasonable.

What would the test look like?

We tend to evaluate agents by asking whether they complete a task. A security evaluation should also ask whether the same task gives them an opportunity to acquire authority they were never assigned.

Start with a synthetic incident environment. Hold the authenticated grant fixed and vary the ticket text, retrieved documents, subagent messages and tool responses. Try ordinary ambiguities as well as hostile instructions. Delay execution until the deployment state changes. Retry requests.

The property to test is that no variation can produce an effect outside the original grant unless an independently authorized transition extends it.

An important distinction: the policy engine can verify the scope of an effect. It cannot establish that every permitted effect is a sensible response to the user’s intent. An unnecessary but permitted read might still leak information through a later output. Information-flow controls and narrower task grants matter, too.

The research is beginning to address that remaining gap. AttriGuard, presented at USENIX Security 2026, uses counterfactual agent executions to investigate whether proposed tool calls depend on untrusted instructions. That’s a promising additional signal, not a replacement for enforcement outside the model. Trail of Bits’ audit of the Comet browser agent is a practical reminder of what happens when data from one context influences operations in another.

None of this requires deciding whether an agent is intelligent, malicious or aligned.

The ticket was closed. The deployment was green. Every credential was valid.

The interesting question is still who authorized the rollback.


Cover: Thomas de Keyser, Portrait of Constantijn Huygens and his (?) Clerk, 1627. National Gallery, London. Public domain, via Wikimedia Commons. Resized for the web; full composition retained.