AI Agents as a Third Identity Class: Why Service Accounts Aren't Enough for Autonomous Systems
AI Agents as a Third Identity Class: Why Service Accounts Aren't Enough for Autonomous Systems
Date: 04 November 2026
Executive Summary
Autonomous AI agents can interpret goals, select tools, retain context, delegate work, and take actions across systems. Treating them as ordinary service accounts creates a control gap: the credential may be identifiable, but the agent's intent, delegated authority, runtime state, and tool decisions are not adequately represented.
The security decision is straightforward: classify autonomous agents as a distinct identity class and govern them with controls that combine workload identity, human or system delegation, task-scoped authorization, tool-level policy enforcement, and tamper-resistant auditability. A service account may remain part of the implementation, but it should not be the entire security model.
Contents
- The Identity Model
- Architecture and Trust Boundaries
- Authorization and Policy Enforcement
- Threat Model and Failure Modes
- Observability and Operations
- Deployment Checklist
- Frequently Asked Questions
The Identity Model
Traditional enterprise access control commonly distinguishes between human identities and non-human identities. Human users authenticate interactively and receive permissions based on role, group, device, and context. Service accounts represent applications, jobs, or infrastructure components that act through relatively stable, pre-defined workflows.
Autonomous agents behave differently. They may be launched by a user, a schedule, an event, or another agent. They can decide which tools to call and in what order. Their behavior can vary based on retrieved data, model output, memory, environmental state, and tool results.
This does not mean an agent is a legal person or that every model invocation requires a new directory account. “Third identity class” is a security architecture model: an agent should be represented as an independently governed principal with links to its runtime, owner, delegator, task, tools, and policies.
A useful identity record separates at least these attributes:
- Agent identity: the registered agent, version, purpose, owner, and risk tier.
- Runtime identity: the workload instance executing the agent.
- Delegating identity: the human or system that authorized the task.
- Task identity: the bounded objective, input context, expiry, and requested capabilities.
- Tool identity: the specific connector, API, database, or action endpoint being invoked.
Architecture and Trust Boundaries
An agent system usually contains several trust boundaries. The model runtime may be separated from the tool gateway. Retrieval systems may contain data from different owners. Memory may persist beyond the original task. External APIs may impose their own authorization and rate limits.
A practical flow is:
- A user or trusted system creates a task.
- An orchestrator validates the agent, runtime, delegator, and task policy.
- The agent proposes a tool call.
- A policy enforcement point evaluates the proposed action.
- The tool gateway authenticates the request and applies downstream authorization.
- The result is returned to the agent and recorded with sufficient context for review.
The model should not be the final authority for access decisions. Model output is an input to policy evaluation, not a security assertion. The tool gateway or policy engine must independently validate the requested operation, target resource, data scope, and approval requirements.
Trust boundaries should be explicit. Treat retrieved documents, user-provided instructions, tool responses, and external web content as potentially untrusted inputs. Prompt instructions inside those sources should not be able to grant permissions, alter policy, or bypass approval gates.
Illustrative Agent Request
Illustrative example only: the following structure shows the context a policy service might receive. It is not a standard protocol.
{
"agent_id": "finance-reconciliation-agent",
"agent_version": "2026.11.2",
"runtime_id": "run-7f29",
"delegated_by": "user:analyst-184",
"task_id": "task-9921",
"requested_action": "create_payment",
"resource": "invoice:4821",
"amount": 7400,
"purpose": "reconcile approved invoice",
"expires_at": "2026-11-04T16:00:00Z"
}
Authorization and Policy Enforcement
Authentication answers, “Who or what is presenting credentials?” Authorization answers, “Is this principal allowed to perform this action on this resource?” Policy enforcement answers, “Where and how is that decision applied?” Auditability answers, “Can the organization later establish what happened, under which authority, and with what outcome?” These are related but separate controls.
A service account token can authenticate an agent while hiding the person or system that initiated the task. It can also allow every invocation to inherit broad permissions, even when an individual task needs only a narrow subset. This creates excessive privilege and weakens accountability.
Use layered authorization:
- Registration policy: approve the agent's owner, purpose, model configuration, tools, data sources, and risk tier.
- Delegation policy: bind each run to a user, service, event, or workflow that is allowed to request the task.
- Task policy: define the permitted operation, resource scope, duration, transaction limits, and required approvals.
- Tool policy: constrain endpoints, methods, parameters, data fields, destinations, and execution frequency.
- Downstream policy: retain native authorization at the target system instead of assuming the gateway decision is sufficient.
Authorization should be evaluated at the point of action, not only when the agent starts. A long-running agent may encounter changed permissions, new data, or a different target than originally intended.
Illustrative Policy
{
"agent": "finance-reconciliation-agent",
"allow": {
"action": "create_payment",
"resource_type": "invoice",
"max_amount": 5000,
"currency": "USD",
"required_state": "approved"
},
"deny": {
"external_destination": true,
"bulk_operations": true
},
"approval": {
"required_above": 5000,
"approver_group": "finance-controllers"
},
"ttl_seconds": 900
}
In this example, the agent is not authorized merely because it possesses a valid token. The policy evaluates action, resource state, amount, destination, and time. The approval rule is an application control, not a claim that a particular law or regulation requires this exact threshold.
Threat Model and Failure Modes
The threat model should include both compromised components and valid components behaving outside their intended scope. An agent may be manipulated by prompt injection, poisoned retrieval content, an overly permissive tool description, a compromised connector, stolen runtime credentials, or an incorrect model decision.
Common failure modes include:
- Confused deputy: an agent uses its broad service-account access to perform an action the delegating user could not perform.
- Privilege accumulation: tools and permissions are added over time without removing obsolete access.
- Indirect prompt injection: untrusted content causes the agent to disclose data or invoke an unrelated tool.
- Cross-task contamination: memory or context from one user or task influences another task.
- Replay: a previously approved action is submitted again after the original task has expired.
- Parameter abuse: a permitted tool is called with an unsafe destination, quantity, query, or data range.
- Audit ambiguity: logs show a service account but not the agent version, delegator, task, prompt context, or approval chain.
Risks and Mitigations
| Risk | Why Service Accounts Are Insufficient | Mitigation |
|---|---|---|
| Unclear accountability | The credential identifies a workload, not the initiating authority or task. | Record agent, runtime, delegator, task, approval, and tool identities. |
| Excessive privilege | Every task inherits the account's static permission set. | Use task-scoped, time-limited capabilities and resource constraints. |
| Prompt injection | Credential validity does not distinguish trusted instructions from untrusted data. | Separate data from control input and enforce policy outside the model. |
| Unsafe tool use | API-level authorization may not validate semantic parameters. | Inspect methods, destinations, quantities, fields, and transaction state. |
| Replay or runaway execution | Long-lived credentials remain usable after the original intent changes. | Apply expiry, idempotency keys, budgets, rate limits, and cancellation. |
Observability and Operations
Agent audit records should be designed around decisions and actions, not only application errors. At minimum, capture the agent identifier and version, runtime identifier, task identifier, delegating identity, policy version, tool name, target resource, requested parameters after sensitive-field filtering, decision, approval reference, result, timestamp, and correlation identifier.
Do not log secrets, full credentials, or unrestricted sensitive prompts by default. Instead, record hashes, classifications, redacted excerpts, and references to controlled evidence stores where appropriate. Retention should reflect business, security, privacy, and legal requirements rather than an invented universal period.
Operational controls should include a kill switch, credential revocation, tool disablement, task cancellation, concurrency limits, spend or transaction budgets, anomaly detection, and periodic access reviews. The ability to stop an agent must not depend on the agent cooperating.
Monitor for changes in tool selection, unusual resource access, repeated denials, policy bypass attempts, sudden increases in execution volume, and actions inconsistent with the task purpose. A successful API response is not proof that the action was appropriate.
Deployment Checklist
- Register each production agent with an owner, purpose, version, risk tier, and approved tool inventory.
- Assign a distinct workload identity to each runtime or deployment boundary.
- Bind every run to a delegating user, system, event, or approved workflow.
- Issue short-lived, task-scoped authority instead of relying on broad static credentials.
- Place a policy enforcement point between the agent and every consequential tool.
- Validate semantic parameters, destinations, quantities, data scopes, and transaction state.
- Require human or system approval for defined high-impact actions.
- Prevent untrusted content from changing tools, permissions, or policy.
- Apply expiry, idempotency, rate limits, budgets, cancellation, and replay protection.
- Log decisions and actions with agent, runtime, delegator, task, tool, and policy context.
- Test prompt injection, confused-deputy behavior, data leakage, and connector compromise.
- Review permissions, model versions, prompts, tools, and audit events on a defined cadence.
Frequently Asked Questions
Does every AI agent need its own directory account?
No. The required representation depends on the architecture. However, each agent should have a distinct governable identity record, and each runtime should be attributable to that record.
Can an agent still use a service account?
Yes. A service account can authenticate the runtime or tool gateway. It should be combined with delegation, task context, policy checks, and downstream authorization.
Is the model itself an identity?
Usually not. The model is a component that produces proposals. The governed principal is the agent deployment and its runtime, linked to its owner, configuration, and delegated task.
Where should authorization decisions be made?
Use layered decisions. The orchestrator can validate task creation, the policy enforcement point can validate tool calls, and the target system should enforce its own native authorization.
How should prompt injection affect access control?
It should be treated as untrusted input that can influence model behavior but cannot grant authority. Tools must independently evaluate the requested action and parameters.
What should be included in an agent audit trail?
Record who or what delegated the task, which agent and runtime acted, which policy version was used, which tool and resource were targeted, what decision was made, and what result followed.
Is a human approval step always required?
No. Approval requirements should be based on impact, reversibility, data sensitivity, transaction value, and organizational risk tolerance. Low-risk actions may be automated with strong policy controls.
Conclusion
Autonomous agents are not merely applications with better interfaces. Their ability to interpret goals and choose actions changes the security problem. Service accounts remain useful implementation primitives, but they do not express delegation, intent, task scope, runtime state, or agent-specific accountability.
Organizations preparing for autonomous systems should establish an agent identity class now, then enforce authorization at every consequential tool boundary. The result is a security model that can explain not only which credential acted, but why the action was allowed, under whose authority, within which limits, and with what evidence.
Use AXEC for governed AI-agent security, and schedule a 30-minute meeting to discuss your architecture and control requirements.