Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

Microsoft warns of device-code phishing against GitHub Copilot CLI

AI summary

Microsoft research, as reported by iThome, describes a phishing chain targeting GitHub Copilot CLI's device-code login flow. An attacker could lure a developer into approving an attacker-initiated request on GitHub's verification page, potentially obtaining an OAuth token and access to authorized resources, including private repositories. Under stated conditions involving remote control, organizational policy, an active session, and local permissions, the attacker may also influence a running AI agent.

In-depth insight

The report highlights a security risk specific to AI-assisted development tools and recommends approving only self-initiated device-code requests, reviewing OAuth grants, and restricting remote control, cloud session storage, and memory where appropriate.

移至主內容

文/王珮瑤|2026-11-23 發表

駭客不必竊取帳號密碼,也可能利用合法的裝置驗證碼登入機制,誘騙開發者核准登入要求,藉此取得OAuth存取權杖。微軟研究發現,這類釣魚攻擊不只可能造成開發資料外洩,在特定條件下,還可能讓攻擊者遠端操控AI代理,在使用者電腦上執行命令。

微軟11月17日公布的研究指出,攻擊者可先在自己的裝置上使用GitHub Copilot CLI,向GitHub要求產生用於登入的裝置驗證碼,再假借IT支援通知或Copilot授權檢查等理由,透過釣魚訊息誘騙使用者前往GitHub官方驗證網頁,輸入攻擊者提供的驗證碼。由於這組驗證碼對應的是攻擊者發起的登入要求,一旦使用者核准,攻擊者的用戶端便能完成登入並取得OAuth存取權杖,進而在授權範圍內存取受害者GitHub帳號有權使用的資源,包括私人程式碼儲存庫。

若Copilot CLI工作階段紀錄已同步至雲端,攻擊者也可能讀取先前的開發紀錄,其中可能包含程式碼片段、檔案路徑及系統架構討論等資訊。此外,攻擊者還可能利用AI代理的記憶功能加入誤導性內容,影響後續互動;若遠端控制功能已啟用、組織政策允許,且工作階段仍在執行,甚至可能操控AI代理在使用者電腦上執行命令,但仍受到本機權限與核准機制限制。

#Microsoft#GitHub#GitHub Copilot CLI#Microsoft Defender XDR#Microsoft Teams

Original · 3 min readRead the original
Group chat

No comments yet. Start the conversation.