@gaia-codesearch/gaia-api-python
v0.0.10
Published
Security research — scope ownership proof for dependency confusion report
Downloads
1,647
Readme
@gaia-codesearch/gaia-api-python — Dependency Confusion PoC
Summary
This package is a security research proof-of-concept demonstrating a dependency confusion vulnerability in Microsoft's VS Code extension IntelliCode API Usage Examples (46M+ installs).
The @gaia-codesearch npm scope was unregistered while the extension's package.json depended on:
@gaia-codesearch/gaia-api-python: 0.0.3-ci-main-20230824.2@gaia-codesearch/gaia-api-typescript: 0.0.3-ci-main-20230824.2
An attacker could have registered this scope and published malicious packages that execute code during npm install of the extension source.
Impact
- Extension:
VisualStudioExptTeam.intellicode-api-usage-examples - Installs: 46,002,431
- Publisher: Microsoft (VisualStudioExptTeam)
- Attack: Any developer or CI pipeline cloning and building the extension from source would execute attacker-controlled code via the
preinstallscript.
This PoC
This package only prints a message to the console. No data is exfiltrated, no files are modified, no network connections are made. It demonstrates that code execution is possible during npm install.
Contact
Researcher: [email protected]
