
The team reviews every dependency that enters the repository. The editor extension that reads the whole repository and runs commands in the terminal was installed with one click.
What an extension can reach
A VS Code extension runs with the user's permissions. It reads any file, including .env and SSH keys, opens network connections and spawns processes. There is no real per-extension sandbox. When it ships an agent, it adds the ability to decide on its own what to read and what to run, steered by text that came from outside.
The AI extension has more access to your source code than any project dependency, and went through less review.
Where the chain is weak
A marketplace with light verification, names and icons that are easy to imitate, auto-update on by default, and forked editors pulling from alternative extension registries. A legitimate extension can change owner or behaviour in a single update. And it has its own dependencies, which nobody on your side ever sees.
Practical controls
- A centrally managed extension allowlist, by publisher ID, not by display name.
- Auto-update off for agent extensions; a new version goes through review.
- No automatic terminal execution for the extension's agent; every command needs approval.
- Secrets out of the workspace: no
.envwith real credentials in the directory the agent reads. - An inventory of installed extensions across workstations, collected by MDM or EDR.
Start with the inventory
Ask for the list of extensions installed on the machines of everyone with production access. The first surprise is usually the count; the second, that nobody knows who publishes half of them. The developer's workstation is part of the supply chain, and it is the part with the least control.