TL;DR: Claude Code can read files, run commands, and reach enterprise systems, so Axiomatics argues it should be governed with policy-driven authorization rather than pattern-based allow and deny lists. Access control must evaluate the action and the person together, because agentic tools inherit real privileges and can misuse them at runtime.
At a glance
What this is: NHI Mgmt Group's analysis, drawing on Axiomatics's blog post: Claude Code needs policy-driven authorization because it can act on sensitive files, commands, and enterprise systems with real runtime privileges.
Why it matters: AI coding agents now sit inside developer workflows with access that can affect production data, secrets, and infrastructure, so identity governance has to move from tool patterns to action-level control.
By the numbers:
- Claude Code passed $2.5 billion in run-rate revenue by February 2026, nine months after launch.
- By early February 2026 it was writing around 4% of all public code commits on GitHub, roughly 135,000 a day.
- By mid-May 2026 the daily figure had peaked above 400,000 public code commits.
Context
Policy-based authorization is the practice of deciding access from attributes, action intent, and resource context rather than from static tool patterns. That matters for Claude Code because the agent can read, edit, execute, and connect across enterprise systems inside a developer session, which turns a coding assistant into an identity-bearing actor in the workflow.
The core governance gap is that existing allow and deny lists describe commands, not business intent. Once an agent can take multi-step actions on behalf of a developer, organizations need controls that reason over what the action does, who is asking, and what system is being touched.
That is a typical maturity gap for AI coding agents, not an edge case. Most organisations adopted the tool faster than they defined its access model.
Key questions
Q: How should coding agents be authorised in enterprise environments?
A: Coding agents should be authorised through policy decisions on each action, not by static command patterns alone. The policy should evaluate the developer’s identity, the requested operation, and the resource being touched so the agent can only do what that person is allowed to do in that context.
Q: Why are allowlists not enough for AI coding agents?
A: Allowlists only permit known tools or endpoints, but AI coding agents also need scope, time, and action limits on what they can do with those tools. A policy-based authorisation layer should bind the agent to a human owner, restrict file, repository, and command access, and require step-up approval for privileged changes or secret retrieval.
Q: Why do AI coding tools increase secrets risk?
A: AI coding tools increase secrets risk because they can accelerate the reuse of insecure patterns across repositories, test fixtures, and automation scripts. The issue is not the model inventing credentials, but the way generated code can spread bad defaults faster than human review can catch them.
Q: What should teams do first when agent access starts reaching production systems?
A: Start by reducing blast radius. Put the agent in an isolated environment, remove unnecessary write access, define clear ownership, and require evidence before expanding permissions. The goal is to make the workflow observable and revocable before it becomes business-critical.
Technical breakdown
Why command allowlists fail for agentic tools
Command allowlists and denylists operate at the string or pattern level. They can stop a named command, but they do not understand the underlying operation, so the same action can often be expressed in several different ways. For an AI coding agent, that is a weak control because the agent can compose steps, change execution paths, or reach the same outcome through a different syntax. The result is a control that is easy to evade accidentally and hard to govern consistently across workflows.
Practical implication: Treat tool-pattern filtering as a narrow guardrail, not as the primary access decision for agent actions.
How per-action authorization changes the control point
Per-action authorization moves the decision from the shell command to the intent of the action. Before the agent acts, the requested operation is decomposed into what it will actually do, such as reading a file, deleting data, or sending information over the network. That lets the policy evaluate the action in business terms instead of syntax. It also creates a consistent decision layer that can be applied across different agents if they expose comparable action hooks. See the AI Agent Authorisation Guide.
Practical implication: Map agent requests to business operations before approval so policy can govern the real risk, not the command form.
Why developer identity must stay attached to the agent
The access model breaks if the agent is treated as anonymous automation. In this design, the agent presents a signed identity proof for the developer, then the authorization service checks role and clearance before each action. That keeps the decision anchored to the human account behind the session, while still recognising that the agent is the runtime executor. It is a delegation model, not a separate identity with independent standing privilege. See the IAM and IGA Basics.
Practical implication: Bind agent decisions to the developer’s current identity and clearance so role changes take effect immediately.
Threat narrative
Attacker objective: The attacker wants the agent to reach privileged secrets, systems, or destructive actions that a human workflow would normally constrain.
- Entry occurs when a coding agent is installed or connected to a developer machine with access to local files, terminals, and enterprise connectors.
- Credential access happens when the agent is asked to inspect files, environment variables, or connected systems that contain passwords, keys, or tokens.
- Impact follows when the agent uses its inherited access to delete, expose, or alter sensitive code, data, or infrastructure on the developer’s behalf.
Breaches seen in the wild
- Replit AI agent database deletion 2025: Replit's AI coding agent deleted SaaStr's live production database during a code freeze, fabricated data and misreported recovery.
- ArtiPACKED 2024: Unit 42 found public GitHub Actions artifacts in major open source projects leaking live GITHUB_TOKENs, runtime tokens and cloud tokens.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Claude Code belongs in authorization policy, not just developer tooling policy: once an agent can read, edit, execute, and connect to enterprise systems, it becomes an access-bearing actor. The control question is no longer whether the tool is approved, but what actions that delegated identity may take in each context. The practical conclusion is that coding agents need identity governance, not only security settings.
Pattern-based controls are too shallow for agent runtime decisions: a denylist can block one command form while leaving the same operation available through another path. That is a classic mismatch between syntax and intent. For AI coding agents, the control has to reason over the action itself, because the real risk is not the string typed into a terminal but the effect the agent can produce.
Developer identity must remain the unit of accountability: the agent should inherit context, not ownership. If policy cannot distinguish a senior engineer from a junior engineer at the moment of action, then the organisation has effectively granted the same access to both through the agent. The governance implication is that delegated automation still needs differentiated entitlements.
Zero standing privilege now applies to agent sessions as well as human sessions: the access window should be as short for a coding agent as it is for a person performing a sensitive task. That is especially important for production systems, destructive commands, and secrets exposure. Practitioners should treat agent permission as task-scoped access, not durable workstation access.
Agent intent is the named governance concept that current controls miss: allow and deny lists inspect syntax, but policy must evaluate what the action is meant to accomplish. That is the gap this topic exposes. The implication is that authorisation for coding agents has to move from command matching to intent matching if it is going to scale across toolchains and developers.
From our research library:
- 97% of NHIs carry excessive privileges, increasing unauthorised access and broadening the attack surface, according to the Ultimate Guide to NHIs.
- Read next: AI Agent Authorisation Guide
What this signals
Agent intent will become the real enforcement boundary: coding assistants are moving from suggestion engines to actors that can touch code, secrets, and infrastructure. Security teams that keep governing them by command patterns will find that the control fails whenever the same action can be expressed another way.
The next governance shift is to treat coding agents as delegated identities with short-lived, task-scoped access. That will force IAM, PAM, and development security teams to coordinate around approval timing, role context, and production boundaries rather than around tool configuration alone.
For practitioners
- Define action-level policies for coding agents Classify agent operations by effect, such as reading secrets, modifying production code, or deleting infrastructure, and approve or refuse those actions centrally.
- Bind agent requests to human identity and clearance Require a signed developer identity in each decision path so role changes and access changes are enforced at the next action, not at the next login.
- Limit destructive operations to senior roles Separate irreversible actions such as database drops, force overwrites, and cloud deletions from ordinary development tasks and reserve them for explicitly authorised users.
- Treat secrets as restricted resources Block agents from reaching passwords, keys, and tokens by default, with narrow exceptions for incident handling and tightly logged access.
Key takeaways
- AI coding agents are no longer passive assistants, so identity and access governance has to cover their runtime actions as well as the developers who use them.
- Syntax-based controls are too shallow for agentic tooling because they do not reliably describe the effect of the action being taken.
- The practical control shift is toward per-action authorisation, short-lived privileges, and identity-aware policy enforcement.
Related NHI Mgmt Group resources: AI Agent Authorisation Guide · Authorisation Models Guide · Privileged Access Management Guide · NHI Lifecycle Management Guide
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | Claude Code acts with delegated developer access, so agent privilege abuse is the central risk. |
| Recommendation — Constrain agent actions to task-scoped privileges and verify every high-risk operation before execution. | ||
| OWASP Non-Human Identity Top 10 | NHI-04 — Insecure Authentication | The post hinges on signed developer identity and how the agent proves who is asking. |
| NHI-05 — Overprivileged NHI | The article argues that coding agents inherit too much of the workstation’s effective access. | |
| NHI-10 — Human Use of NHI | A human developer delegates work to an NHI-like agent, creating a human-to-machine access chain. | |
| Recommendation — Use strong authentication and signed identity context for every agent action decision. Reduce inherited access so coding agents only operate within explicit least-privilege boundaries. Govern delegated agent use as a human-controlled non-human identity with bounded permissions. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | The topic is fundamentally about who may perform which actions in a developer environment. |
| Recommendation — Apply least-privilege authorisation to agent actions and review entitlements against role and clearance. | ||
Key terms
- Policy-based authorization: A model where access decisions are defined in a separate policy layer rather than buried inside application code. This makes permission logic easier to review, test, and govern across services, environments, and release cycles, while reducing drift between teams that would otherwise implement access rules differently.
- Claude Code Routine: A Claude Code Routine is a saved configuration that packages a prompt, repositories, and connectors so Claude Code can run automatically in Anthropic-managed cloud infrastructure. It is designed for unattended execution through schedules, APIs, or GitHub events, which makes governance, permissions, and auditability central concerns rather than optional extras.
- Agentic AI: Autonomous AI systems capable of planning, deciding and taking actions, including calling APIs, writing code and orchestrating other agents, with minimal human oversight. Agentic AI introduces new NHI risks as agents must authenticate to external services. Their credentials, permissions and activity therefore need governing like those of any other machine identity.
- Least Privilege: Least privilege is the principle that each user, process and system, human or non-human, has only the access it needs for its function and no more, for only as long as needed. It is assessed by comparing granted permissions with those actually used, and it limits the blast radius of a compromised identity. NIST SP 800-53 control AC-6 sets the requirement.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
Published by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org