Blog / 26 November 2026

Deep dive · 26 November 2026 · 9 min read

Zero Trust for AI coding agents: a 12-point checklist for CISOs

AI coding agents run commands, install packages and push code with a developer's access. Zero Trust means none of that access is assumed: each agent is a named identity, runs in its own machine, reaches only listed hosts, never holds a real secret, and leaves a record it cannot edit. Here are 12 points to require, and the evidence to ask for at each one.

zero trust ai coding agentsciso ai agent checklistai coding agent governancenon-human identity ai agentsshadow ai agents

01Why coding agents need a Zero Trust policy

Coding agents are already in your company, whether or not you approved them. Developers run Claude Code, Cursor, Codex or Copilot in the terminal. Each one reads untrusted text all day: issues, docs, dependencies, web pages. Any of it can carry instructions. OWASP lists Agent Goal Hijack, Tool Misuse and Identity and Privilege Abuse at the top of its Top 10 for Agentic Applications.

The usual setup trusts the agent because of where it runs: on a laptop that holds SSH keys, cloud credentials and a GitHub token. That is the implicit trust NIST SP 800-207 tells you to remove. This checklist applies the same model to agents. It is written for the people who must sign off on agent use. For the engineering detail behind each control, read our pillar guide, Zero Trust sandboxes for AI agents. For a longer, engineer-level list mapped to OWASP, see The AI agent security checklist for 2026.

02Identity and inventory (points 1 and 2)

You cannot govern agents you cannot see, or blame an action on "an agent".

  • 1. Keep an inventory of every coding agent. Which tools, which versions, on which machines, CI runners and cloud accounts. Ask for: a list your team can regenerate, not a survey.
  • 2. Give each agent an identity and a human owner. An agent should not act as "whoever launched it". Each one needs its own credentials and a named person accountable for it. Ask for: a log entry that names both the agent and its owner.

03Isolation and network (points 3 and 4)

These two points decide what a hijacked agent can touch.

  • 3. Run agent code in its own machine, not the developer's session. A microVM with its own kernel, one workspace folder and no access to home directories, SSH keys or cloud config. A container is weaker, because it shares the host kernel; we compare the options in Container vs microVM vs Zero Trust sandbox. Ask for: proof that ~/.ssh and ~/.aws are not visible inside.
  • 4. Close the network by default. Allow only the hosts each task needs, enforce it outside the agent's machine, and answer DNS for listed names only. Keep hosts that accept uploads, such as paste sites, off the list. Ask for: the allow-list, who approved it, and a log of refused connections. Background: How AI agent egress control really works.

04Secrets and repository access (points 5 and 6)

Most agent incidents are credential incidents. Treat every key an agent can read as already exposed.

  • 5. No real secret inside the agent's environment. Model keys and API tokens stay with a broker outside the sandbox, which adds them to requests for the right host only. The agent holds a placeholder. Ask for: a printout of the agent's environment showing no real key. See why the key should never enter the sandbox.
  • 6. Least-privilege, short-lived repository access. One repository, the fewest permissions, tokens that expire quickly. GitHub's fine-grained tokens let you scope to single repositories. Agent work should land as a pull request for review, never as a direct push to a protected branch. Ask for: the token scopes and branch protection settings.

05Approvals and supply chain (points 7, 8 and 9)

In July 2025 an AI coding tool deleted a company's production database during a code freeze. The lesson is simple: irreversible actions need a person.

  • 7. Human approval for irreversible actions. Deleting data, deploying, merging, spending money and widening access wait for a named person. Approvals cover one exact action, once. No agent may approve its own request. For production changes, consider two approvers. Ask for: the list of actions that always ask, and a sample approval record. OWASP calls the failure Excessive Agency.
  • 8. Pin and review agent tools. MCP servers, IDE extensions and agent skills are code and instructions from third parties. Pin each tool's definition, hold changes for review, and run third-party servers in their own sandbox. Ask for: an approved-tools list and what happens when a tool changes. See MCP tool poisoning and rug pulls.
  • 9. Control what agents install. Agents run npm install and pip install on their own. Limit registries, pin versions where you can, and keep install-time network access to the registries you approve. Ask for: the allowed registries and how a new one gets added.

06Evidence and response (points 10, 11 and 12)

Auditors and incident responders ask the same question: what exactly happened? Plan for it before the first incident.

  • 10. A tamper-evident audit log, outside the agent's reach. Every command, network request and tool decision, allowed or refused, with the actor named. Chained so edits show, and copied to your SIEM. Ask for: a verification run on the log. See what an audit log for AI agents should record.
  • 11. A kill switch and a runbook. One action that stops every agent, plus steps to rotate the keys they could use. Every sandbox should also have a time limit. Ask for: the date of the last drill.
  • 12. Map evidence to your frameworks and test the controls. Agents fall under existing controls on access, change and monitoring, such as SOC 2's common criteria (see Does SOC 2 apply to AI agents?) and record-keeping duties like EU AI Act Article 12. Then test: run injection scenarios against a real agent setup and check that the controls held. Ask for: an evidence export for one sandbox and the latest test results.

07The 12 points on one page

Copy this into your agent policy. Each line should have an owner and a piece of evidence.

  • Inventory of every coding agent and where it runs.
  • An identity and a human owner for each agent.
  • Agent code runs in its own microVM, seeing one folder.
  • Network closed by default, enforced outside the agent.
  • No real secrets inside the agent's environment.
  • Least-privilege, short-lived repository tokens; work lands as pull requests.
  • Named-person approval for irreversible actions; agents never approve.
  • Agent tools pinned and reviewed.
  • Package installs limited to approved registries.
  • Tamper-evident audit log, copied to the SIEM.
  • Kill switch, key rotation runbook and time limits.
  • Evidence mapped to frameworks, and controls tested.

08How kosa8 covers the twelve points

kosa8 is Zero Trust cybersecurity infrastructure for AI agents. It covers points 3 to 5, 7, 8, 10 and 11 directly, and gives evidence for 2, 6, 9 and 12. Point 1, the inventory, stays with you.

kosa8 agent run -w ~/code/api claude runs Claude Code in its own microVM that sees one folder, with the network closed except through the egress broker and the model key kept on the host. kosa8 hooks install claude-code puts kosa8's checks in front of each tool call Claude Code makes on a developer's machine; Cursor, Codex, Gemini CLI and Copilot CLI are supported too. Destructive and boundary-widening actions ask every time and cannot be auto-approved, and named approvers sign approvals. Tool definitions are pinned. Per-agent tokens put each agent's name in the audit entries it causes.

The audit log is hash-chained on the host and checked by kosa8 audit verify. kosa8 evidence export --sandbox api writes a signed evidence package for one sandbox, and the compliance page maps kosa8's evidence to SOC 2 CC6 to CC8, the EU AI Act and ISO/IEC 42001, as evidence, not an assessment. On the GitHub side, kosa8 grants one repository and one operation at a time, and agent work lands as draft pull requests. A built-in attack self-test runs 9 scenarios mapped to the OWASP LLM Top 10 and MITRE ATLAS. It is a self-test, not a pen test.

Limits to know: a sandbox you create by hand is open to the network unless you or your organization set egress rules, and the Docker-compatible kosa8 run shares one VM unless policy requires a sandbox. kosa8's own SOC 2 Type II audit is in progress, with the report expected in January 2027; it has had no external penetration test yet.

Takeaways

  1. Remove the implicit trust coding agents get from running on a developer's machine.
  2. Give each agent an identity, an owner, its own microVM and a closed network.
  3. Keep real secrets out of the agent, and scope repository tokens to one repository.
  4. Irreversible actions wait for a named person; agents never approve.
  5. Ask for evidence at every point: allow-lists, approval records, a verified audit log and test results.

Where kosa8 fits · Zero Trust cybersecurity infrastructure for AI agents

kosa8 runs each coding agent in its own microVM with a closed network, brokered keys, approvals and a hash-chained audit log, all enforced on the host. Install it on one developer machine today, start free with no card, or talk to us about a pilot.

Read next: AI security for the enterprise · AI for cybersecurity · Cybersecurity for AI agents, topic by topic

Check yourself · +100 XP

A coding agent's GitHub token can push to any repository in the organization. Which checklist point does that break?

Questions people ask

What does Zero Trust mean for AI coding agents?

It means an agent gets no trust from where it runs. Each agent is a named identity with an owner, runs in an isolated machine, reaches only listed hosts, uses keys it cannot read, needs a person for irreversible actions, and is logged where it cannot edit the record.

What should a CISO ask before approving Claude Code, Cursor or Codex?

Ask where the agent's commands run, what it can reach on the network, which secrets it can read, which actions need approval, and where the log of its actions lives. Then ask for evidence for each answer, not a description.

Are AI coding agents in scope for SOC 2?

If an agent can change systems or data inside your SOC 2 scope, the existing common criteria on logical access, change management and monitoring apply to it. Treat it as another identity with access.

How do you find shadow AI agents?

Start with what developers install: agent CLIs, IDE extensions and MCP server configs on laptops and CI runners. Then look for model API traffic and tokens issued to automation. Make the approved path easier than the shadow one.

Sources

  1. SP 800-207, Zero Trust Architecture — NIST
  2. Zero Trust Maturity Model — CISA
  3. OWASP Top 10 for Agentic Applications for 2026 — OWASP Gen AI Security Project
  4. LLM06:2025 Excessive Agency — OWASP Gen AI Security Project
  5. Managing your personal access tokens — GitHub Docs
  6. An AI-powered coding tool wiped out a software company's database, then apologized for a 'catastrophic failure on my part' — Fortune
  7. Article 12: Record-Keeping — EU Artificial Intelligence Act
  8. Agent hooks for Claude Code and Cursor — kosa8 docs

Written by the kosa8 team. Every kosa8 command was checked against the CLI, and every claim about another product links to that product's own documentation. Spotted a mistake? Tell us.

Try it on your own machine

Give your next agent its own sealed machine.

One line installs kosa8 on your own machine. Start free with no card; plans from $29 a month.