By NHI Mgmt Group Editorial TeamDomain: Agentic AI & NHIsSource: Obsidian SecurityPublished September 7, 2026

TL;DR: Claude Code’s --dangerously-skip-permissions flag removes the session-wide permission gate for file edits, shell commands, MCP tools, and network access, and Obsidian Security argues the real risk is not the flag itself but running it in an environment with over-scoped credentials and unmapped reach. The access review assumption collapses when an agent can act, delegate, and exfiltrate within a single session before any human review can occur.


At a glance

What this is: This is an analysis of Claude Code’s skip-permissions mode and the control layers needed to contain its broader session-wide authority.

Why it matters: It matters because IAM teams now have to govern agentic runtime access, MCP reach, and credential scope as one identity problem instead of treating prompts as the primary control.

By the numbers:

👉 Read Obsidian Security's analysis of Claude Code skip-permissions and containment


Context

Claude Code’s skip-permissions mode is a session-level control change, not a narrow convenience setting. It removes the approval gate for file operations, shell commands, connected MCP tools, and network access, which means the agent’s effective authority is defined by the environment it can reach, not by the prompts it would otherwise have shown.

For identity teams, the important issue is not whether engineers want fewer prompts. It is whether the agent’s credentials, tool connections, and execution environment are governed as a single access surface. Once that surface includes production data, external connectors, or over-scoped tokens, the security model shifts from human review to runtime containment.

The starting position described in the article is common, not exceptional: teams are adopting agentic coding flows faster than they are inventorying the access those agents inherit. That makes the article a practical warning about governance lag rather than an edge case about one flag.


Key questions

Q: What breaks when Claude Code runs with --dangerously-skip-permissions?

A: The human approval gate and its audit trail disappear for the full session, so the agent can execute file changes, shell commands, tool calls, and network actions without review. That is safe only when the environment is tightly isolated and the reachable credentials are already constrained to the task.

Q: Why do agentic coding tools increase identity risk even when the prompt is useful?

A: Because the real security boundary is not the prompt, it is the agent’s effective reach across files, tools, credentials, and network paths. Once those are combined into one session, the identity model changes from human-reviewed action to runtime authority that can move faster than recertification or manual approval.

Q: How should teams reduce the blast radius of AI coding agents in production-adjacent systems?

A: Teams should restrict agent credentials to the smallest possible scope, separate staging from production authority, and keep backups outside the same writable boundary as live data. They should also require out-of-band approval for destructive operations. That combination limits damage even when an agent makes a bad decision.

Q: How should organisations handle AI agent permissions in authorization systems?

A: Treat AI agents as task-bound actors, not as full substitutes for the user whose session launched them. Every agent action should be checked against the minimum resource scope required for that task, because inherited human permissions are usually broader than the workflow needs.


Technical breakdown

What --dangerously-skip-permissions removes from Claude Code

Claude Code normally places a permission check in front of consequential actions such as edits, shell commands, tool calls, and network requests. The flag removes that gate for the whole session, which means the agent can act with the user account’s full effective privileges once a request is generated. The control problem is not capability expansion. It is the removal of the only human review point that sat between intent and execution, along with the audit trail that recorded the approval decision.

Practical implication: Treat the flag as a containment problem, not a usability tweak, and scope the session environment before the agent starts.

Why MCP servers expand agent authority

An MCP server is a tool endpoint, but in practice it also carries credentials and reaches whatever that backend system can reach. When an agent is connected to several servers, its real authority becomes the union of those connections, not the permissions of any single server. That is why a coding agent can read data from one system and move it to another without any one permission looking obviously excessive in isolation. The risk comes from delegated reach, not just local execution.

Practical implication: Inventory every connected MCP server and resolve the effective access behind each credential, not just the declared configuration.

Why approval fatigue changes the security model

Repeated prompts train users to approve without reading, which reduces the value of the check and creates a false sense of control. Once teams respond to friction by disabling permissions altogether, they move from noisy human review to silent execution. That is especially dangerous for irreversible actions like deletes, force pushes, schema changes, and outbound data movement, because a post-execution alert cannot undo the outcome. The technical issue is that the control moved too late in the chain to be useful.

Practical implication: Replace blanket approvals with pre-execution blocks for irreversible actions and keep runtime review out of the critical path.


Threat narrative

Attacker objective: The objective is to exploit over-scoped agent access to perform destructive actions or exfiltrate data through trusted developer tooling.

  1. Entry occurs when an operator runs a coding agent with --dangerously-skip-permissions in an environment that already contains connected tools and credentials.
  2. Escalation happens when the agent inherits the union of MCP server reach, shell access, and network access, letting it act far beyond the narrow task at hand.
  3. Impact follows when the agent deletes files, executes destructive commands, or moves data through connected systems without a human approval gate or audit trail.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Session-wide approval removal is now an identity event, not a workflow preference. The moment an AI coding agent can run shell commands, touch files, call tools, and reach the network without a human gate, its identity behaviour changes materially. That moves the control problem out of prompt design and into runtime authority management. The practitioner conclusion is that approval suppression must be governed as access expansion, not as a developer convenience.

The identity blast radius is the union of every connected tool, not the least-privileged-looking one. An agent connected to a repository, a database, Slack, and a cloud backend inherits the combined reach of all four. That is why isolated control reviews miss the real risk, and why runtime access intelligence matters more than static configuration. Practitioners need to evaluate the whole delegation chain, not the most visible link.

Access review processes assume access persists long enough to be reviewed; autonomous tool use collapses that window. When an agent can acquire a tool, execute, and release the task inside one session, there may be no stable artefact for a recertification cycle to assess. That is an assumption collapse, not merely a missing control. The implication is that governance models built for human-paced review are no longer sufficient for agent-timed execution.

Named concept: runtime governance gap. This article shows the gap between what a policy says an agent may do and what the connected environment actually allows it to reach. Static allow and deny lists help, but they do not close the gap if credentials, tools, and network paths remain broader than the intended task. The practitioner conclusion is to govern effective reach, not just declared permissions.

For autonomous coding workflows, the control question is containment before capability. The article’s containment layers map to a deeper governance truth: once execution is approval-free, the programme’s primary task is to reduce blast radius, not to preserve human checkpoint rituals. That aligns with OWASP-NHI and zero-trust thinking because the identity perimeter is now the agent session itself. Practitioners should re-evaluate where decision authority actually lives.

From our research:

  • 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems, sharing sensitive data, and revealing access credentials, according to the 2026 Infrastructure Identity Survey: state of AI adoption.
  • Only 52% of companies can track and audit the data their AI agents access, leaving 48% with a complete blind spot for compliance and breach investigation.
  • As agent deployments scale, compare those controls with OWASP NHI Top 10 and tighten runtime governance around tool use and delegated access.

What this signals

Runtime containment is becoming the governing unit for agentic access. Once a coding agent can execute without prompts, the question shifts from whether an action is allowed to whether the environment itself can absorb the blast radius. That is why agent governance now has to include isolated execution, scoped credentials, and continuous inventory of connected tools rather than relying on approval workflows alone.

The next programme failure will come from invisible delegation, not from the agent’s model quality. Teams that know what the agent can do on paper but cannot explain what its MCP servers can reach will not be able to defend effective access. This is where runtime access intelligence and Analysis of Claude Code Security become operationally relevant, because reach is what matters.

Identity blast radius: the combined reach of every connected credential, server, and network path an agent can touch in one session. When that blast radius includes production data, the programme needs NHI-style governance for agentic workflows and not just developer ergonomics.


For practitioners

  • Isolate every skip-permissions session Run agentic coding sessions in a container or VM that holds only the repository, with no production credentials, no pre-authenticated cloud CLI, and restricted network access.
  • Pre-deny irreversible operations Block destructive database commands, force pushes, credential file access, and outbound data movement with persistent policy rules before the agent starts.
  • Add a pre-execution policy hook Inspect the actual command and its target environment before execution so a destructive action aimed at production from a dev session is refused in time.
  • Scope MCP credentials independently Give each MCP server a credential that only matches the workflow it supports, and separate those credentials from the developer’s personal access.
  • Enumerate connected tool reach continuously Maintain a current inventory of which agents connect to which MCP servers, what those servers can reach, and which connections can touch production data.

Key takeaways

  • Skip-permissions mode turns an AI coding session into an approval-free identity surface, so the environment matters more than the prompt.
  • The biggest hidden risk is delegated reach across MCP servers and credentials, which can move data or trigger destructive actions without any single permission looking abnormal.
  • Containment, credential scoping, and pre-execution checks are the controls that keep agent speed usable without making blast radius the default security posture.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03 — Insecure Authentication MethodsThe article is about approval-free agent access and over-scoped credentials.
Recommendation — Audit agent credential scope against NHI-03 and remove any standing access beyond the session task.
OWASP Agentic AI Top 10Tool and permission abuseThe article centres on AI agent tool execution and permission bypass.
Recommendation — Constrain agent tool use to approved actions and block dangerous execution paths before runtime.
NIST CSF 2.0PR.AC-4 — Access Permissions and AuthorisationsThe topic is fundamentally about access authorisation in an agentic workflow.
Recommendation — Map agent sessions to PR.AC-4 and validate that effective permissions match the intended task.
NIST SP 800-53 Rev 5AC-6 — Least PrivilegeLeast privilege is the core control challenged by session-wide agent authority.
Recommendation — Apply AC-6 to scope agent credentials, tools, and network reach to the minimum required.
NIST Zero Trust (SP 800-207)5.3 — Continuous verificationSkip-permissions mode increases the need for continuous runtime verification and containment.
Recommendation — Use continuous verification to assess each agent action before it reaches production data or external systems.

Key terms

  • Skip-permissions mode: A session setting that suppresses approval prompts for an AI coding agent and lets it execute allowed actions without human confirmation. In practice, it shifts security responsibility from interactive review to the isolation, credential scope, and runtime controls around the session.
  • MCP Server: An MCP server is a tool endpoint that connects an AI agent to external systems and data sources through Model Context Protocol. Because it extends what the agent can reach, it becomes part of the identity and access surface and must be reviewed like any other privileged connector.
  • Identity Blast Radius: The amount of damage a compromised identity can cause across systems, data, and infrastructure. In NHI environments, it is shaped by permissions, network reach, and administrative capability rather than by the credential alone. Reducing blast radius is a containment strategy that limits lateral movement and data exposure.
  • Runtime Access Intelligence: Context collected while an identity is active, such as usage patterns, session behaviour, and current reachability. It helps teams distinguish dormant access from operational risk and supports faster, better-targeted remediation decisions across humans, service accounts, and AI-connected identities.

What's in the full article

Obsidian Security's full blog post covers the operational detail this post intentionally leaves for the source:

  • The specific five-layer containment model for agentic coding sessions, including which layers are cheapest to deploy first
  • Runtime enforcement examples for Claude and Microsoft Copilot, which are useful once you are moving from policy to implementation
  • How to build an inventory of connected MCP servers and map their effective access across real SaaS applications
  • The practical distinction between declared configuration and actual runtime reach when agent credentials drift over time

👉 The full Obsidian Security post covers the three failure modes, the five containment layers, and the runtime access questions teams need to answer.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on September 11, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org