September 1, 2026
GitSpawn: malicious .git/config files execute attacker code silently in Claude Code, Codex, Cursor, and four other AI coding agents
Manifold Security disclosed GitSpawn, a class of eight vulnerabilities across seven AI coding agents that allows a malicious repository to run attacker code the moment a developer opens it. The attack exploits core.fsmonitor, a Git performance setting whose value is a shell command Git runs automatically on every git status and git diff. AI coding agents run these commands in the background to gather context, in some cases before the workspace-trust prompt appears. Affected agents include Claude Code, OpenAI Codex, Cursor, Goose, Hermes, Qwen Code, and Grok Build. Four of the eight flaws remained unpatched as of September 1, 2026.
GitSpawn materializes as anomalous outbound API calls and credential exfiltration from the developer environment. Salt's agentic API monitoring detects deviations from established behavioral baselines, including unexpected outbound connections and credential-adjacent API activity triggered silently through background git operations, before stolen secrets can be used for lateral movement.
Agentic/MCP
Read full story