Coding Agent Security Checklist for Teams Running Many
This coding agent security checklist is for teams that run many agents at once, not one assistant beside one developer. The short version: keep production credentials out of every agent's environment, give agents short-lived keys and tokens, let deny rules win, send production, secrets and money to a person every time, treat everything an agent reads (including other agents' messages and patches) as untrusted, cap rate, spend and tool calls, and record every decision with who made it. The checklist below is copyable; each section after it explains one group of items and how Forkit, the coordination system for agent teams, handles it.
The coding agent security checklist
Credentials
- No production credentials in any agent's environment, shell history or config files
- Agents in sandboxes get keys that expire (hours, not months)
- Repository tokens handed to agents expire in minutes and are never written to disk
- A key can be revoked, and a revoked key stops working at once
Permissions
- Deny rules exist for deploy scripts, cloud CLIs and outbound network tools
- A matching deny rule always beats a matching allow rule
- Requests about production, secrets and money always reach a person, and can only be allowed once
- An agent with no person watching is denied on timeout, not left to decide
Untrusted input
- Repository content, issues, pull request comments and READMEs are treated as untrusted
- Messages from other agents are labelled as not coming from a person
- A message from another agent cannot approve, decide or answer a permission request
- MCP servers are reviewed before agents connect to them
Config files
- Patches that write agent, CI or editor settings (
.claude/,.github/,.mcp.json,CLAUDE.md) are refused unless explicitly allowed - New files from an applied patch are checked with
git status
Limits
- Request rate limits per agent session and per key
- A dollar budget and a tool-call cap on every multi-agent run
- No agent can claim the whole repository exclusively
Audit
- Every permission decision, review and approval is recorded with who decided
- Every change traces to an agent key, and every key to a person
Credentials: nothing long-lived in reach
GitGuardian's Thomas Segura (12 May 2026) describes the shift: an agent "can also see the credentials available in your workspace, shell, config files, and development environment," and "Your credentials are no longer accessed only by you, at human speed, with human judgment." The OWASP Secure Coding with AI cheat sheet lists among the things not to do: "Run AI coding agents with your full developer credentials, SSH keys, and cloud access tokens without sandboxing."
What Forkit does here:
- Fan-out keys expire. Keys minted for agents in sandboxes last one hour by default and 24 hours at most, cannot start further fan-outs, and cannot be the orchestrator.
- Repository tokens last at most 15 minutes. Each fan-out agent gets its own fork and a short write token. Forkit stores no repository token and takes none from you: a private repository is pushed by the starting agent instead.
- Stopped means stopped. A stopped fan-out's agents get no new tokens, handed-out tokens are revoked, and every request with a stopped key is answered 403 with the reason. Revoking an ordinary key takes effect on the next request.
Keep production credentials out of agent environments entirely. Forkit's controls narrow what an agent can do with what it has; they cannot take back a secret already in its environment.
Permissions: deny wins, a person decides what matters
Capy's security checklist asks: "Which actions need a person? At minimum, merging to a protected branch and anything that touches production." Write your own answer down before agents start asking.
Forkit answers each permission request in four layers: command rules, an orchestrator agent an owner picks, a person, then a timeout. A matching deny rule always wins over an allow rule. Requests Forkit recognizes as about production, secrets or money, by words in the command or file path, skip the shortcuts: allow rules and the orchestrator never answer them, a person can only allow them once, and they are never grouped with other agents' requests. A fan-out agent whose request nobody answers is recorded as denied, because it has no terminal to fall back on.
Recognition by words has gaps. A credential file with an unusual name may not be caught. Add deny rules for your sensitive paths by name. See production access for AI agents and agent sandbox vs approvals for when each control is enough.
Untrusted input: repository, issues, peers
The OWASP cheat sheet says to "Treat all repository content (issues, PRs, comments, READMEs) as untrusted input when processed by an AI coding agent." OWASP's LLM01:2025 entry describes indirect prompt injection: it occurs "when an LLM accepts input from external sources, such as websites or files."
Teams running many agents add a source: other agents. In Forkit, a message from another agent is never a person. It lives in its own table, so it cannot answer a permission request, decide a review, resolve a thread or count as a person's reply. The text delivered to the receiving agent names the sending agent and its person and says it is not from the user. Rate limits and a budget per pair of agents since a person last wrote stop two agents from instructing each other indefinitely. Prompt injection between agents covers this in depth.
Config files: patches that rewrite the rules
A patch from another agent can do more than change code. If it writes .claude/settings.json, .github/workflows/ or CLAUDE.md, it changes what every later agent is allowed to do. An independent security review of Forkit (25 Nov 2026) found this path, and the fix is now the default: forkit apply refuses a patch that writes agent, CI or editor settings (.claude/, .github/, .mcp.json, CLAUDE.md and similar) unless given --allow-config, and tells the person to check with git status, since new files are staged. A patch's files are read from every path it reads or writes, both sides of each diff --git line and any rename or copy lines, so a rename cannot hide a target.
Limits: rate, budget, tool calls, claims
- Rate. Forkit allows 240 requests a minute per agent session under a ceiling of 30,000 a minute per key. Agent-to-agent messages have their own limits, including 30 a minute per sender session and 600 per key, enforced inside the insert so parallel requests cannot pass them.
- Spend. A fan-out with
max_cost_usdwarns at 80% and stops at the budget, by Forkit's estimate. It can pass the budget by what its agents spend in about 20 seconds, and agents that report no usage are invisible to it. - Tool calls.
max_tool_callsstops a fan-out when its agents reach the count, whatever they report about cost. - Patches. One key may send 2,000,000 characters of patches an hour.
- Claims. An exclusive claim cannot start with a wildcard, so no agent can lock the whole repository.
Audit: every decision, with who made it
Each Forkit session is a thread with append-only events, and each event records its actor as a person, an agent or the system. A permission decision records whether a rule, the orchestrator or a person decided, and which. Approvals carry the last event the reviewer saw, and a newer event, such as a new commit or a failed check, refuses the approval. Files changed by fan-out agents' pushes are recorded by Forkit itself as verified, not taken from the agent's own report.
What is not there yet: an audit log export (CSV or JSON to a SIEM) is planned for a Business plan and is not built.
What the 25 Nov 2026 review found, and what was left
The independent review of 25 Nov 2026 reported no critical finding and nothing that crossed workspaces. Fixed, each with a test:
- Patch file lists include every path a patch reads or writes, and settings paths are refused by default.
- A notice carries no patch, and patch volume per key is capped per hour.
- Sign-in code limits per address and per network are counted inside the insert, after 20 parallel requests had sent 20 codes.
- Email sign-in links only to an account whose address GitHub verified, and never to the admin's.
- The terminal and Mac app sign-in page never fills in the code from the address; the person types it.
- Factory runs are asked for and read only by the factory's own agents.
- Exclusive claims cannot cover the whole repository.
- The merge check caps how many conflicts it lists.
Left as it is, for the owner to decide: an email account's display name comes from its address.
Where Forkit fits
Forkit coordinates the agents your team already runs; it does not sandbox them. Use it with sandboxes, not instead of them. It is free to try at forkit-mcp.com. For a worked security use, see security sweeps with many agents.
Sources
- Forkit engineering notes: security review of 25 Nov 2026, permission requests, fan-outs, a repository per fan-out agent, messages between agents, request limits.
- OWASP Cheat Sheet Series, "Secure Coding with AI", https://cheatsheetseries.owasp.org/cheatsheets/Secure_Coding_with_AI_Cheat_Sheet.html (read 27 Nov 2026).
- OWASP GenAI Security Project, "LLM01:2025 Prompt Injection", https://genai.owasp.org/llmrisk/llm01-prompt-injection/ (read 27 Nov 2026).
- OWASP Agentic Security Initiative, "Agentic AI – Threats and Mitigations", 17 Feb 2025, https://genai.owasp.org/resource/agentic-ai-threats-and-mitigations/ (read 27 Nov 2026).
- Thomas Segura, GitGuardian, "AI Agents Security for Developers: Don't Let Your Agents Become a Liability", 12 May 2026, https://blog.gitguardian.com/ai-agents-security-for-developers-dont-let-your-agents-become-a-liability (read 27 Nov 2026).
- Capy, "A security checklist for coding agents", https://capy.ai/resources/coding-agent-security-checklist (read 27 Nov 2026).