Security

Your Coding Agent Trusts `git status` More Than It Trusts You

Every vendor keynote this fall has been about autonomy: agents that plan, agents that use a computer, agents that patch their own plugins overnight. OpenAI's DevDay on September 29, 2026 leaned hard into this with…

Every vendor keynote this fall has been about autonomy: agents that plan, agents that use a computer, agents that patch their own plugins overnight. OpenAI's DevDay on September 29, 2026 leaned hard into this with GPT-6.1 Sol and computer-use support in the Agents API. The pitch is always the same — less human in the loop, more throughput.

The real story this quarter is quieter and less flattering: a cluster of disclosures shows that almost every major AI coding agent — Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Goose, Qwen Code, Grok Build — has shipped the same category of mistake. They trust things they shouldn't, before the user ever gets a say. If you're rolling these tools out to a team, the keynote demos are not the thing to evaluate. This is.

GitSpawn: opening a folder was the exploit

Manifold Security published "GitSpawn" on September 1, 2026, and the Cloud Security Alliance's research labs independently confirmed it on September 4, 2026 (evidenced — two independent write-ups, consistent technical detail). The bug lives in core.fsmonitor, a legitimate Git setting that names a helper program Git runs on index refresh. Git reads it from the repository's own .git/config, not a trusted global file.

AI coding agents routinely run background git status or git diff calls to orient themselves the moment they open a project — before any workspace-trust prompt, before any model-level approval step. A repository can ship a poisoned .git/config with a malicious core.fsmonitor command, and that command runs with the developer's own privileges the instant the agent looks at the repo. No social engineering beyond getting the folder onto the victim's machine — a cloned repo, a shared zip, a CI checkout.

Manifold reported eight findings across seven agents. At publication: Claude Code's core path, OpenAI Codex, and Cursor were patched; Block's Goose was patched (CVE-2026-72718); Qwen Code, Grok Build, Hermes Agent, and a second Claude Code code path were still unpatched. Hermes Agent's maintainers reportedly didn't respond to six contact attempts across five channels.

Why it matters in practice: sandboxing and approval prompts are the whole safety model these tools advertise. GitSpawn shows that "context gathering" — the stuff agents do before you've approved anything — is its own, usually unaudited, trust boundary. If your team lets an agent open arbitrary cloned repos (interview candidates' take-home repos, third-party forks, anything from an untrusted source), treat that as code execution, not read access.

Plugin4Shell: the pin that wasn't a pin

Air Security disclosed "Plugin4Shell" on September 17, 2026, after reporting it privately to Anthropic, OpenAI, Google, and Microsoft back in June (evidenced — vendor-confirmed patch timeline, corroborated across multiple independent security blogs). Plugin marketplaces for these agents pin third-party add-ons to a specific commit SHA as a safety measure. The flaw: a repository owner can create a branch whose name happens to match the pinned SHA. Git's checkout behavior can resolve to that branch instead of the immutable commit, so the agent's automatic plugin update silently installs attacker-controlled code while the pin still looks honored.

Because these agents refresh plugins automatically and quietly, this is zero-click: no one has to install anything new, just keep using a plugin they already trusted.

Patch status varies by vendor and matters more than any CVSS score here: Anthropic had a silent fix in Claude Code 2.1.179 (released June 16) months before public disclosure; OpenAI patched Codex roughly seven weeks after the private report. Microsoft had not shipped a fix for GitHub Copilot as of disclosure. Google is reportedly not fixing Gemini CLI because the product is being retired.

Why it matters in practice: "pinned to a commit hash" is a common shorthand for "verified and safe" in supply-chain conversations generally, and this shows the shorthand can be wrong at the implementation level. If your org uses agent plugins or MCP servers pinned by commit, confirm the client actually verifies the resolved commit hash — not just that a pin value exists in a config file.

The same pattern, a few months earlier

This isn't a one-off. CVE-2026-35603, patched in Claude Code 2.1.75 and published to NVD on April 17, 2026, is the same shape of bug in a different place: on Windows, Claude Code loaded system-wide settings from C:\ProgramData\ClaudeCode\managed-settings.json, a location any standard user can write to by default, with no ownership check. A low-privileged user could plant a config there and have it silently loaded — and potentially executed via hooks — the next time any user, including an admin, launched the tool. Anthropic's fix relocated managed settings to a write-protected Program Files path (evidenced — NVD record, corroborated by GitHub Advisory Database and SentinelOne's vulnerability database).

Three vendors, three different trust surfaces — git config, plugin pins, OS config directories — one recurring root cause: agent tooling assumes a surface is trustworthy because it's local, or pinned, or system-level, without checking who actually controls it.

What to actually do about it

None of this means "don't use coding agents." It means treat agent tooling with the same supply-chain discipline you'd apply to a CI runner, because functionally that's what it is — a thing that executes code on your behalf with your credentials, triggered by content you didn't author.

  • Patch and pin versions deliberately. Several of these bugs are already fixed — Claude Code 2.1.196+ for GitSpawn's core path, 2.1.179+ for Plugin4Shell, 2.1.75+ for the Windows config issue. Check your fleet's actual installed versions; "we use Claude Code" is not a patch status.
  • Treat untrusted repos as code, not data. Don't open candidate take-homes, random forks, or unvetted clones in an agent session on a machine with real credentials. Use a disposable VM or container if you must.
  • Audit plugin and MCP auto-update behavior. Confirm your agent verifies resolved commit hashes, not just that a pin is configured — and know whether auto-update is on by default for your tooling.
  • Lock down shared config paths. On Windows fleets especially, check whether any agent tooling writes defaults to a world-writable system directory, and whether that's been remediated for your installed version.
  • Don't assume a vendor fixed it just because a competitor did. Patch status in this cluster of bugs varies wildly by vendor, sometimes by months, for what is close to the identical flaw.

Unverified claims or gaps

  • A reported sandbox escape in OpenAI's Codex CLI/Desktop and a separate escape in "DeepSeek Harness" (CVE-2026-82533) were surfaced in only one security-vendor blog each during this research; I could not independently corroborate the technical details against a second source, so they're omitted from the body above.
  • A reported leak of 13,000+ developer screenshots ("PixelLeak") pushed to public repos by agents working around PR-attachment limits came from a single blog source and is likewise omitted pending corroboration.
  • Current patch status for Cursor, GitHub Copilot, and Gemini CLI on GitSpawn/Plugin4Shell may have changed since the cited publication dates (early-to-mid September 2026) — verify against each vendor's current release notes before publishing.
  • I could not access Anthropic's, OpenAI's, Google's, or Microsoft's own advisories directly for this research; the vendor-patch claims above rely on third-party security researchers' reporting of vendor fixes, cross-checked across at least two independent sources where noted.

Sources

  1. Manifold Security, "GitSpawn: A Single Flaw Lets Untrusted Repos Run Code in Claude Code, Codex, Cursor, and Grok," September 1, 2026 — https://www.manifold.security/blog/ai-coding-agents-git-hijack
  2. Cloud Security Alliance Research Labs, "CSA Research Note: AI Coding Agent Git Config RCE," September 4, 2026 — https://labs.cloudsecurityalliance.org/research/csa-research-note-ai-coding-agent-git-config-rce-20260904-cs/
  3. Air Security (via secondary reporting), "Plugin4Shell: zero-click RCE vulnerability," disclosed September 17, 2026 — referenced via https://thenextweb.com/news/plugin4shell-ai-coding-agents-zero-click-rce-sha-pinning
  4. NIST National Vulnerability Database, "CVE-2026-35603 Detail," published April 17, 2026 — https://nvd.nist.gov/vuln/detail/CVE-2026-35603
  5. GitLab Advisory Database, "CVE-2026-35603: Claude Code: Insecure System-Wide Configuration Loading Enables Local Privilege Escalation on Windows" — https://advisories.gitlab.com/npm/@anthropic-ai/claude-code/CVE-2026-35603/
  6. SentinelOne Vulnerability Database, "CVE-2026-35603: Claude Code Privilege Escalation Flaw" — https://www.sentinelone.com/vulnerability-database/cve-2026-35603/
  7. InfoQ, "OpenAI DevDay 2026 Recap for Developers," October 2026 (event held September 29, 2026) — https://www.infoq.com/news/2026/10/openai-devday-2026/
Next essay

Three New AI Models in One Week, and Why the Price Matters More Than Who's Smartest

5 min read