← Blog

AI Agent Privilege Escalation Starts With Delegation

Agent privilege escalation appears when an agent receives authority broader than the user, workflow, or tool invocation requires. The operational fix begins with bounded delegation, per-action authorization, short-lived credentials, and evidence that preserves who requested an LLM action and which policy allowed it.

ByParminder Singh· Founder & CEO, DeepInspect Inc.
Problem-Awareai-securityai-agentsidentityauthorizationzero-trust
AI Agent Privilege Escalation Starts With Delegation

An agent receives a calendar request, opens a connected tool, and inherits a standing role that can also alter vendors, export records, and approve payments. The dangerous transition happens in the delegation chain. A legitimate request reaches an identity with authority that exceeds the request.

I want to separate the permissions problem from the model call, because they need different controls. A silver service-account badge on an architecture diagram can conceal several human principals, a workflow, and a tool grant behind one identity.

TL;DR

  • Agent privilege escalation begins when delegated authority exceeds the requested action.
  • Every tool call needs a bounded principal, scope, expiry, and decision record.
  • Local execution and credential theft need endpoint and identity controls.
  • HTTP LLM traffic needs request-time policy tied to the originating identity.

Delegation creates the escalation path

NIST's agent identity work frames the problem around agent identity, delegated authority, and action lineage. Its AI agent identity and authorization project puts the hard question in the right place: which principal authorized this action, under which conditions?

A broad agent role turns every later instruction into a potential privilege boundary. A support agent with permission to read a ticket may need a narrow call to summarize its text. It does not need permanent authority to download every attachment in the tenant. A purchasing agent may assemble a draft order. Its approval path needs a separate policy decision tied to the person and spending rule behind that request.

My opinion is blunt: “agent permissions” is too vague for a production security review. Review the authority that crosses each tool boundary instead. The named actor, task, resource, operation, and expiry belong in the design record.

Agent-to-agent authorization is particularly sensitive because a relay agent can obscure the original principal. Preserve the origin identity when one agent asks another to invoke an LLM or tool.

A narrow authority model

Start with a task-scoped delegation object. It should identify the originating user or workload, the agent receiving the delegation, the exact resource class, allowed operations, and a short expiration. The policy engine evaluates that object at execution time rather than treating an agent registration as blanket approval.

The NIST zero trust architecture describes continuous evaluation around an enterprise resource. That pattern fits agents well. Access is a decision for a specific request, not a property conferred by a friendly agent name.

Use three practical checks:

  • Bind the originating principal to every delegated request, including calls relayed through another agent.
  • Separate draft, submit, approve, and export operations into distinct policy actions.
  • Record the policy version, requested operation, target route, and outcome before the action proceeds.

An AI agent tool permissions inventory gives security teams a place to find broad scopes before an incident forces that work into a weekend.

The HTTP AI control point

DeepInspect controls HTTP traffic between authenticated users or agents and LLMs. At that boundary, an application can supply origin identity, role, requested operation, data classification, and model route. DeepInspect evaluates the request against policy, allows or blocks the LLM call, and creates a per-decision audit record.

That is a credible control for a delegated agent asking an LLM to summarize a customer record, generate a response, or use a model route under a particular role. The record can show that the relay agent made the request for a named origin principal under a policy version.

DeepInspect sits beside, rather than inside, local execution. Sandbox escapes, process isolation, tool binaries, credential theft, and direct API abuse using a stolen key sit outside the HTTP LLM traffic boundary. Endpoint hardening, workload identity, secrets management, network controls, and approval systems handle those adjacent risks.

Evidence makes delegation reviewable

The useful incident artifact is a sequence, not a screenshot. It should connect the origin principal, delegated agent, request purpose, policy decision, LLM route, and response disposition. That sequence lets an investigator distinguish a permitted handoff from an agent using authority that belonged to a different task.

CISA's Secure by Design guidance asks software manufacturers to take ownership of customer security outcomes and demonstrate accountability. For agent builders, that obligation shows up in mundane places: a token issuer, a tool allowlist, an approval route, and the audit record written when policy is evaluated.

A developer should be able to point at one teal line on a request-flow diagram and say, “this is the moment delegated authority was checked.” If nobody can identify that point, the permission model is still descriptive rather than enforceable.

DeepInspect

DeepInspect provides the HTTP AI policy point for authenticated users and agents calling LLMs. It evaluates application-supplied identity context with data classification, route, and policy rules before the request reaches the model, then preserves the decision evidence for review.

That boundary complements task-scoped delegation and tool authorization. It gives security teams a request-time control for LLM use while endpoint, identity, and secrets systems govern local execution and credential handling.

Book a demo today.