Preliminary research
Stealing GitHub tokens via VS Code webview keyboard event bubbling
1-Click GitHub Token Stealing via a VSCode Bug
Last synced: 5 December 2026.
VSCode webviews are cross-origin iframes, but to keep shortcuts working they forward their own keydown events to the host over postMessage, and the host cannot tell a synthetic event from a real keypress. Javascript in a notebook cell sends Ctrl+Shift+A to accept the recommended-extension prompt, installing a local workspace extension whose keybinding calls installExtension with skipPublisherTrust, and that extension reads github.dev's unscoped GitHub token.
Preserved copies · Ammar Askar · Original publication ↗
Record
- Document
- 1-Click GitHub Token Stealing via a VSCode Bug
- Researcher
- Ammar Askar
- Published by
- Ammar's Blog
- Topic
- Other
In the archive
Related sources
- https://github.com/ammaraskar/vscode-github-token-grab-extension/blob/main/src/extension.ts
Author not stated
External source · no preserved copy
- https://github.com/ammaraskar/github-dev-token-steal-poc/blame/main/README.ipynb
Author not stated
External source · no preserved copy
- VSCode issue tracker
Author not stated
External source · no preserved copy
Tags
This page is the archive's own catalogue record. The research is the work of Ammar Askar, first published at the original source. Preserved copies are kept so the citation survives its host.