Skip to content

Claude Code Enterprise Governance: A CISO's 2026 Playbook

Sotiris SpyrouUpdated on

Share this article

LinkedInXEmail
Claude Code Enterprise Governance: A CISO's 2026 Playbook

Your engineers are probably running Claude Code already. The governance question for a CISO isn't whether to allow AI coding agents, it's whether the permission model, audit trail and secure defaults are set before an agent runs a shell command nobody reviewed. Get those three right and most of the risk disappears. Skip them and you've handed an autonomous actor write access to your codebase.

This is the Responsible AI view of a tool that's already inside your build pipeline. Not "ban it." Govern it, with controls that match how the tool actually works in mid-2026, not a generic AI-policy template.

If your team is debating whether to switch off permission prompts entirely, read the companion piece on the risks of running an agent with skipped permissions first. This post is about the layer above that: the org-wide policy, the defaults, and the evidence.

What's the actual risk with AI coding agents?

The headline risk isn't the agent going rogue. It's that AI-generated code carries security defects at a rate humans don't, and a fast agent ships more of it.

Veracode tested over 150 large language models across 80 coding tasks in four languages. The result held steady from 2025 into 2026: AI-generated code passed security checks only 55% of the time, meaning 45% of it contained a known vulnerability (Veracode, Spring 2026 GenAI Code Security update). Syntax correctness climbed past 95% over the same period. Security didn't move. The models got better at writing code that runs and no better at writing code that's safe.

The breakdown matters for where you point review effort:

Vulnerability class AI code pass rate
SQL injection 82-86%
Insecure cryptography 82-86%
Cross-site scripting (XSS) 15%
Log injection 13%

By language, Java was the worst at 29%; Python the best at 62% (Veracode, Spring 2026). Newer flagship models (GPT-5.x, Gemini 3, Claude 4.6) showed no meaningful security gain. This isn't a wait-for-the-next-release problem. It's structural.

Here's the opinion that follows from the data: if your governance plan for AI coding agents is "review the diffs like we always have," it's already failing, because the agent now produces diffs faster than humans can review them properly. The control has to move upstream into the tool's defaults and downstream into automated scanning. Manual review in the middle can't carry the load alone.

How does Claude Code's permission model actually work?

Knowing the permission model is the difference between a real policy and a vague one. Claude Code asks before it acts, and the rules that govern that are layered and explicit.

Permissions resolve through four settings sources, in precedence order: enterprise managed policy, command-line flags, project settings, then user settings (Claude Code permissions docs). The rule that matters most for a security team: a deny rule at any level can't be overridden by an allow rule at another. Managed policy wins.

Rules come in three kinds, evaluated deny first, then ask, then allow:

  • Deny blocks a tool outright. Use it for destructive shell commands, network calls, and reads of sensitive paths.
  • Ask prompts for confirmation before the action runs.
  • Allow lets a tool run with no prompt. Scope these tightly.

MCP servers (external tools Claude Code can call) get their own namespace, mcp__servername__toolname, and each carries a trust level deciding whether its tools auto-run, need approval, or are blocked (Claude Code permissions docs).

The single most useful control for a CISO is the managed policy file. It's a system-level settings file your security team deploys where developers can't override it:

Platform Managed policy path
macOS /Library/Application Support/ClaudeCode/managed-settings.json
Windows C:\ProgramData\ClaudeCode\managed-settings.json
Linux / WSL /etc/claude-code/managed-settings.json

Put the security baseline here: deny rules for destructive and network tools, filesystem restrictions blocking ~/.ssh/ and secrets directories, MCP trust levels, and rules controlling bypass behaviour. Let local user settings carry preferences only. The principle is the same one you apply to any other privileged tool. Secrets, deployment paths, and bypass controls belong in a source the user can't edit (MintMCP, Claude Code security).

What changed with auto mode in 2026?

The biggest governance shift this year is auto mode, and most policies written before March 2026 don't account for it.

Claude Code has five permission modes. You cycle the first three with Shift+Tab:

  1. Default asks before edits and commands.
  2. Accept edits applies file changes in the working directory without prompting, so you review by git diff after.
  3. Plan mode researches and proposes but touches nothing until you approve. The safest way to let an agent explore an unfamiliar codebase.
  4. Auto mode runs without routine prompts, with a separate safety model checking each action first.
  5. Bypass (--dangerously-skip-permissions) skips all checks. The one to govern hardest. Covered in the companion post.

Auto mode, released 25 March 2026, is the one worth understanding properly (Anthropic engineering, March 2026). It's not "skip everything." It's a two-layer defence:

  • An input-side probe scans tool outputs for prompt-injection attempts and flags hijacking.
  • An output-side classifier (running on Sonnet 4.6) evaluates each action before it runs, targeting five risk categories: irreversible destruction or data exfiltration, security degradation, cross-trust-boundary actions, bypass of shared-infrastructure safeguards, and credential exploration. Think force-pushing over history, mass deletions, installing persistence, or posting sensitive data externally.

Anthropic reports the full pipeline runs a 0.4% false-positive rate and a 17% false-negative rate on genuinely dangerous actions (Anthropic engineering, March 2026). Read that second number carefully. Auto mode is a meaningful upgrade over bypass mode, and it still misses roughly one dangerous action in six. It's a safety net, not a replacement for the deny rules and scanning around it.

For policy: auto mode appears only when your organisation allows it and the model supports it. That toggle is yours to set centrally. Decide deliberately which teams and repos get it, rather than letting it default on.

How do CISOs build a Claude Code governance baseline?

Five controls cover most of the exposure. None of them require slowing your developers down.

1. Enforce a managed policy. Deploy managed-settings.json org-wide. Deny destructive shell and network tools by default, block sensitive filesystem paths, set MCP trust levels, and govern bypass mode. This is the one control developers can't undo, so it carries the weight.

2. Keep secrets out of reach. Use a vault for credentials, not plaintext .env files. Add deny rules for credential paths. The Veracode data shows credential exploration is one of the five categories agents stray into, so close it at the filesystem layer.

3. Pick the right enterprise plan for the controls you need. Claude for Enterprise adds SSO, role-based permissions, a compliance API, and the managed policy settings that make org-wide enforcement possible (Claude Code authentication docs). For regulated buyers, the compliance API is how you feed agent activity into existing audit and retention systems.

4. Scan everything the agent writes. Given the 45% defect rate, automated security scanning in CI is non-negotiable for AI-assisted code. Make XSS and log-injection checks blocking gates, since those are where agents fail hardest. The companion guide on building AI checks into your CI/CD pipeline covers the integration.

5. Decide auto mode and bypass policy explicitly. Name which repos and teams may use auto mode. Treat bypass mode as a documented exception with a sign-off, not a default. Both decisions belong in writing, not in individual developer habit.

Frequently asked questions

Is Claude Code safe for enterprise use?

It can be, with the right configuration. The tool ships with a layered permission model, enterprise managed policy enforcement, SSO, role-based access, and a compliance API on the Enterprise plan (Claude Code authentication docs). The risk isn't the tool itself, it's the 45% defect rate in AI-generated code generally (Veracode, Spring 2026). Governance plus automated scanning closes most of that gap.

What is auto mode in Claude Code?

A permission mode released 25 March 2026 that lets the agent run without routine prompts, while a separate safety classifier (Sonnet 4.6) checks each action against five risk categories before it executes (Anthropic engineering, March 2026). It catches most dangerous actions but not all, so it sits alongside deny rules and CI scanning, not instead of them.

How do we stop developers bypassing security controls?

Use the managed policy file. Settings deployed to managed-settings.json at the system level can't be overridden by user or project settings, and a deny rule there beats any allow rule elsewhere (Claude Code permissions docs). That's how a security team sets a baseline developers can't edit around.

Does AI-generated code really have more vulnerabilities than human code?

Yes. Independent testing found AI-generated code carries roughly 2.74 times more vulnerabilities than human-written code, and the 45% defect rate hasn't improved across model generations (Veracode, Spring 2026). Faster code generation without matching scanning means more findings reach production, not fewer.

The bottom line

Most enterprise AI-coding policies are written at the wrong altitude. They talk about "responsible AI use" and "developer training" while the actual controls (managed policy files, deny rules, vault-backed secrets, blocking CI scans) sit unconfigured. The tool gives you precise, enforceable controls. Use them.

The honest position: AI coding agents are a real productivity gain and a real risk, and the risk is now measurable rather than theoretical. A 45% defect rate that won't scale away with the next model release means the governance has to be structural, set in the defaults and the pipeline, not in a quarterly reminder to review code carefully. Set the managed policy, scan what the agent writes, and decide auto mode and bypass deliberately. That's the work. It's a few days of configuration against the cost of a vulnerability shipped by an agent nobody was watching.

We help boards and security leaders set Responsible AI governance for tools like this, so AI visibility and velocity don't come at the cost of the controls regulators and customers expect.

This is the kind of work our responsible AI software development handles.

Share this article

LinkedInXEmail
Sotiris Spyrou - Author

Sotiris Spyrou

Sotiris Spyrou is the founder of VerityAI, a Responsible AI advisory for boards and AI-deploying businesses. With 27 years across agencies, global in-house roles, and the C-suite, he advises leaders on AI governance and risk, and on answer-engine visibility engineered without the dark patterns the rest of the industry is getting penalised for. He is the author of TRANSFORM, AI Moats, and Ethical AI.

Founder at VerityAI

Areas of Expertise:

AI Governance & RiskResponsible AI StrategyAnswer Engine OptimisationBoard-Level AI Advisory