Researchers Reveal How Claude Code VS Code Extension Can Access Files Outside Trusted Workspaces
Researchers found the Claude Code extension can hide a file's true location, letting users approve access to files outside trusted workspaces.
Overview
Security researchers found that the Claude Code extensionA small add-on program installed inside a web browser to add features like ad blocking for Visual Studio Code can hide the true location of files when asking for user permission. A user might approve access to a path that looks safe, but the file actually lives outside the trusted workspace. This issue affects developers using the extension, which has more than 29 million installs. The problem involves symlinksA special file on disk that points to another file or folder path by name, which are shortcuts that point to another file or folder. When the agent asked to write a file, the promptThe text instruction or question a user or program sends to an artificial intelligence model showed only the workspace path and gave no sign that the file would land elsewhere. Anthropic reviewed the report and does not treat it as a security issue, but the command-line version of the tool already fixed a similar flaw.
Terms in this story
- Extension
- A small add-on program installed inside a web browser to add features like ad blocking. Because a browser extension can often read and change every web page you visit, attackers buy or hijack legitimate extensions to steal session cookies and passwords.
- symlink
- A special file on disk that points to another file or folder path by name. Local privilege escalation exploits often plant a symlink in a temporary folder so a high-privilege system service is tricked into overwriting a protected system file.
- prompt
- The text instruction or question a user or program sends to an artificial intelligence model. In AI security news, a prompt includes both the visible question typed by a user and the hidden instructions that an attacker might embed in a web page.
- plugins
- An add-on software module that extends a website, browser, or application with extra features. Small businesses add dozens of third-party plugins to their websites for contact forms or shopping carts, and an unpatched plugin flaw is a common way attackers take over a site.
- roots
- The highest administrator permission level on a system, with unrestricted control over all files and programs. An attacker who gains root privileges on a server can read any user's data, alter system settings, install kernel drivers, and hide their activity from ordinary accounts.
- SSH keys
- A cryptographic key pair used to sign in to remote servers over SSH without a password. Software engineers store a private SSH key on their laptop and place the matching public key on cloud servers, making stolen SSH keys a prime target for infostealers.
- threat model
- A structured analysis of what assets a system protects, who might attack it, and how it could fail. Before launching a new app, engineers build a threat model to map out trust boundaries, likely attack paths, and the defenses needed at each step.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the Cyber Security News website. Cite the article, not this page.
Read the full article on Cyber Security News (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Vulnerability and patch
"...can show a permission prompt that hides..." Found by reading the article; these exact words are in it - Who is affected: "...developers..." Organizations using the product
Copied word for word from the article - CYBR 101 week 11: penetration testing, OSINT, MITRE ATT&CK and hacking back
"Security researchers have found that the Claude Code extension..." Found in the opening sentences - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"Researchers Reveal How Claude Code VS Code Extension Can Access Files..." Found in the headline
How a story is connected to the course, and every objective, week and job role