VS Code Flaw Lets Malicious Notebooks Steal GitHub Tokens

· Original article ↗

Summary

A crafted Jupyter notebook opened on github[.]dev can install a malicious extension that steals GitHub tokens. Microsoft says its services are mitigated; the desktop version appears unpatched and may allow remote code execution.

Key points

  • A researcher disclosed the vulnerability and a proof-of-concept exploit publicly; Microsoft released a fix the following day.
  • On github[.]dev, opening a link to a crafted Jupyter notebook can trigger hidden code that simulates keystrokes to install a malicious extension.
  • The extension can steal a GitHub access token, which could provide read and write access to repositories available to the victim, including private repositories.
  • The user is notified about the extension’s access request only if github[.]dev has not been used before.
  • The attack also affects desktop VS Code, but requires additional victim interaction; the article says that version appears unpatched and the attack could enable remote code execution.
  • Microsoft told SecurityWeek that the issue was mitigated for its services and no customer action was required.

Article Details

Vulnerability Types
  • GitHub access-token theft through installation of a malicious VS Code extension
  • Remote code execution on devices running the desktop version of VS Code
Severity
Severe
Exploitation Status
unknown
Exploit Availability
public_poc
Patch Status
partial

MITRE ATT&CK

People

Vendors

Products

Related Articles