---
type: "post"
id: "the-enterprise-guide-to-securing-coding-agents-837403"
slug: "the-enterprise-guide-to-securing-coding-agents-837403"
title: "The enterprise guide to securing coding agents"
description: "Anthropic’s enterprise guide to securing coding agents sets out a layered approach to deploying Claude Code: evaluate the provider and model, constrain the runtime environment, and inspect actions and outputs independently."
retrieval_nugget: "Anthropic’s enterprise guide to securing coding agents sets out a layered approach to deploying Claude Code: evaluate the provider and model, constrain the runtime environment, and inspect actions and outputs independently. Its practical recommendations matter to teams moving agents into CI and shared engineering workflows, where a compromised or over-permissioned agent can expose credentials, code or data."
published_at: "2026-11-24"
updated_at: "2026-11-24"
record_date: "2026-11-24"
date_kind: "published_at"
topics: ["anthropic","claude","claude-code"]
entities: ["Anthropic","Claude Code","Salesforce","AWS","Google Cloud","Microsoft Azure"]
related_patterns: ["agent-security-moves-to-runtime-boundaries"]
novelty_label: "new_fact"
what_changed: "Anthropic adds enterprise-specific guidance for securing Claude Code at scale, including layered controls for prompt injection and privilege abuse, and reports Salesforce productivity and incident metrics."
prior_refs: []
source_url: "https://claude.com/resources/articles/enterprise-guide-to-securing-coding-agents"
source_urls: ["https://claude.com/resources/articles/enterprise-guide-to-securing-coding-agents"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:the-enterprise-guide-to-securing-coding-agents-837403"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/the-enterprise-guide-to-securing-coding-agents-837403/","markdown":"https://newruntime.com/posts/the-enterprise-guide-to-securing-coding-agents-837403.md","json":"https://newruntime.com/posts/the-enterprise-guide-to-securing-coding-agents-837403.json"}
markdown_url: "https://newruntime.com/posts/the-enterprise-guide-to-securing-coding-agents-837403.md"
---

# The enterprise guide to securing coding agents

## Retrieval answer

Anthropic’s enterprise guide to securing coding agents sets out a layered approach to deploying Claude Code: evaluate the provider and model, constrain the runtime environment, and inspect actions and outputs independently. Its practical recommendations matter to teams moving agents into CI and shared engineering workflows, where a compromised or over-permissioned agent can expose credentials, code or data.

## Summary
Anthropic’s enterprise guide to securing coding agents sets out a layered approach to deploying Claude Code: evaluate the provider and model, constrain the runtime environment, and inspect actions and outputs independently. Its practical recommendations matter to teams moving agents into CI and shared engineering workflows, where a compromised or over-permissioned agent can expose credentials, code or data.

## What happened
Anthropic published *The enterprise guide to securing coding agents* on November 23, 2026. It is an 18-minute guide aimed at security and technical leaders, and written for organizations on Claude Team and Enterprise plans. Anthropic says the same security principles and local controls apply when Claude is accessed through AWS, Google Cloud or Microsoft Azure. The guide frames its approach around three layers: the model, the environment around it, and external checks on what enters and leaves the system.

The guide starts with six questions for evaluating any coding agent: whether the model refuses harmful requests; whether actions are automatically checked outside the model; whether the environment bounds the blast radius; whether policy can be locked centrally; whether generated code is reviewed for security; and whether an incident can be reconstructed. Its examples of stronger answers include kernel-level sandboxing that administrators can make fail closed, network egress allowlisting, managed hard-deny settings, automated security review with human approval for high-risk changes, and session telemetry export. It contrasts those controls with relying on instructions to the model or on developer-level configuration that users can override.

Anthropic then describes risks that become more consequential as agents act faster and at greater scale: credential leakage and privilege abuse, unvetted dependencies and extensions, data exfiltration, and prompt injection. Its recommendations include removing standing secrets, using workload identity or OIDC to issue short-lived tokens scoped to a job or session, and using hooks and push-time scanning to catch secrets. For CI/CD, it recommends giving an agent a distinct identity that can be scoped and revoked without changing a developer’s account; Anthropic points to its GitHub Action, which runs as its own GitHub App. It also recommends retaining session transcripts and exporting OpenTelemetry data to help reconstruct agent activity.

The dependency guidance extends beyond packages. Anthropic says MCP servers, plugins, skills, subagent definitions and a repository’s `CLAUDE.md` should receive dependency-level review because their instructions enter the agent’s context when they load. Teams can direct agents to an internal vetted package registry and use egress controls to restrict access to it, pin versions, automate upgrade pull requests, and apply marketplace allowlisting to extensions. The page also describes Claude Code controls and enterprise options, including single sign-on and role-based access control on Enterprise, data-handling terms, encryption choices through cloud providers, and audit capabilities.

The guide reports that Salesforce, after standardizing on Claude Code across its engineering organization, reported 79% more pull requests merged per developer and 5% fewer total incidents. Anthropic presents these figures as Salesforce’s report; they are not a controlled evaluation of the security recommendations in this guide.

## What the archive adds
New Runtime’s earlier coverage has tracked adjacent parts of the coding-agent security problem. On October 31, 2026, [Adversa AI’s coding-agent security platform](https://newruntime.com/posts/adversa-ai-launches-coding-agent-security-platform-for-282ec1/) described runtime monitoring and blocking across model calls, tool executions and endpoint actions. On November 12, an [earlier note on operating Claude Managed Agents inside a security perimeter](https://newruntime.com/posts/operate-claude-managed-agents-inside-your-security-perimeter-119ad1/) covered a private beta for self-hosted agents. Anthropic’s guide is a new fact on this developing story: a vendor’s broad enterprise framework and operational checklist, rather than a separate runtime product or hosting option.

## Trend signal
This supports the shift toward runtime-level agent security: [agent security moves to runtime boundaries](https://newruntime.com/patterns/agent-security-moves-to-runtime-boundaries/). Anthropic argues that model refusals and prompts are only one layer; permissions, sandboxing, network boundaries and external checks constrain what an agent can actually do. Its emphasis on separate identities and auditable actions also aligns with the [delegated-agent identity shift](https://newruntime.com/shifts/delegated-agent-identity/): activity performed under a human’s account can be difficult to distinguish during incident response. The guide makes these controls concrete for coding workflows, although it does not establish that every organization has adopted them.

## Why now
Anthropic’s guide says coding agents are already writing code and opening pull requests at organizations, and that some enterprises are using them to review, test and merge code as well. The timing reflects a shift from experimentation toward agents participating in consequential engineering workflows, where the controls around credentials, changes and network access need to be designed alongside deployment.

## Connections to other events
The guide’s focus on controls beneath agent workflows complements New Runtime’s [earlier coverage of always-on agent architecture](https://newruntime.com/posts/building-always-on-agents-claude-by-anthropic-b69b9f/), published November 13, 2026. That note covered context management and proactive action; this guide addresses the security boundaries needed when such agents operate inside an organization. Together they point to a practical deployment question: what can an agent retain and do, and how can its actions be observed and stopped?

## Why it matters
For engineering teams, the crucial shift is from treating an agent as a developer’s convenient assistant to treating it as a workload with its own access, dependencies and audit trail. If an agent inherits a developer’s broad credentials, incident response may show only the human identity and revoking access can disrupt that person’s work. A distinct CI identity, short-lived scoped credentials and centralized policy make the agent’s authority easier to limit and revoke.

The same logic applies to what enters the agent’s context and where it can send data. A package, skill or MCP server can influence the agent as soon as it loads, so ordinary dependency review and network restrictions become part of agent security. Teams can use Anthropic’s six questions as a procurement and readiness checklist, then translate the answers into enforceable controls: sandbox defaults, egress policy, approval gates and telemetry. These controls do not eliminate prompt injection or misuse, but they can reduce the blast radius and make failures more legible.

## Limits and uncertainty
The guide is Anthropic’s vendor-authored security framework, not an independent audit of Claude Code or a comparative assessment of coding agents. The Salesforce figures are reported by Salesforce and do not isolate the effect of Claude Code or establish that the guide’s controls caused the outcomes. The recommendations also span different environments and plan features, so implementation details will vary by deployment. Organizations still need to validate whether their own sandbox, identity, logging and network controls behave as intended, including under prompt injection and other adversarial conditions.

## Skill to build now
Map one coding-agent workflow from credentials to outbound network access. For each step, record whose identity the agent uses, what permissions it receives, which packages and extensions it can load, and how its actions are logged. Then choose one job—such as a CI pull-request task—and test a short-lived, narrowly scoped identity that can be revoked independently. If it can reach package registries, restrict the workflow to a vetted registry and confirm that an attempted connection elsewhere is blocked.

## Reader takeaway
An enterprise coding agent needs more than a careful system prompt. Give it a bounded environment, task-scoped identity and credentials, reviewed extensions, controlled network access and an audit trail. Those controls make risk easier to contain and investigate as agents take on more of the software delivery process.

## Open question
How will organizations measure whether layered controls meaningfully reduce agent-driven incidents without making routine engineering work impractical?

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Anthropic](https://newruntime.com/topics/anthropic.md): Explore the anthropic topic hub.
- topic hub: [Claude](https://newruntime.com/topics/claude.md): Explore the claude topic hub.
- topic hub: [Claude Code](https://newruntime.com/topics/claude-code.md): Explore the claude-code topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
