2026-11-26 15:47 UTC

Anthropic publishes Claude Code enterprise security guide

state: significantheat: lowuncertainty: mediumrelevance: highcoding-agent-security enterprise-ai agent-governanceAnthropicJason Clinton

What is this?

Anthropic published “The enterprise guide to securing coding agents” on November 23, 2026, for security and technical leaders deploying Claude Code. The first-party guide frames agent security as layered risk management: use external checks on tool inputs and actions, bounded permissions and sandboxed environments, centrally enforced policies, and telemetry for incident review. It discusses risks including prompt injection, credential exposure, privilege abuse, data exfiltration, and unsafe dependencies. Anthropic also presents Claude Code-specific controls and testing results; those performance figures are company-reported or attributed to studies cited by the company, not independently verified here. A Hacker News listing and search results point to the guide, but the supplied evidence includes no independent assessment of adoption or effectiveness.

Why it matters

The guide’s practical recommendations and stated limitations clarify what organizations may need to constrain before delegating more engineering work to coding agents, while leaving real-world effectiveness and uptake unverified.

Current assessment

Anthropic published its enterprise guide to securing Claude Code on November 23, 2026. It recommends layered defenses including least-privilege permissions, bounded or sandboxed environments, external checks on tool actions, centrally managed policies, and telemetry for audit and incident review. It covers risks such as prompt injection, credential exposure, privilege abuse, data exfiltration, and unsafe dependencies, and notes that protections vary by environment and plan; for example, local sessions are less contained by default and Anthropic-hosted cloud sessions lack an organization-wide network allowlist. The guide also cites Salesforce-reported productivity and incident figures and security tests, but these are company-presented claims, not independent validation in the supplied evidence. Publication is established; adoption, practical effectiveness, and applicability to other agents remain unresolved. Later evidence consists of a duplicate listing and modest discussion, not a new material development.

Measured heat

now 0 pts/hpeak 9 pts/hcomments 0/hpeers p21momentum: steady2 platformsage 98h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-22 13:00⭐ origin echo-reconstructedAnthropic's enterprise guide explains coding-agent risks including prompt injection, credential exposure, privilege abuse, and unsafe depend
Anthropic on blog (echo) · attributed from hn.story.50623157
—
11-24 03:14first on hacker news · published · +38.2hThe enterprise guide to securing coding agents
lumpa
—
11-24 03:14amplified on hacker news 👑hn.story.50623157
lumpa
peak 3 · 2 comments · 71% of case engagement
11-24 18:37amplified on hacker newshn.story.50632489
saikatsg
peak 2 · 0 comments · 29% of case engagement
11-24 03:21our radar first saw it · +38.4hdiscovery anchor: hn.story.50623157—
pace: p54 vs 2105 stories at the 96h mark (now 98h old) — ahead of 5dive-self-hosted-coding-agents (1.2x), behind ai-screening-for-visa-document-fraud (0.9x)

Evidence (3) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnThe enterprise guide to securing coding agents
Retrieved article excerpt

Open article · Retrieved 2026-11-24T03:21:49.959114+00:00

# The enterprise guide to securing coding agents

How security and technical leaders can understand and bound risk as they scale Claude Code

- Category[Best practices](https://claude.com/resources/best-practices)
- ProductClaude Code
- DateNovember 23, 2026
- Reading time18 min
- ShareCopy link

## Shipping fast and secure

Coding agents likely write code and open pull requests at your organization already. For many leading enterprises, they are reviewing, testing, and merging it too.

For example, after standardizing on Claude Code across its engineering organization, [Salesforce](https://www.salesforce.com/news/stories/how-engineering-became-agentic/)¹ [reported](https://www.salesforce.com/news/stories/how-engineering-became-agentic/):

79%

more pull requests merged per developer at Salesforce

5%

fewer total incidents at Salesforce

As agents do more, technical and security leaders must mitigate risks like prompt injection and privilege abuse with layered controls such as checked permissions and bounded environments.

The first two chapters focus on scoping the risk. We discuss the requirements every AI provider should meet and four agentic risks to mitigate.

The next three chapters focus on bounding the risk. We highlight the defensive layers you can deploy with Claude Code as well as how to centrally manage and enforce those controls.

This guide aims to provide a helpful agent security framework that can give organizations the confidence and trust to run agents effectively at scale.

Diagram of the components of defending an AI agent: external checks on inputs, a probabilistic model inside an environment with a hard ceiling, and external checks on actions going out.

The components of defending an AI agent: the model, the environment around it, and external checks on what goes in and what comes out.

Companion guide

### How this guide fits with the AI-Native SDLC Playbook

This guide has a companion. The [AI-Native SDLC Playbook](https://cdn.prod.website-files.com/6889473510b50328dbb70ae6/6aba736348bdf4f08183f463_AI%20Native%20SDLC%20Playbook_designv2%20%281%29.pdf) covers how to redesign software development around agents, stage by stage from planning to maintenance. This guide covers the security controls underneath that work.

Read the playbook to decide where agents fit in your lifecycle. Read this guide to decide what they’re allowed to do when they get there.

[Read the AI-Native SDLC Playbook](https://cdn.prod.website-files.com/6889473510b50328dbb70ae6/6aba736348bdf4f08183f463_AI%20Native%20SDLC%20Playbook_designv2%20%281%29.pdf)

*This guide is written for organizations on Claude Team and Enterprise plans. If you reach Claude through a cloud provider such as AWS, Google Cloud, or Microsoft Azure, the same principles and local controls apply.*

## 01 Setting the bar for agent security

Six questions for every coding agent · Applying SaaS requirements to your AI provider

> “A CISO's responsibility in the age of agentic AI is not to achieve zero risk. Instead, our jobs are to make agentic risk legible and bounded. This way, we can deliberately accept what we can manage, so the business moves on our terms instead of around us.”

[Jason Clinton](https://claude.com/resources/articles/ciso-guide-to-agentic-ai), Deputy CISO at Anthropic

### Six questions for every coding agent

Here are six questions leaders can ask when evaluating coding agents to verify they are enterprise ready.

| Question to ask | Why you should care | Good answer | Weak answer |
| --- | --- | --- | --- |
| **Does the model refuse when it should?** | The model is the first check on a harmful request, making a bad action less likely. | Refusal trained into weights, with published rates. | "Our system prompt instructs the model to decline." |
| **Are actions automatically inspected outside the model before they run?** | External checks can catch when the model is tricked or using bad judgment. | Static analysis of commands and a separate evaluator model. Prompt injection probes. | "The model is very capable." |
| **Is blast radius bounded by the environment?** | This bounds the severity, and therefore risk, of an incident. | Kernel-level sandboxing that admins can require and set to fail closed, or an isolated VM for each session. Egress allowlisting at the network layer. | "The agent is instructed not to leave the working directory." |
| **Can policy be locked centrally?** | Sets minimum standards that can’t be undone by individuals. | Managed settings with hard-deny rules a local user can't override. | “Per-developer config files, and an honor system policy doc.” |
| **Is the code the agent writes secure?** | Code volume is scaling and vulnerabilities can ship unless checks scale with the volume. | Automated security review with a person approving high-risk changes. | “The model is trained to write secure code.” |
| **Can you reconstruct an incident?** | Compliance. Improving security over time. | Session [telemetry export](https://code.claude.com/docs/en/monitoring-usage), [audit API](https://platform.claude.com/docs/en/manage-claude/compliance-api) (Enterprise), and named known gaps. | "Logs are available on request." |

### Applying SaaS requirements to your AI provider

You already have a SaaS provider checklist with controls such as single sign-on, role-based access, data handling terms, and audit logs. Hold AI providers to a similar checklist. For example, Claude Code supports these security expectations through:

- **Single sign-on and role-based access control** (Enterprise), managed the way you manage your other enterprise tools.
- **We don’t train generative models on code or prompts** under our commercial terms, unless your organization has chosen to share that data with us.
- **Enterprise Frontier Safeguards (rolling out in phases)** combines the privacy of zero data retention with state-of-the-art safeguards for detecting misuse across highly capable models. Data can be encrypted with your own keys and kept in storage you control for a limited time. [Learn more](https://www.anthropic.com/news/enterprise-frontier-safeguards).
- On Enterprise, **BAA** coverage for the Claude Code CLI and the desktop app’s Code tab in local mode, once the HIPAA configuration is applied.
- **Encryption options** on cloud platforms: customer-managed keys in AWS KMS on Amazon Bedrock, CMEK on Google Cloud, or Microsoft Foundry’s Hosted on Azure option.
- A **SOC 2 Type 2 report and ISO 27001 certificate** in the [Anthropic Trust Center](https://trust.anthropic.com).

For security teams

### Getting cleared for security work

The [Cyber Verification Program](https://www.anthropic.com/news/cyber-verification-program) (CVP) makes advanced cyber capabilities and reduced blocking classifiers available to qualifying security professionals.

[Enterprise Frontier Safeguards](https://www.anthropic.com/news/enterprise-frontier-safeguards) is designed to let eligible organizations store data in cloud infrastructure they control.

## 02 Identifying AI-specific risks

Leaked credentials and privilege abuse · Unvetted dependencies and extensions · Data exfiltration · Prompt injection

Security and technical leaders are familiar with risks like leaked credentials, abused privileges, compromised dependencies, and insider threats. However the attack surfaces, velocity, and scale all change when it comes to agents. Let’s look at some of the risks.

| Risk | How you handle it today | What changes with an agent |
| --- | --- | --- |
| **Leaked credentials and privilege abuse** | Least privilege, short-lived tokens, keyless auth through workload identity or OIDC. Regular review of over-privileged accounts.Named accounts for people, per-workload identity for software. | Credentials should be short-lived and scoped to the task or job, not the developer’s full access.The agent acts inside a developer’s session and most logs outside Claude Code only show the developer’s name. |
| **Unvetted dependencies and extensions** | Pinned versions, review gates, two reviewers on manifest changes. Version controlled configuration. | Agents add both vetted and unvetted dependencies faster than manual processes. Extensions instruct the agent the moment they connect. |
| **Data exfiltration** | Egress allowlisting at the network layer. | A compromised agent can send data out through services you already allow. Unlike traditional malware, it can try multiple routes the attacker doesn’t have to proactively define. |
| **Insider risk** | Social engineering awareness training, verification, reporting paths. | Prompt injection: The check moves to the tool call and the network boundary. |

### Risk 1: Leaked credentials and privilege abuse

Anything an agent can read, it can leak. That includes credentials like a long-lived AWS access key or GitHub token.

How to mitigate

Remove standing secrets from the agent’s environment. Keyless authentication through workload identity or OIDC gives the agent a short-lived token per job or session, so there’s no long-lived key to leak. Where a token has to exist, keep its lifetime short and its scope narrow. Use hooks to block commits that contain secrets and turn on secret scanning at push. On a developer’s machine, the sandbox can hide credentials from commands. A cloud session can’t read the developer’s machine, so the only secrets in the VM are ones you place there, such as environment variables or files in an uploaded repository.

Anything the agent can do, a compromised or overeager agent can misuse. By default, an agent in Claude Code runs under the identity of the developer who oversees it. In the event of an incident, you may need to distinguish between agent and developer actions so you can appropriately respond.

How to mitigate

Apply [least agency](https://claude.com/resources/articles/ciso-guide-to-agentic-ai), which is [least privilege](https://csrc.nist.gov/glossary/term/least_privilege) for agents. [Check tool calls against policy outside the model](https://code.claude.com/docs/en/permissions), so a request beyond the initiating user's or the task's permissions can be rejected by your rules. Audit agent identities on the same schedule as your other over-privileged and inactive accounts.

Keep session transcripts and [export OpenTelemetry data](https://code.claude.com/docs/en/monitoring-usage), so you can see what the agent did and read. In your CI/CD pipeline, give the agent its own identity, one you can scope and revoke without touching any developer’s account. [You can do this with Claude Code’s GitHub Action, which runs as its own GitHub App.](https://code.claude.com/docs/en/github-actions)

Illustrative pull request conversation in which Claude, running as its own GitHub App, adds two verified commits and a comment under its own name rather than the developer’s account.

Illustrative example of a pull request conversation. In the pipeline, the agent’s work arrives under its own name.

### Risk 2: Unvetted dependencies and extensions

Agentic coding accelerates the rate at which code is generated and reviewed, which includes the speed at which dependencies are added and configuration changes are made.

When you ask an agent to add JSON schema validation, it will find a package, add the latest version, and have working code in minutes. That speed can be a risk if agents aren’t pointed in the right direction.

MCP servers, plugins, skills, subagent definitions, and a repository’s `CLAUDE.md` file are dependencies too, and they deserve the review you give a package. Unlike a compromised library, which waits to be called, they reach the agent as soon as they load. Their descriptions and instructions enter the context window before the agent has done any work.

How to mitigate

Point agents at an internal registry of vetted packages, and use the egress allowlist to make it the only one they can reach. Cloud sessions allow public registries by default, so set network access on your share
lumpa32
🟧 echo.blog ⭐Anthropic's enterprise guide explains coding-agent risks including prompt injection, credential exposure, privilege abuse, and unsafe dependAnthropic——
🟧 hnThe enterprise guide to securing coding agentssaikatsg20

Interpretation history

Decision trace