This sheet is past its review date. Deadlines or advice may have changed since 5 Nov 2026.
AI coding assistants: what can your agents reach and run?
This month, move every developer to a company account, require the tool's sandbox with bypass modes switched off in managed settings, and keep production credentials away from agents. Judge every new tool, MCP server or automation by what outsiders can write into what it reads, and what it could run, reach or merge if that text took over.
If you only do five things
Treat inputs as instructions from their authors.
Issues, pull requests, docs and config files can all steer an agent. Cline's triage agent had a shell and read any GitHub user's issues, which exposed its publishing credentials; an npm token Cline failed to rotate let an outsider publish a release9. Agents that read outsiders' text get no shell and no secrets.
Have a second person approve every agent change.
Copilot cloud agent can't approve its own pull requests, nor can the person who asked, and workflows wait for a human by default10. Local agents push as the developer4, so require approval of the latest push by someone else, as in the secure development sheet.
Roll out an assistant or agent to a team
Settle plans and data terms first.
Choose business plans that don't train on your code, check retention options and sign the processor contract the AI inputs sheet describes. Where licensing matters, block Suggestions matching public code, which only IDEs fully enforce28.
Write managed settings per tool.
Require the sandbox, in Claude Code with
failIfUnavailableandallowUnsandboxedCommands: false, which needs macOS, Linux or WSL26, disable bypass modes and allowlist MCP servers8. Push them so developers can't weaken them12.Move unattended work off laptops.
Run long autonomous tasks in the vendor's cloud sandbox or a container. Copilot cloud agent pushes to one branch only and works behind a firewall10, which covers only processes its Bash tool starts, not MCP servers, and can be bypassed11.
Protect the files that steer the agent.
Put
AGENTS.md,CLAUDE.md,.mcp.jsonand the.github,.vscode,.cursor,.claudeand.geminifolders under CODEOWNERS with Require review from Code Owners, as GitHub advises for its own agent files13.Turn on logs before the first agent pull request.
GitHub's audit log keeps agent events under
actor:Copilotfor 180 days, but no local prompts14; Claude Code exports tool decisions over OpenTelemetry15. In Germany, agree this with the works council, which co-determines monitoring tools16.
Gaps that catch teams out
- VS Code's agent sandbox leaves the network open. Outbound access stays on by default, so restrict it separately4.
- Headless runs trust the repository.
claude -pruns its hooks and.mcp.jsonservers unasked; use--setting-sources useron code you didn't write17. Gemini CLI in CI trusted a pull request's.gemini/until April 2026, a CVSS 10 flaw18. - Ignore files and deny rules leak. Copilot content exclusion skips symlinks and may miss indirect access19; Claude Code's
Readdeny rules miss scripts that open files17. Keep secrets out of the repository. - Cursor trusts every workspace. Workspace trust is off by default; enforce
security.workspace.trust.enabledthrough MDM20.
Reviewing what agents write and install
- Working code can be exploitable. If the prompt skipped security, 35% of working backends by BaxBench's top model, Claude Opus 4.5, were exploitable21. Keep agent pull requests behind the same CI gates.
- Check that every new package is real. In a 2025 study, 19.7% of packages in code from 16 early-2024 models didn't exist, and 43% of those recurred in all 10 repeats of a prompt22. Check a new dependency's history first.
- Pin MCP servers. The fake
postmark-mcpbuilt trust over 15 versions before 1.0.16 secretly BCC'd emails to an outside server23. Allowlist servers in managed settings8 and pin versions.
What changed in 2026
- Copilot offers EU data residency since April24, on Enterprise Cloud with data residency, off by default and at 10% more AI credits25.
- GitHub can require local sandboxing for Copilot, generally available since 7 October, with policies developers can't weaken12.
- Copilot's approval can count toward required approvals since 28 October, if admins allow it26. Keep it off where agents open pull requests.
- Claude Code starts in auto mode from v2.1.283, with a classifier reviewing actions;
permissions.disableAutoModeturns it off7.
What you can skip
- Banning assistants outright. It pushes developers to private accounts you can't see. The BSI and ANSSI advise offering approved tools with clear rules instead3.
- Security rules in
AGENTS.mdorCLAUDE.md. Instructions guide the model and are not an enforcement boundary4. Back each rule with a setting. - Hand-tuned command allowlists. Auto-approval rules parse commands on a best-effort basis, and aliases or quote tricks can slip past them4. A sandbox does more for less upkeep.
- Ranking models by how secure their code is. Even the top model on BaxBench writes exploitable code21. Put the effort into CI gates and review.
Mistakes that cost the most
- Giving a CI agent a shell and outsiders' text. Cline calls that "functionally equivalent to giving every GitHub user shell access"9.
- Letting a classifier approve risky work. Anthropic says auto mode doesn't guarantee safety or replace review of sensitive operations7. Add
askrules for deploys, migrations and pushes, such asBash(git push *), knowing they miss rewritten commands17. - Skipping workflow approval on agent pull requests. Admins can let workflows run on Copilot's pull requests without a human10. Keep the approval, as for outside contributors.
- Putting deployment secrets in Agents secrets. Copilot can read those. Keep what it shouldn't touch in Actions secrets, which it can't13.
- Yolo mode in a container with secrets. A malicious project can then take anything inside, including the agent's credentials27.
What this looks like at your size
Small team, no security staff
- Buy the business plan of one assistant and keep company code out of personal accounts.
- Require the sandbox and block bypass modes centrally, as Claude Code's server-managed settings on claude.ai allow without MDM6. Run autonomous tasks in the vendor's cloud agent, not in yolo mode on a laptop.
- Keep production tokens off developer laptops.
Growing, with IT or security staff
- Push managed settings by MDM: sandbox required, bypass disabled, MCP allowlist, deny rules for secret paths.
- Stream the GitHub audit log and agent telemetry to your SIEM.
- Alert on permission mode changes and new MCP servers.
Enterprise or regulated
- Turn on EU data residency or zero retention where offered, and record the tools in your DPIA.
- Run unattended agents only in cloud sandboxes or ephemeral runners with an egress allowlist and short-lived credentials.
- Red-team agent workflows with poisoned issues and pull requests before granting write access.
- Grow AppSec and review capacity with agent output, as the BSI and ANSSI advise3.