Malicious .git configs can make Claude, Codex, Cursor AI agents run attacker code
jedisct1 · x · 2026-09-03
Manifold Security disclosed eight flaws across seven CLI AI coding agents where a repo's own Git config (e.g. core.fsmonitor) names a command the agent executes on the developer's machine—running as the user, outside the sandbox, with no approval prompt. Four flaws were unpatched at disclosure.
- Exploitation requires the repo to arrive as files with its .git directory intact (shared archive, sync folder, USB); a normal clone is safe
- Fixed: goose, Claude Code, Cursor. Still executing repo-supplied commands on retest: Hermes Agent, Qwen Code, Grok Build, and a second Claude Code path
- Payload fires before workspace-trust acceptance (Claude Code, Hermes), before auth (Qwen Code), or on first keystroke (Grok Build)
- OpenAI issued three CVEs for the same class in Codex, noting the helper can read, change, or delete user files
More from coding & agent
- Dev feedback: decoupling rex sessions from native windows is harder to adapt to than expected — alexisgallagher · 2026-12-05
- Salesforce research: buyer agents concede too easily, images boost persuasion ~17% — msrivastav13 · 2026-12-05
- Grok Build launches agent-driven post-quantum cryptography migration after NSA advisory, with $1,000 credits — ns123abc · 2026-12-05
- Seroter's reading list: post-quantum prep, agent harnesses, and life after 99% AI code — rseroter · 2026-12-05
- WSDM Cup 2027 Offers $10k to Build Autonomous Community Notes Agents — sanmikoyejo · 2026-12-05
- Trying Copilot Studio MCP for agent cloning and Power Automate sync: janky but workable — koltregaskes · 2026-12-05