AI ENGINEERING
Claude Code Agent Security
Claude Code Agent Security is a practical course on letting Claude Code do real work without giving it the power to do real damage. Claude Code works with your access: it reads your files and runs your commands. The course starts with how an agent run goes wrong, through a simple mistake, a project that brings its own settings, or an instruction hidden in a file Claude reads.
It then builds the defenses layer by layer. Permission rules decide what may run, and you see exactly where their syntax stops protecting you. Auto mode’s classifier judges each risky action, and you learn how it decides, how to review a block, and how to tell it which infrastructure you trust. The sandbox limits what shell commands can reach at the operating system level, and managed settings lock the whole setup so that no project or user can switch it off, including for unattended runs.
Every layer is demonstrated in an AI Lab on one realistic project, a log triage tool with a planted prompt injection, so each protection is tested against the attack it is meant to stop.
Course Summary
Keep Claude Code agents safe in real work with permission rules, auto mode, the sandbox, and managed settings that no project or user can override.
Domain
AI Engineering
Vendor
Anthropic
Status
Complete
Duration
2.5 hours
Level

- Understand how an agent run goes wrong through a mistake, a project’s own settings, or prompt injection
- Recognize that Claude Code’s commands can reach anything your user account can read
- Write allow, ask, and deny permission rules and choose the right settings file for each
- Explain how rules from several settings files combine and why a deny always wins
- Identify what a permission rule can’t stop, such as a program that opens a file itself
- Understand how auto mode decides and what its classifier blocks
- Review blocked actions in /permissions and retry the ones you intended
- Define your trusted infrastructure for auto mode in your user settings
- Turn on the sandbox and verify that it is running
- Close the gaps permission rules leave with the sandbox and strict sandbox mode
- Enforce a policy with managed settings that no user or project can override
- Run Claude Code unattended with an exact list of allowed commands
- Choose when to isolate the whole agent in a container or virtual machine
This course is ideal for developers, DevOps and platform engineers, security engineers, and technical team leads who run Claude Code on real projects and want to control what an agent can read, run, and reach. It also suits administrators who set Claude Code policy for a team and need it to hold on every machine, including for unattended runs.
Participants should be comfortable working with Claude Code in the terminal, as covered in “Claude Code Agents and Automation”, and with basic command-line work and JSON settings files. A paid Claude subscription (Pro, Max, Team, or Enterprise) is required.

