█

AI/TLDR

Manifold Security · 1 सित॰ 2026 · प्रमुख

GitSpawn — किसी repo का git config Claude Code, Codex और Cursor में code चला सकता है

संक्षेप में

GitSpawn एक attack है, जिसे Manifold Security ने 1 सितंबर को प्रकाशित किया। किसी फ़ोल्डर की अपनी .git/config फ़ाइल core.fsmonitor में एक program का नाम दे सकती है, और coding agent का रोज़मर्रा का git status उसे चला देता है, वह भी sandbox के बाहर और किसी trust prompt से पहले।

Manifold Security · 1 सित॰ 2026 · 3 जाँचे गए स्रोत

Manifold Security research graphic for the GitSpawn attack on AI coding agents
Manifold Security

दूषित .git/config के कारण coding agent का पहला git command किसी approval prompt से पहले attacker का program चला देता है।

मुख्य तथ्य

शोधकर्ताManifold Security
प्रकाशित1 सितंबर, 2026
मूल कारणgit किसी repository की अपनी .git/config से core.fsmonitor पढ़ता है
पैच किया गयाClaude Code 2.1.196, Goose 1.44.0, OpenAI Codex, Cursor
अब भी पैच नहीं हुआHermes Agent, Qwen Code, Grok Build
CVEsCVE-2026-72718 (Goose), CVE-2026-71963 (Hermes Agent)
बचाव का तरीकाgit -c core.fsmonitor=false status

यह क्या है?

GitSpawn core.fsmonitor नाम की git setting का दुरुपयोग करता है, जो एक बाहरी program की ओर इशारा करती है और git उसे index checks तेज़ करने के लिए चलाता है। यह setting किसी repository की अपनी .git/config में रहती है, इसलिए कोई फ़ोल्डर इसे साथ लेकर आ सकता है। Manifold Security ने यह research 1 सितंबर, 2026 को प्रकाशित किया, जिसके लिए दो CVE असाइन किए गए हैं।

यह कैसे काम करता है?

Command-line coding agents किसी project को खोलते ही git commands चलाते हैं: Claude Code और Qwen Code में git status, Goose में git diff, ताकि पता चल सके कि repo में क्या है। ऐसा करते समय git पूरी local config का सम्मान करता है, core.fsmonitor जिस भी program का नाम देता है उसे कॉल करता है, और यह आपके privileges के साथ host पर होता है। चूँकि यह context gathering के दौरान होता है, यह workspace-trust prompt से पहले और agent के sandbox के बाहर घटित होता है।

यह क्यों मायने रखता है?

खतरनाक स्थिति वह है जब कोई project फ़ोल्डर clone करने के बजाय पूरा आपको सौंपा जाए, जैसे किसी सहकर्मी से zip फ़ाइल या shared drive से, क्योंकि केवल ऐसी प्रतियों में ही वह .git/config होता है जिसे attacker ने चुना हो। Vendors अलग-अलग स्थिति में हैं: Claude Code, Goose, OpenAI Codex और Cursor ने fixes जारी कर दिए हैं, जबकि publication के समय Hermes Agent, Qwen Code और Grok Build में ये fixes नहीं थे। जब तक हर agent अपनी git calls को sanitize नहीं करता, .git/config की जाँच करना उपयोगकर्ता की अपनी ज़िम्मेदारी है।

यह किसके लिए है?

command-line coding agents चलाने वाले developers

अक्सर पूछे जाने वाले प्रश्न

अगर आप सिर्फ GitHub से repositories clone करते हैं, तो क्या आप खतरे में हैं?
Clone, pull और fetch करने पर किसी remote repository की .git/config कॉपी नहीं होती, इसलिए GitSpawn इस रास्ते से नहीं आता। खतरा तब है जब कोई project फ़ोल्डर पूरा आ जाए, जैसे किसी सहकर्मी से zip फ़ाइल, shared drive, या वेब से डाउनलोड किया गया archive, क्योंकि ऐसी कॉपी अपनी .git directory और उसके अंदर की दूषित config साथ लाती है।
कौन से coding agents अब भी असुरक्षित हैं?
Manifold Security के अनुसार publication के समय Hermes Agent 0.21.0, Qwen Code 0.22.3 और Grok Build 1.0.13 पैच नहीं हुए थे। उसने Claude Code 2.1.252 में उसके ultrareview feature के ज़रिए एक दूसरा असुरक्षित रास्ता भी बताया है। Claude Code का core.fsmonitor रास्ता 2.1.196 में, और Goose का 1.44.0 में ठीक किया गया था, जबकि OpenAI Codex और Cursor पैच हो चुके हैं।
Agent के साथ खोलने से पहले किसी फ़ोल्डर की जाँच कैसे करें?
Manifold Security की सलाह है कि agent को कोई directory दिखाने से पहले .git/config पढ़ें, क्योंकि कोई भी setting जो किसी program का नाम देती है, वह program चला सकती है। core.fsmonitor वह है जिसका research में दुरुपयोग हुआ है, लेकिन सलाह इससे व्यापक है: किसी अनजान repository में हर उस config key को untrusted code मानें, जिसकी value executable path है।
क्या Agent का sandbox GitSpawn को रोकता है?
नहीं। GitSpawn का मूल यही है कि git context gathering के दौरान command चला देता है, agent के workspace-trust prompt से पहले और sandbox के बाहर, इसलिए payload developer के अपने privileges के साथ चलता है। वहाँ से वह SSH keys, cloud credentials, API tokens और मशीन पर मौजूद हर दूसरी repository तक पहुँच सकता है।

आज़माएँ

grep -n fsmonitor .git/config before opening an unfamiliar folder with an agent

स्रोत · 3 outlets

टैग

  • security
  • gitspawn
  • manifold-security
  • claude-code
  • cursor
  • codex
  • goose
  • qwen-code
  • git
  • fsmonitor
  • remote-code-execution
  • coding-agents
  • supply-chain
// कोई रिलीज़ न चूकेंहर AI रिलीज़ पाएँ, आते हीमुफ़्त Telegram चैनल · 1 पंक्ति के TLDR · ईमेल नहींTelegram पर जुड़ें

← सभी रिलीज़ · AI सीखें