Zero Trust for AI Applications

Zero Trust is becoming another label teams attach to an AI architecture after putting the agent behind an API gateway. The agent authenticates once, enters the trusted network, and every tool call after that inherits the same authority. That is the perimeter model with a newer diagram.
For AI applications, Zero Trust means no action inherits permission merely because the agent session is already running.
Verify the actor and the delegation
An agent call can involve a human subject, workload identity, tenant, and delegated task. Authenticate the workload, preserve who delegated authority, and bind the credential to the target audience. A shared service account erases the exact context Zero Trust needs.
Then evaluate the action itself:
const decision = await policy.evaluate({ subject: token.sub, actor: token.act?.sub, tenant: token.tenant_id, action: request.tool, resource: normalizeResource(request.arguments), task: request.taskId, risk: await risk.current(token.sub), }); The result should be short lived and specific. Do not cache an allow decision for a different resource simply because the tool name matches.
Assume the agent will encounter hostile input
Prompt injection is one reason continuous authorization matters. The content that influences a model may come from email, documents, websites, or another agent. Treat it as untrusted data. Keep credentials outside the model context and put a policy gate between generated tool calls and execution.
Segment tools by consequence. Reading public documentation does not need the same isolation as changing IAM policy. Use step-up authorization or human confirmation for high-impact actions, tied to the normalized operation rather than a vague session approval.
NIST SP 800-207 describes continuous evaluation and least privilege at a broader architecture level. For agents, that becomes workload identity, per-action policy, narrow tokens, device or runtime posture, and an audit trail connecting delegation to outcome.
Design for revocation
A Zero Trust decision is not continuous if an agent can keep using a copied credential after the task is cancelled. Keep access tokens short, propagate revocation to workers and long-lived connections, and stop queued steps when their parent grant ends.
Observe denied actions. A denied tool request may be a normal planning mistake, or it may show prompt injection attempting to expand authority. Repeated patterns should change risk and possibly end the session.
The takeaway is that Zero Trust is an execution model, not a network location. Verify the actor, delegation, context, and resource every time the agent crosses a tool boundary. The agent can remain useful without ever becoming permanently trusted.
Put the check next to the side effect
A gateway can authenticate the request and enforce coarse scopes, but it may not know whether a document is still owned by the tenant or whether the approval was revoked. The service that commits the state change should make the final authorization decision against current resource state. This is where zero trust becomes an implementation property instead of a network diagram.
For an asynchronous agent, carry a signed or integrity-protected task reference, not an indefinitely trusted authorization result. At execution time, resolve the task grant, check cancellation and expiry, verify the agent workload, then evaluate the requested action against the current resource. If a queue message says tenantId=acme, that value is a selector; the consumer must verify it against the authenticated producer and authorized task.
Zero trust also needs explicit outage behavior. If a policy service is unreachable, low-risk reads may use a bounded cached decision only if the business accepts the stale window. A payment, permission change, or cross-tenant action should fail closed when current authorization cannot be established. Record that result separately from a policy denial so operations can distinguish a risk decision from an availability problem.
References: NIST SP 800-207 Zero Trust Architecture, NIST SP 800-207A, RFC 9700 OAuth Security BCP.
Akash Devdhar is a Senior Software Engineer specializing in enterprise identity, authentication, authorization, and AI infrastructure. He writes about building secure AI systems using OAuth, OIDC, RBAC, and modern identity architectures.
原文:https://www.a8q9.cn/en/article/zero-trust-for-ai-applications-02472f.html