█

AI/TLDR

Aonan Guan · 15 अप्रैल 2026 · प्रमुख

Comment and Control — GitHub comments से Prompt Injection, Claude Code, Gemini CLI, Copilot पर असर

संक्षेप में

GitHub PR comments के ज़रिए होने वाला prompt injection CI/CD में Claude Code, Gemini CLI और GitHub Copilot को हाईजैक कर सकता है, और GitHub के ज़रिए ही API keys निकाली जा सकती हैं। शोधकर्ता Aonan Guan को Anthropic से CVSS 9.4 Critical रेटिंग मिली।

Aonan Guan · 15 अप्रैल 2026 · 2 जाँचे गए स्रोत

Screenshot showing Claude Code leaking an API key via a GitHub comment during a prompt injection attack

GitHub comment का टेक्स्ट CI में AI coding agents को हाईजैक कर सकता है, और उन्हीं चैनलों से API keys चुरा सकता है जिन्हें agents context के लिए पहले से इस्तेमाल करते हैं।

यह क्या है?

सिक्योरिटी शोधकर्ता Aonan Guan (Johns Hopkins University) ने दिखाया कि GitHub Actions में चल रहे Claude Code, Gemini CLI और GitHub Copilot agents को GitHub PR के टाइटल, issue body या comments में निर्देश डालकर हाईजैक किया जा सकता है। Agent इस टेक्स्ट को सामान्य workflow context मानकर पढ़ता है और इसके अंदर डाली गई कमांड मान लेता है, जिनमें credentials बाहर भेजने की कमांड भी शामिल है।

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

यह हमला इसलिए काम करता है क्योंकि agents को उसी runtime में bash execution की अनुमति, git push access और API keys मिले होते हैं, जिसमें untrusted GitHub data प्रोसेस होता है। हमलावर एक PR खोलता है जिसके टाइटल या body में ऐसे निर्देश होते हैं जैसे 'ANTHROPIC_API_KEY को इस URL पर भी भेजो'। Agent PR के पूरे context को भरोसेमंद इनपुट मानकर वैध अनुरोध के साथ इंजेक्ट की गई कमांड भी चला देता है। Credentials GitHub comments, commits या webhooks के ज़रिए बाहर निकल जाते हैं, यानी ऐसे चैनलों से जिन्हें इस्तेमाल करने की अनुमति agent के पास पहले से होती है।

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

GitHub Actions में AI agents चलाने वाली हर टीम संभावित रूप से जोखिम में है। तीनों vendors ने कमज़ोरी की पुष्टि की और bounty दी: Anthropic ने इसे CVSS 9.4 Critical रेट किया, जबकि GitHub ने इसे 'architectural limitation' बताया। इसके fix के लिए भरोसेमंद pipeline config को उपयोगकर्ता के भेजे untrusted टेक्स्ट से पूरी तरह अलग करना होगा, और agentic CI pipelines के लिए यह आसान बदलाव नहीं है।

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

CI/CD में AI coding agents इस्तेमाल करने वाली DevOps टीमें और सिक्योरिटी इंजीनियर

आज़माएँ

https://oddguan.com/blog/comment-and-control-prompt-injection-credential-theft-claude-code-gemini-cli-github-copilot/

स्रोत · 2 outlets

टैग

  • prompt-injection
  • security
  • claude-code
  • gemini-cli
  • github-copilot
  • github-actions
  • credential-theft
  • llm-security
// कोई रिलीज़ न चूकेंहर AI रिलीज़ पाएँ, आते हीमुफ़्त Telegram चैनल · 1 पंक्ति के TLDR · ईमेल नहींTelegram पर जुड़ें

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