Cyber Risks · The Hacker News

Rogue Pilot Flaw in GitHub Codespaces Enabled Copilot to Leak GITHUB_TOKEN

Summary: Orca Security found a vulnerability in GitHub Codespaces, codenamed RoguePilot, that let hidden instructions in a GitHub issue be processed by Copilot when a user launched a Codespace from that issue, allowing the AI assistant to leak the privileged GITHUB_TOKEN to an attacker-controlled server. Microsoft patched the flaw after responsible disclosure; the prompt could be concealed in the issue using the HTML comment tag "<!--the_prompt_goes_here-->" and executed by having Copilot check out a crafted pull request containing a symbolic link to an internal file.

What's compelling: The attack ran through a trusted developer workflow - opening a Codespace from an issue - and the credential at risk was the GITHUB_TOKEN, which carries repository access; a developer doing routine work triggered it with no warning.

Read the original at The Hacker News ↗

Topics
AI Security
Related