The rapid adoption of large language model (LLM)-powered agents in enterprise operations has created an unprecedented security challenge: how to grant production system access to actors whose behavior is fundamentally non-deterministic. Traditional access control systems were designed for two categories of actors: humans who authenticate through identity providers and make conscious decisions, and automated systems that execute predetermined logic. AI agents fit neither category cleanly. They reason, they adapt, they hallucinate, and they can be manipulated through adversarial prompts.
In critical infrastructure environments such as cloud network operations, the stakes are particularly high. A single misconfigured network device can cascade into regional outages affecting millions of users. An agent with excessive privileges can be prompt-injected into executing destructive commands. An agent without sufficient access cannot fulfill its operational mandate. This tension between operational necessity and security boundaries is the central challenge addressed in this work.
Existing approaches to AI agent security fall into two camps. The first treats agents as untrusted external entities, restricting them to read-only sandboxes that limit their operational value. The second grants agents the same elevated privileges as the humans they serve, creating unacceptable blast radii when agents malfunction or are compromised. Neither approach is viable at scale.
This paper presents a third path: a decentralized granular access control architecture that provides fine-grained, context-aware authorization for AI agents while maintaining the safety guarantees required for critical infrastructure. Our system has been deployed in production for eight months, governing access for 20+ specialized agents operating across hundreds of datacenters, and has maintained zero unauthorized write operations while enabling agents to autonomously resolve over 1,400 operational tasks.
This paper makes the following contributions:
Traditional automation systems (workflow engines, CI/CD pipelines, cron jobs) earned production access through a straightforward trust model: their behavior is deterministic, reviewable, and bounded. Given the same inputs, they produce the same outputs. Their source code can be audited. Their execution paths can be exhaustively tested.
AI agents violate every assumption in this model:
We ground our threat model in the OWASP Top 10 for LLM Applications (2025), focusing on the threats most relevant to agent-based systems operating in critical infrastructure:
| OWASP ID | Threat | Agent-Specific Manifestation | Our Mitigation |
|---|---|---|---|
| LLM01 | Prompt Injection | Adversarial data in incident descriptions triggering unauthorized commands | Input sanitization middleware, tool-level parameter validation |
| LLM02 | Sensitive Information Disclosure | Agent leaking infrastructure topology or credentials in responses | Output filtering, compound identity scoping |
| LLM06 | Excessive Agency | Agent executing write operations beyond its intended scope | Five-layer RBAC, deny-by-default for mutations |
| LLM10 | Unbounded Consumption | Agent entering infinite tool-calling loops consuming resources | Rate limiting, execution quotas, circuit breakers |
Our architecture distinguishes four distinct actor types, each with different trust properties and authorization requirements:
| Actor Type | Determinism | Identity Model | Write Access | Trust Basis |
|---|---|---|---|---|
| Human User | N/A (conscious) | Entra ID + MFA | Full (with elevation) | Authentication + training |
| AI Agent | Stochastic | User OBO + Agent MI | Read only (default) | Delegated + constrained |
| Service (STS) | Deterministic | Managed Identity | Scoped per service | Code review + CI/CD |
| Workflow/Playbook | Deterministic | System MI + Author | Scoped per playbook | Authored + approved + tested |
Playbooks represent a critical fourth actor class distinct from both AI agents and traditional services. A playbook is a deterministic, pre-authored workflow composed of discrete steps that execute infrastructure operations in a fixed sequence. Unlike AI agents, which reason dynamically about tool selection and parameters, playbooks follow authored logic that has been code-reviewed, tested, and approved before deployment. This determinism grants playbooks a higher trust level: they may hold scoped write permissions (e.g., restarting a service, modifying a configuration) that agents cannot obtain directly. In our architecture, AI agents that identify a remediation action delegate execution to an appropriate playbook rather than performing writes autonomously, creating an agentâplaybook escalation path that preserves both the agent's analytical capability and the playbook's safety guarantees. Each playbook runs under a compound identity combining a system-managed identity with the authoring engineer's identity, enabling full auditability of both the workflow definition and its runtime execution.
Six core security principles guide the architecture:
Authorization decisions traverse five distinct layers, each progressively narrowing the scope of permitted actions:
| Layer | Scope | Controls | Example |
|---|---|---|---|
| 1. Global RBAC | Platform access | Who can access the system at all | Security group membership required |
| 2. Tool Level | Service access | Which integrated tools/services are accessible | Agent X can access TopologyService but not DeviceProxy |
| 3. Function Level | Operation access | Which specific operations within a tool | Can call GetDeviceInfo but not UpdateConfig |
| 4. Parameter Level | Value constraints | What input values are allowed/denied | denyPattern: "prod-.*" on environment parameter |
| 5. Execution Context | Runtime constraints | Playbook-specific scoping, time windows | Only during active incident, max 10 devices |
The compound identity model is the cornerstone of our agent authorization approach. Rather than granting agents independent credentials with fixed permissions, each agent operation carries a composite identity that binds together:
This compound identity ensures that an agent can never exceed the permissions of its delegating human, while also being independently constrained by agent-specific policies. If a human lacks access to a particular production environment, their delegated agent inherits that restriction regardless of the agent's own role assignments.
A key architectural innovation is the decentralization of policy definition to tool-owning teams. Rather than maintaining a monolithic access control configuration, each infrastructure service team owns their authorization policy as a YAML file in a version-controlled repository:
This decentralized model provides several critical properties:
Write operations in critical infrastructure require escalating levels of authorization based on risk assessment:
| Tier | Authorization Level | Duration | Use Case | Agent Eligibility |
|---|---|---|---|---|
| Standard RBAC | Persistent role assignment | Indefinite | Read operations, diagnostics | Yes (read-only) |
| JIT/PIM Elevated | Time-bound elevation, MFA required | Max 8 hours | Config changes, maintenance | Via playbook only |
| Multi-Party Approval | 2+ approvers, break-glass protocol | Single operation | Production writes, device access | Cannot initiate |
Critically, AI agents are structurally excluded from initiating multi-party approval workflows. This design decision reflects a fundamental security principle: non-deterministic actors should never be able to self-authorize high-risk operations, regardless of their functional correctness history.
The following matrix defines the complete access surface across service categories and actor types:
Table 1 presents the complete access control matrix governing all actor-service interactions in production. The matrix encodes both the permission level (Read/Write) and the authentication mechanism required for each combination, reflecting the principle that non-deterministic actors require strictly narrower permissions than their deterministic counterparts operating on the same infrastructure.
| Actor | Telemetry & Observability | Corporate & DevOps Services | Platform Core Services | Device via Proxy | Direct Device Access |
|---|---|---|---|---|---|
| Human Operator (Deterministic intent) |
R STS MI + RBAC W STS MI + RBAC |
R STS MI + RBAC W STS MI + RBAC |
R AME/SAW W AME/SAW + JIT |
R AME/SAW + JIT W AME/SAW + JIT |
R BREAKGLASS W BREAKGLASS |
| AI Agent (Non-deterministic) |
R User OBO | Agent MI* W User OBO | Agent MI* |
R User OBO | Agent MI* W User OBO | Agent MI* |
R User OBO | Agent MI* W NOT ALLOWED |
R User OBO | Agent MI* W NOT ALLOWED |
NOT ALLOWED |
| Workflow Engine (Deterministic systems) |
R STS MI + RBAC W STS MI + RBAC |
R STS MI + RBAC W STS MI + RBAC |
R STS MI + RBAC W STS MI + RBAC |
R STS MI + RBAC W STS MI + RBAC |
NOT ALLOWED |
Legend: R = Read, W = Write. STS MI = Security Token Service with Managed Identity. AME/SAW = Azure Managed Environment / Secure Admin Workstation. JIT = Just-In-Time elevation. OBO = On-Behalf-Of delegation. * = Subject to per-tool RBAC with OWNERS.txt governance and parameter-level constraints. BREAKGLASS = Emergency-only access requiring human approval chain.
The matrix reveals a critical asymmetry: while deterministic workflow engines inherit the full access surface of their service identities (trusted by design), non-deterministic AI agents face progressive restrictions as operations move toward higher-impact service tiers. Specifically, agents are categorically denied write access to Physical Fabric Core services and all device interactions, regardless of the delegating human's privilege level. This represents the fundamental security boundary: an agent's non-determinism disqualifies it from operations where incorrect writes could cause physical infrastructure damage.
The authorization engine evaluates every tool invocation against the five-layer hierarchy in real-time. The evaluation process follows a deny-first model:
Any layer can deny the request. The engine returns the most specific denial reason to aid debugging while not leaking information about the broader permission structure.
Beyond the RBAC framework, agents are subject to additional runtime controls:
Onboarding teams create custom roles that span multiple tools, tailored to their operational scenarios:
The Bring-Your-Own-Roles model enables teams to compose fine-grained access profiles without requiring platform team intervention. Role definitions follow the same PR-based governance workflow: submitted via pull request, reviewed by tool-owning teams (enforced through OWNERS.txt), and activated upon merge.
Custom roles are bound to identities through a flexible assignment mechanism supporting multiple identity types:
This assignment model allows a single role definition to govern access for human operators (via security groups), automated agents (via managed identities), and structured workflows (via playbook identifiers), while each binding type carries its own authorization constraints.
The system has been deployed in production for eight months, governing access for a fleet of AI agents operating across the following scale:
| Metric | Value | Notes |
|---|---|---|
| Unauthorized write operations | 0 | Eight months of production deployment |
| Mean authorization latency | 3.2ms | Per-request overhead, P99: 8.1ms |
| Policy hot-reload time | <30s | From PR merge to enforcement |
| Tool team onboarding time | 2.1 days | Median time from first PR to production |
| Agent operations governed daily | ~450 | Across all 20+ agents |
| False denial rate | 0.3% | Legitimate operations incorrectly blocked |
Expressiveness vs. Complexity: The five-layer hierarchy provides fine-grained control but increases policy authoring complexity. We mitigate this through role inheritance (the inherits keyword) and sensible defaults (deny-all for unspecified operations).
Autonomy vs. Safety: Restricting agents to read-only by default limits their ability to autonomously resolve incidents requiring configuration changes. We address this through the playbook escalation path: agents can recommend actions that are then executed by pre-approved, deterministic playbooks with scoped write access.
Decentralization vs. Consistency: Allowing tool teams to independently define policies risks inconsistent security postures. We enforce consistency through schema validation, mandatory fields (owner, tenantRestrictions), and platform-level policy guardrails that tool teams cannot override.
Our current architecture has several limitations. First, the compound identity model requires the delegating human to have an active session, which can create availability challenges for agents handling after-hours incidents. Second, the parameter-level deny patterns use regex matching, which cannot express all semantic constraints (for example, restricting operations to devices currently in maintenance windows). Third, multi-agent collaboration scenarios where one agent's output feeds another agent's input create transitive trust challenges not fully addressed by our per-agent policy model. Fourth, the decentralized model assumes tool teams have sufficient security expertise to author correct policies, which requires ongoing education and tooling support.
Access control for AI systems is an emerging research area. Anthropic's "Claude's Character" document introduces the concept of "tool use policies" but does not address multi-tenant production deployments. Google's Secure AI Framework (SAIF) provides security principles for AI systems but focuses on model integrity rather than runtime access control. Microsoft's AI Red Teaming research addresses adversarial testing but not architectural access control patterns.
In the broader RBAC literature, attribute-based access control (ABAC) and policy-based access control (PBAC) systems share our goal of fine-grained authorization. Our contribution extends these models specifically for non-deterministic actors, introducing the compound identity concept and progressive trust escalation not found in traditional ABAC/PBAC frameworks.
The OWASP Top 10 for LLM Applications (2025) provides the most comprehensive threat taxonomy for LLM-based systems. Our architecture directly addresses threats LLM01 (Prompt Injection), LLM02 (Sensitive Information Disclosure), LLM06 (Excessive Agency), and LLM10 (Unbounded Consumption) through specific architectural controls.
Recent work on AI agent frameworks, including ReAct, Toolformer, and generative agent architectures, focuses on capability and reasoning patterns but largely defers security considerations to deployment environments. Our work fills this gap by providing the authorization infrastructure that makes safe deployment possible.
Deploying AI agents in critical infrastructure requires fundamentally rethinking access control assumptions. Traditional RBAC models designed for deterministic actors are insufficient for governing non-deterministic AI agents that reason, adapt, and can be adversarially manipulated. Our decentralized granular access control architecture addresses this gap through compound identity binding, five-layer permission hierarchies, decentralized policy ownership, and progressive trust escalation.
Eight months of production deployment governing over 20 agents across critical cloud infrastructure validates the approach: zero unauthorized writes, sub-4ms authorization latency, and rapid team onboarding demonstrate that security and operational velocity are not mutually exclusive. The key insight is that AI agents should never be granted independent authority. Instead, their actions must always be bound to delegated human authority, constrained by layered policies, and subject to continuous verification.
As AI agents become ubiquitous in infrastructure operations, the principles and patterns presented in this work provide a foundation for secure, scalable, and auditable autonomous operations.