A VS Code extension is an add-on that adds features to Visual Studio Code, such as language support, linters, themes, or automation. Extensions run in an extension host and can be granted meaningful access to workspace files, network requests, and child processes, depending on what the extension does and what the user allows.
This makes extensions powerful and risky. In cyber security, a compromised or malicious extension can be used to read source code, steal tokens, change settings, or call out to remote servers during normal developer activity. Attackers target extensions through supply-chain compromise, typosquatting, or updates to trusted packages. Defenders reduce risk by reviewing installed extensions, pinning versions, limiting privileges, monitoring outbound traffic, and rotating secrets if a suspicious extension was used.


