Microsoft exposes GitHub Copilot CLI phishing attack risk; hackers may use legitimate login procedures to control AI agents
微軟揭露GitHub Copilot CLI釣魚攻擊風險,駭客恐藉合法登入程序操控AI代理
Research published by Microsoft on November 17 points out that attackers can launch phishing via the GitHub device verification code login flow, inducing developers to approve login requests initiated by attackers, thereby obtaining OAuth access tokens. After obtaining the token, attackers can access resources available to the victim's GitHub account within the authorized scope, including private code repositories; if the Copilot CLI session records have been synced to the cloud, they may also be able to read development records containing code snippets, file paths, and system architecture discussions. The research also mentions that attackers can use the AI agent's memory function to write misleading content, and, when remote control is enabled, organizational policy permits, and the session is still executing, control the agent to execute commands on the user's computer, but subject to local permissions and approval mechanisms. Microsoft simultaneously launched two Microsoft Defender XDR detection mechanisms, targeting suspicious device verification code phishing messages delivered via email and Microsoft Teams respectively, and recommends that enterprises check for anomalous OAuth authorizations and restrict agents' remote control and cloud session storage.