Join our Newsletter — 33% off our NHI Course

Did Claude Code's access model fail because pattern rules were too narrow?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20842
Topic starter  

TL;DR: Claude Code’s access model creates a runtime authorisation problem for engineering teams, according to Axiomatics. File-pattern rules are too narrow for actions that can read, write, execute and fetch across real systems.

Editorial analysis by NHI Mgmt Group, based on content published by Axiomatics: “Authorizing Claude Code: Intent Rather Than Syntax”.

Key questions

Q: Why do command-pattern deny lists fail for AI coding agents?

A: Command text deny lists fail because AI coding agents can express the same intent through many different prompts, tool calls and command variants, so string matching misses semantically equivalent actions.

Q: How should teams classify operations from agent shell commands?

A: Teams should classify agent shell commands by the security-relevant operation they perform, such as reading files, modifying code, invoking network tools, or accessing secrets, rather than by the exact command string.

Q: What should teams do first when an AI coding tool can access private code and secrets?

A: Start by classifying the tool as a governed high-trust identity, then restrict repository scope, block unnecessary secret access, and validate what the tool transmits under real sessions.

Practitioner guidance

  • Implement action-level authorisation for AI coding agents Evaluate each tool request by actor identity, operation and resource instead of matching command strings alone.
  • Classify shell steps before they execute Split compound commands into atomic operations so a denied delete, read or network step cannot hide inside an allowed line.
  • Treat credentials as a separate resource class Label .env, key files, tokens and service-account material as credential resources and deny any path laundering through copy, rename or symlink tricks.

Bottom line: AI coding agents create an authorisation problem because they can act across files, shells and remote services without a human approving each step.

Glossary terms: Claude Code Routine, Credential Resource, Agentic AI, PreToolUse Hook

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 7 months ago
Posts: 20821
 

Pattern-based agent control is a brittle security model: spelling a tool call differently does not change the underlying authority being exercised. Claude Code can reach files, shells and remote services, so security teams need a decision point that reasons over action and resource, not token strings. The implication is that local deny lists are useful guardrails, but they are not a governance model.

A few things that frame the scale:

  • Claude Code-assisted commits leaked secrets at a rate of 3.2%, more than double the human-only baseline of 1.5%, with peaks reaching 31 secrets per 1,000 commits in August 2025, according to the State of Secrets Sprawl 2026.
  • 70% of organisations grant AI systems more access than they would give a human employee performing the exact same job, according to the 2026 Infrastructure Identity Survey.

A question worth separating out:

Q: Did Claude Code need identity-based policy to stop credential theft?

A: Identity-based policy is one way to reduce credential theft risk in Claude Code, because it can allow or deny actions using live attributes such as role, workspace, and trust level rather than static prompts. That helps constrain tool use, secret access, and exfiltration paths, but it must be paired with scoped credentials and revocation.

👉 Read our full editorial: Claude Code needs action-level authorization, not deny lists



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.