git
1 post · all tags
-
GitSpawn: How a .git Folder Can Run Code Before Your AI Agent Asks Permission
AI coding agents run
gitcommands in the background all the time. Not because you asked — becausegit statusandgit logare how the agent figures out what it’s looking at when it opens a project. No approval prompt, because they’re “just reads.”Manifold Security showed that assumption is wrong. A project folder can carry a
.git/configline that turns the agent’s very first orientation step into arbitrary code execution — before the workspace-trust prompt, outside the agent’s sandbox, running with your own user permissions. They call the bug class GitSpawn, and it hit seven AI coding tools, including Claude Code, Cursor, and Codex.