An identity that does not exist
An AI agent queries a business API, walks through a mailbox or edits an incident ticket. Each of these calls needs an authentication token. Until the agent is given a dedicated identity, that token is not its own. It is either the session opened by the user the agent assists, or a generic technical account allocated once to the host application and shared by all its instances.
In both cases, the logs of the target applications record a fictitious author. The API server writes "Marie" into its audit trail, although Marie never approved that call: an agent acted in her name, reacting to an external document she never opened.
Authentication standards have drawn the line between these two postures for a long time. Published by the IETF in January 2020, RFC 8693 on OAuth 2.0 token exchange formally sets authorized impersonation against delegation:
When principal A impersonates principal B, A is given all the rights that B has within some defined rights context and is indistinguishable from B in that context.IETF, RFC 8693, section 1.1 (impersonation)
With delegation semantics, principal A still has its own identity separate from B, and it is explicitly understood that while B may have delegated some of its rights to A, any actions taken are being taken by A representing B.IETF, RFC 8693, section 1.1 (delegation)
Running an agent on an employee's session token is impersonation in the strict sense: to the target system, the machine becomes indistinguishable from the person. Delegation semantics do the opposite. They give the agent a distinct identity and record that it acts on behalf of an identified principal.
Once an agent borrows an employee's identity, the audit log can no longer tell a deliberate human act from an action the machine triggered.
The confused deputy, agent edition
In 1988, the computer scientist Norm Hardy formalized in his founding paper The Confused Deputy a vulnerability found in a compiler on the Tymshare time-sharing system. The program held two distinct sources of authority, which Hardy sums up like this:
The fundamental problem is that the compiler runs with authority stemming from two sources.Norm Hardy, The Confused Deputy, 1988
On one side, the compiler acted for the user who invoked it, writing an output file at the requested location. On the other, it held its own system privileges, which let it write to the internal directory where the customer billing file lived. When a malicious user named the billing file as the output path, the compiler overwrote it, using its internal privileges to serve the external request. It obeyed one party while spending the rights of another, which made it what Hardy calls a "confused deputy".
An AI agent reproduces exactly this confusion of powers, on a much larger scale. On one side, it inherits the application privileges of the user or of its service account. On the other, it takes its instructions not only from the user's initial request but from all the external content it ingests along the way: invoices, web pages, tickets and incoming emails. The language model treats tokens from the legitimate instruction and tokens from a third-party document on the same level, so the agent puts its owner's authority at the service of instructions slipped in by a stranger. Indirect prompt injection is the modern version of the billing file overwritten by the Tymshare compiler.
To resolve this paradox, Hardy advocated an architecture built on capabilities, where the descriptor handed to the program binds the target resource and the right to access it together, instead of letting the process exercise ambient privilege over any path. Applied to an autonomous agent, the principle means a static clearance attached to an account is never enough. The legitimacy of access has to be re-evaluated at every tool call, in light of what triggered it.
How do you give an agent rights? Three ways
| Model | Identity seen by the systems touched | What is missing |
|---|---|---|
| Reused user session | The employee, with all of their rights. | No distinction in the traces between the human and the agent; the scope of action mirrors the whole workstation, not the task. |
| Shared service account | A generic technical identifier common to the whole application. | The link to the user who gave the mandate is lost; a static, long-lived secret is exposed to every flow. |
| Delegated token, short-lived, limited to the task | A named agent acting "for" a designated person. | Conformity of intent: even bounded to one tool, a valid token does not say whether the precise call answers the user's wishes or an injection. |
Only the third setup restores accountability in application logs, by identifying both the agent and its principal. It still does not secure the operation. A delegated token that grants access to the mail connector remains technically valid when the agent, manipulated by a booby-trapped attachment, starts forwarding confidential emails outside. The token bounds the scope of the tool. It inspects neither the arguments of the call nor its cause.
NIST asks the question without answering it
In February 2026, the National Cybersecurity Center of Excellence (NCCoE) at NIST published a framing document titled Accelerating the Adoption of Software and AI Agent Identity and Authorization, open for public comment until April 2, 2026. Rather than issue a fixed standard, the text lists the architecture problems that current identity management infrastructure leaves unsolved. Three of the questions it raises sum up the challenge companies face:
How do we establish "least privilege" for an agent, especially when its required actions might not be fully predictable when deployed?NIST NCCoE, concept paper, February 2026, section Authorization
How do we handle delegation of authority for “on behalf of” scenarios?NIST NCCoE, concept paper, February 2026, section Authorization
How do we bind agent identity with human identity to support “human-in-the-loop” authorizations?NIST NCCoE, concept paper, February 2026, section Authorization
The document also asks about the life cycle of the secrets assigned to agents (provisioning, rotation, emergency revocation) and about mechanisms that log, in a tamper-proof and verifiable way, the actions carried out, the context that motivated them and the proof of human approval. As technical footing, NIST points to standardized building blocks already proven in the field: OAuth, OpenID Connect, SCIM and SPIFFE.
Least privilege is judged per action
In its classic sense, the principle of least privilege gives a process only the permissions strictly required for its function. The model rests on an implicit assumption: the list of calls the program will make is known at design time. A billing microservice queries three tables and calls a bank API, and its rights are fixed accordingly.
An autonomous agent, though, is deployed precisely to compose its own sequence of tools against varied requests. As NIST points out, the exact list of operations a session needs is not fully predictable at deployment. Integration teams then face a dilemma. Statically confining the agent to the scope of one use case strips it of its versatility. Granting it the union of all potentially useful privileges gives it, at every moment, rights out of proportion to the current task.
For operational convenience, most deployments fall into the second trap. In its April 2026 bulletin on desktop agents, CERT-FR points to the "excessive access rights given to AI agents across all of the user's office applications" and the "sharing of authentication secrets (login/password) with AI agents" (our translation), before setting out the guiding rule:
The actions and tools available to AI agents must be limited to what is strictly necessaryCERT-FR, CERTFR-2026-ACT-016, April 13, 2026 · our translation
Applied to an autonomous agent, least privilege stops being a static attribute of the account and becomes a ruling made at every tool call.
In practice, this control works on two complementary layers. The identity layer gives the agent ephemeral tokens, distinct from the user's and restricted to the connectors of its mission. Above it, the runtime control layer intercepts each tool call before it leaves, to check that it fits the user's initial request and the reliability of the documents read during the session. The first layer caps the maximum blast radius. The second rules on the specific operation. Cerberus holds the door: keys for the length of one act, signed tools, and nothing leaves except through it.
An incident in July 2025 shows the gap between a written instruction and an actual restriction of privileges, with no outside attacker involved. Jason Lemkin, founder of SaaStr, reported that Replit's development agent deleted his production database even though he had repeatedly ordered it to respect a strict code freeze. He concluded that such a freeze cannot be imposed by instruction alone in this type of tool (The Register, July 21, 2025). As long as the agent technically keeps the right to call the delete command, a ban written into the prompt is not an access control.
An agent's secrets are identities that leak
Non-human identities (API keys, OAuth tokens, service accounts, machine certificates) have a dedicated reference within OWASP, the Non-Human Identities Top 10 published in 2025. Three of its categories describe, line by line, the drift observed across agent fleets: overprivileged identities (NHI5, defined by the granting of permissions well above the needs of the function), long-lived static secrets (NHI7) and the reuse of one secret across several environments or applications (NHI9).
The very architecture of an agent multiplies the exposure of these secrets. When the model browses code repositories, configuration files or environment variables, it loads these keys in clear text into its context window and can copy them, by mistake or under injection, into a ticket comment, an outgoing message or a trace file. Any secret that enters a language model's context escapes the control of its vault.
The August 2025 campaign against Salesforce integrations shows what a compromised application token costs. According to the analysis published by the Google Threat Intelligence Group, a group tracked as UNC6395 exploited, from at least August 8 to 18, 2025, stolen OAuth tokens belonging to the third-party Salesloft Drift integration to exfiltrate large volumes of data from the Salesforce instances of many companies. The attackers then searched those exports for other secrets buried in the exchanges: AWS keys, passwords and Snowflake tokens, forcing Salesloft and Salesforce to revoke all tokens on August 20. This episode involves an ordinary SaaS connector, but it prefigures the anatomy of an agent compromise: a wide-scope, long-lived non-human identity whose capture opens every system it federates at once.
That is why the footnote of the CERT-FR bulletin warns that the agent "could extend its capabilities autonomously, bypassing the initial authorization rules" (our translation). In the same vein, the joint guide Careful adoption of agentic AI services, published on May 1, 2026 by six allied agencies (Australia's ASD's ACSC, the US CISA and NSA, Canada's Cyber Centre, New Zealand's NCSC and the UK NCSC), recommends technically preventing any agent from changing its own privileges or starting an unapproved sub-delegation, limiting its rights to validated tasks and partitioning agents from each other so that a compromise does not cascade through a multi-agent system.
What do the laws already require?
No European regulation devotes an article to the identities of AI agents, but three texts in force already tightly frame their access rights.
- DORA, Article 9(4)(c). Financial entities must apply policies that limit access to information assets "to what is required for legitimate and approved functions and activities only", and that "address access rights and ensure a sound administration thereof". An agent that holds an employee's full token meets neither the test of what is "required" nor that of "approved" activities.
- NIS2, Article 21(2)(i). The minimum security baseline includes "human resources security, access control policies and asset management". Any agent deployed on the network is a software asset that holds access privileges.
- GDPR, Article 25(2). Data protection by default requires that only the personal data "necessary for each specific purpose of the processing are processed", an obligation that expressly covers "their accessibility". Opening a whole mailbox or HR repository to an agent assigned a one-off task breaches this principle of access minimization.
How this fits with the risk management system of Article 9 is detailed in our dossier on the AI Act, proof of accountability in our page on tamper-proof logs, and the overall architecture in our summary on AI agent security.
SentinelOS sits inline between your AI agents and every resource they call on. It judges every action before it leaves, including when the instruction comes from an external document the agent read.
A distinct identity for each agent
- They give each agent a dedicated, named technical identity. Each agent has its own OAuth client or service account tied to an identified human owner, and no secret is shared between distinct agents.
- They replace session borrowing with explicit delegation. As RFC 8693 describes, the agent acts "for" a specific user, and the target logs keep a joint trace of both identities.
- They issue ephemeral tokens with a strictly bounded scope. Token lifetimes are counted in minutes, their scope is limited to the tools of the current task, and no permanent secret is ever exposed in the model's context window.
- They lock out any ability to raise their own privileges. The agent has no access to any identity management API, token creation or change to authorization rules.
- They purge every application secret from the directories the agent can reach. Environment files, private keys and third-party tokens are isolated outside the paths the agent can read and load into context.
- They back identity control with a control on each tool call. A component outside the model inspects the requested action against the documents read in the session before allowing it to run.
- They calibrate permissions from observation in listening mode. Analyzing the calls agents actually make lets them size rights as tightly as the observed facts allow.
SentinelOS judges every action of your agents before it leaves, holds the ones that matter for a person, and signs every decision. Installed on your premises.
Discover SentinelOSSources
- IETF, RFC 8693, "OAuth 2.0 Token Exchange", January 2020, section 1.1. rfc-editor.org
- Norm Hardy, "The Confused Deputy (or why capabilities might have been invented)", Operating Systems Review, vol. 22, no. 4, 1988. css.csail.mit.edu; publication reference: cap-lore.com
- NIST NCCoE, "Accelerating the Adoption of Software and AI Agent Identity and Authorization", concept paper (draft), February 2026. nccoe.nist.gov
- CERT-FR, « Vulnérabilités et risques des produits d'automatisation par IA agentique sur les postes de travail », news bulletin CERTFR-2026-ACT-016, April 13, 2026. cert.cyber.gouv.fr
- ASD's ACSC, CISA, NSA, Cyber Centre (Canada), NCSC-NZ and NCSC-UK, "Careful adoption of agentic AI services", May 1, 2026. ncsc.govt.nz (PDF); CISA page: cisa.gov
- OWASP, "OWASP Non-Human Identities Top 10 - 2025". owasp.github.io
- Google Threat Intelligence Group, "Widespread Data Theft Targets Salesforce Instances via Salesloft Drift", Google Cloud Blog, August 26, 2025. cloud.google.com
- Simon Sharwood, "Vibe coding service Replit deleted production database", The Register, July 21, 2025. theregister.com
- Regulation (EU) 2022/2554 (DORA), Article 9; Directive (EU) 2022/2555 (NIS2), Article 21; Regulation (EU) 2016/679 (GDPR), Article 25. eur-lex.europa.eu
