Assume a breach. If this agent obeys an attacker at this moment, what can it read, what can it change, and where can it send data? Each item below makes that answer smaller.
Accounts and sign-in for people
- Use one AI plan with company accounts. Bind each seat to the company login (single sign-on). Do not share API keys between people.
- Make a hardware security key or a passkey mandatory for the company login, the code host and the password manager. Give each person two keys.
- Keep administration apart. Daily work uses an account with no administrator rights. Few people are owners.
- Write down who cancels which access when a person leaves or a key is lost. Do the procedure one time as a test.
Shared settings for the agent software
- Send managed settings to each computer from the organisation console or by device management. Turn the sandbox on. Lock the bypass mode off (
permissions.disableBypassPermissionsMode). Permit only managed permission rules, managed connectors and managed hooks. Codex usesrequirements.toml. - Review each change to the files that steer the agent. Put CODEOWNERS and branch protection on
.claude/,.cursor/,.vscode/,AGENTS.md,CLAUDE.md,.mcp.jsonand.github/workflows/. - Keep one written list of approved connectors, skills, extensions and models. Add the date of the last check of the terms of service for each service.
- Fix each GitHub Action to one exact commit hash. Add a check for hidden Unicode characters to the build pipeline.
Identity and access for agents
- Use one GitHub App for each agent use case. Set a maximum lifetime for personal access tokens in the organisation settings.
- Move each secret to a shared secret manager. No secret stays in a
.envfile or in a connector configuration file. - Name one human owner for each agent. The owner knows what the agent does and can stop it.
- Send connector traffic through one entry point that has user sign-in and a log. Examples are Cloudflare MCP server portals and the self-hosted gateways Obot and ContextForge.
- Give an agent that handles mail or purchases its own mailbox and a card with a limit. Its key can create a draft but cannot send.
- Run unattended work in cloud sessions or in the build pipeline, where the key stays behind a proxy. Do not run it on a laptop.
Data
- Define three data classes and the tools and plans that each class can use.
- Correct the files that are shared too widely before you turn on an assistant that searches all company files.
Records, tests and response
- Keep the evidence away from the computers of the developers. Run one OpenTelemetry Collector and log the tool details. Keep the logs for a minimum of six months. Name one person who reads them each week.
- Send an alert when a person or an agent changes the agent settings. In Claude Code, a
ConfigChangehook can block the change. - Add an attack test to the build pipeline (promptfoo or garak). At regular intervals, put a harmless test instruction in a README or a ticket, to see if the agent obeys it.
- Name who stops an agent and who replaces its keys. Write a one-page incident procedure and an acceptable use policy.
- Keep the backups under an account that nobody uses for daily work. Test a restore each quarter. A second person approves each payment above a set amount.
Evidence and sources: the MHL handbook "Zero Trust for AI Agent Deployment", sections "Small team" and "The three scenarios compared". The sequence of the items is our inference from the causes of incidents and from vendor documentation. No standard gives a set of controls for each size of organisation.