Git config can execute before agent approval

A security research post found that starting Claude Code, Goose, Grok Build, Hermes, or Qwen Code in a repository can run a Git-configured command before an approval prompt. The command runs on the host with the user’s privileges.
Git refreshes its index for common context checks such as status and diff. A repository’s core.fsmonitor setting can name the helper Git runs during that refresh.
Cloning, fetching, and pulling don’t carry the configuration. The researchers used .zip files containing the repository’s .git directory for every proof of concept.
Up next
Muse Code exits beta with SDK and subscriptions
Three subscription tiers from $5 to $50 accompany Muse Code’s beta exit, per The New Stack. Meta says the $5 plan typically covers around 10 to 50 requests every five hours.
Related stories
- Coding agents installed unclaimed packages from llms.txt
- A dependency wrote AGENTS.md and Codex hid the edit
- Tainted Claude Code build stayed in Cursor, Microsoft finds
- Claude Code env var lifts its last block on rm -rf ~
- Cursor pulls Claude Code 2.1.313 after SSH backdoor found
- Embedded browsers in Codex and VS Code leak the whole disk
Comments
No comments yet. Be the first.
Join the conversation
Sign in to leave a comment. It appears after moderation.

