Malicious .git configs make Claude Code, Codex, Cursor run attacker code pre-trust-prompt
Thionne_WTZ · x · 2026-09-03
Manifold Security has disclosed 8 flaws across 7 CLI AI coding agents where a repo's own .git/config (e.g. core.fsmonitor) names a command the agent executes with user privileges — outside the sandbox and with no approval prompt.
Key facts:
- Exploitation requires the repo to arrive as files with .git intact (archives, shared drives, sync folders, USB); a normal clone is safe
- On Claude Code and Hermes Agent the payload fires before the workspace-trust prompt; on Qwen Code before auth, on Grok Build at the first keystroke
- Patched: goose, Claude Code, Cursor. Still unpatched at publication: Hermes Agent, Qwen Code, Grok Build, and a second Claude Code path
- OpenAI shipped three CVEs the same day for the identical class in Codex
More from coding & agent
- 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
- xAI launches Grok Bot: autonomous AI teammates that live in Slack and Teams — Baconbrix · 2026-12-05