TL;DR: Claude Code runs with file, shell, and network access, which shifts security from prompt handling to governing what data the agent can read, move, and leak, according to Orion. Permission prompts and scope limits help, but they do not determine whether sensitive content should leave context.
NHIMG editorial — based on content published by Orion: Claude Code security and the gap between permissions and data control
By the numbers:
- When AWS credentials are exposed publicly, attackers attempt access within an average of 17 minutes and as quickly as 9 minutes in some cases.
Questions worth separating out
Q: What breaks when an AI coding assistant is allowed to read files but not inspect data sensitivity?
A: The control model breaks because the assistant can still move secrets, regulated records, or proprietary content through approved actions.
Q: Why do agentic coding tools increase secret exposure risk in repositories?
A: They expand the number of objects treated as operational context.
Q: How should security teams handle AI assistants that can leak user data through rendering features?
A: Security teams should treat rendering features as part of the attack surface, not just the user interface.
Practitioner guidance
- Implement content-aware controls for agentic CLI workflows Inspect files, command output, and tool responses for secrets and regulated data before allowing the assistant to move them outside the environment.
- Classify high-risk repository files as untrusted inputs Mark .env files, project settings, dependency manifests, and comments as potentially sensitive or adversarial when they can influence the agent.
- Separate approval of actions from approval of payloads Keep permission prompts for execution, but add policy checks for the data being read or transmitted.
What's in the full article
Orion's full article covers the operational detail this post intentionally leaves for the source:
- A closer breakdown of how Claude Code handles file reads, shell execution, and network calls in practice.
- The vendor's specific control model for permission prompts, write-scope limits, and enterprise settings.
- Examples of how ORION Security classifies tool calls for data movement and intent.
- Implementation context for deploying the product in roughly 30 minutes.
👉 Read Orion's analysis of Claude Code security and secret leakage paths →
Claude Code security: are your controls stopping secret exfiltration?
Explore further
Permissions alone do not govern an agent that can move data. Claude Code-style assistants expose the gap between action approval and data control. A permission prompt can tell an operator that a read or write is allowed, but it cannot tell whether the payload is a README or a regulated record. That is why agentic AI governance must treat data classification and runtime inspection as first-class controls. Practitioners should assume action approval is necessary but never sufficient.
A question worth separating out:
Q: Who is accountable when an AI agent accesses regulated data improperly?
A: Accountability sits with the teams that govern the agent's identity, the data classification, and the policy that allowed the access path. If those controls are disconnected, no single owner can explain why the access existed or why it was not removed sooner. Shared context is what makes accountability traceable.
👉 Read our full editorial: Claude Code security exposes the gap between permissions and data control