About the book
Your developers already have an AI agent with a shell. Now secure it.
Claude Code reads repositories, runs commands, calls MCP servers, and reaches the network on a developer's behalf. This book shows security teams how to govern it with every control the tool exposes, layered into a deployment you can defend in an audit.
What's in the book
- A threat model for agentic coding tools, with a STRIDE threat table
- Managed settings, locked permission modes, fail-closed policy
- Sandboxing, credential masking, and egress control
- MCP, plugin, and marketplace supply-chain control
- OpenTelemetry audit events mapped to 10 SIEM detections (Splunk SPL and KQL)
- Three managed-settings baselines: Strict, Standard, and Research
- A control mapping to NIST CSF 2.0, ISO 27001, and the OWASP LLM Top 10
- A phased rollout plan and an incident response playbook
Contents
- 1Threat model for an agentic coding tool
- 2Architecture and data flow
- 3Identity, authentication, provider lock-down
- 4Policy delivery: managed settings
- 5Permissions and permission modes
- 6Sandboxing and isolation
- 7Extension supply chain: MCP, plugins, skills, mods
- 8Hooks as enforcement
- 9Network, egress, and LLM gateways
- 10Observability, audit, detection
- 11CI/CD, headless runs, and adjacent surfaces
- 12Rollout program and incident response
- A Managed-settings baselines
- B Control mapping
- C Detection query pack
- D Snapshot, change log, and source index
Excerpt
Excerpt from Chapter 4
Two commands answer "is the policy in force?". /status shows the Setting sources line — (remote), (plist), (HKLM), (file), (drop-ins), (helper), (parent process), or a , merged list — plus a Skipped sources line naming higher-priority sources that overrode yours. claude doctor lists every entry Claude Code dropped, with its source and field.
Make verification a runbook, not a hope. On one canary per platform per ring: run /status first — a missing Setting sources line means no managed source delivered a policy key, and the fix is a file at the right path containing at least one policy key rather than only the control keys, or a claude doctor fetch check for the server-managed path; a line naming a different source means a higher-priority document overrode yours, and Skipped sources tells you which. Then run claude doctor and archive the dropped-entries list, because a policy that loads and drops half its keys enforces only half its intent. Then exercise the behavior: open a session and confirm one representative denial per control area — a denied read, a blocked provider, a refused plugin — because a schema-valid key with a typo'd value enforces nothing while looking healthy. Repeat on every canary after every policy edit; the loop takes minutes and catches the classes of failure that otherwise surface as help-desk tickets weeks later.
Articles
- Is your Claude Code policy actually in force? A verification runbook — a three-step loop to prove the managed policy loaded, nothing was dropped, and it behaves as intended.
- Claude Code Enterprise Security Checklist — free: 59 controls across ten areas, from identity to incident response.
About the author
Ellis Vantor writes practical guides on securing developer tooling and AI agents in enterprise environments.