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.
Editorial analysis by NHI Mgmt Group, based on content published by Orion: “Claude Code Security: How to Prevent Data Leaks in the Enterprise”.
Key questions
Q: What breaks when an agentic coding tool has permissions but no data control?
A: The control model breaks at the point of disclosure.
Q: Why do agentic coding tools increase secret exposure risk in repositories?
A: They expand the number of objects treated as operational context.
Q: What are the signs that prompt injection is influencing an AI coding assistant?
A: Look for unexpected tool calls, unexplained file reads, outbound requests that do not match the developer’s task, or the agent acting on instructions that only appear inside code comments, README files or dependency content.
Practitioner guidance
- Inventory agent-readable secrets and config paths Map every .env file, project config, credential store and command output path that Claude Code can reach, then remove sensitive material from locations the agent can ingest by default.
- Separate approval from disclosure control Keep permission prompts and write-scope limits in place, but add a policy layer that blocks reads or transfers of sensitive records even after an action is authorised.
- Treat repository content as untrusted input Review prompt-injection paths in dependencies, comments, README files and project settings, and assume any file the agent can read may contain steering instructions.
Bottom line: Claude Code security is fundamentally about controlling data movement in a live session, not just approving terminal actions.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Claude Code security exposes a control-plane to data-plane gap: approvals govern what the agent is allowed to do, but they do not govern what the agent is allowed to move. That distinction matters because agentic coding tools operate on live repository content, shell output and connected tools, so the security decision has to happen at data-movement time. Practitioners should stop treating terminal approval as the end of the control story.
A few things that frame the scale:
- 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools, according to the Ultimate Guide to NHIs.
A question worth separating out:
Q: Should organisations use permission prompts or content-aware controls for AI coding agents?
A: They need both, but content-aware controls solve the harder problem. Permission prompts are useful for limiting actions, yet they do not tell you whether the data being moved is sensitive. Organisations should keep approvals as a baseline and add content inspection where agents can read, transform and transmit information.
👉 Read our full editorial: Claude Code security exposes the gap between permissions and data control