Claude Code VS Code Extension Leaks Files Outside Trusted Workspaces via Symlink Trick
Written by AI from the linked story. Not reviewed by an editor. How this works
The Claude Code VS Code extension, with over 29 million installs, can be manipulated through symlinks to access files outside a user's trusted workspace — without the permission prompt accurately disclosing the true file location. This is a classic path traversal variant: users believe they are granting limited access, but are actually exposing sensitive system files. The root issue lies in insufficient input validation and misleading permission UI within a widely distributed third-party extension. Because Anthropic does not classify this as a security issue, no patch is forthcoming, leaving tens of millions of users exposed. This highlights the broader risk of implicitly trusting popular extensions without scrutinizing their file system access behaviors.
Tactical Insight
Immediate actions
- Audit all installed VS Code extensions for excessive file system permissions and remove or restrict those that are not essential.
- Enable OS-level controls (e.g., AppArmor, SELinux, or sandbox profiles) to restrict the file system access available to IDE processes and extensions.
Long-term improvements
- Establish a vetting process for third-party extensions before organizational deployment, including review of permission scopes and vendor security posture.
- Treat widely deployed IDE extensions as supply chain components and include them in your software inventory and risk assessments.
- Advocate for or require that extension vendors implement accurate permission disclosure that reflects resolved file paths, not symlink aliases.
Detection measures
- Monitor file system access logs for IDE processes reading files outside designated workspace directories.
- Use endpoint detection tools to alert on symlink-based path traversal patterns initiated by editor or extension processes.