One Click in a Malicious VS Code Project Can Give Attackers Persistent Access to Your PC
A security flaw in Visual Studio Code lets attackers gain persistent access to a computer with one click in a malicious project.
Overview
Researchers at Remedio found a security flaw in Visual Studio Code that allows attackers to gain persistent accessThe tricks an attacker uses to keep access to a computer after a reboot or password change to a developer's computer with a single click. The attack exploits clickable links in the editor to bypass Workspace Trust, a feature designed to prevent risky actions when opening unknown code. By using a special command link, a malicious project can trick the editor into installing a harmful extension without the user realizing it. This extension runs with the permissionsThe specific rights granted to an account or app to read, write, or run files and services of the logged-in user and can access sensitive data like SSH keysA cryptographic key pair used to sign in to remote servers over SSH without a password and cloud credentialsAccess keys, tokens, or login secrets that grant control over cloud servers and storage. Once installed, the extension remains on the system and activates during future sessionsAn active logged-in period of communication between a user or device and a server, even after the user closes the malicious project or reboots the computer. Developers who open unknown repositoriesA central storage place where a software project's source code, change history, and configuration files are kept are at risk of having their workstations compromised in this manner.
Terms in this story
- Persistent Access
- The tricks an attacker uses to keep access to a computer after a reboot or password change. To maintain persistence on an infected laptop, malware might add itself to the startup folder or create a hidden scheduled task that runs every time the machine turns on.
- permissions
- The specific rights granted to an account or app to read, write, or run files and services. When a mobile app or browser extension asks for broad permissions, such as reading every web page you visit, a malicious update can abuse those rights to steal passwords.
- 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.
- cloud credentials
- Access keys, tokens, or login secrets that grant control over cloud servers and storage. Attackers scan public code repositories and developer laptops for cloud credentials so they can spin up cryptominers or download company databases.
- sessions
- An active logged-in period of communication between a user or device and a server. Once you log in to a website, the server tracks your session so you can click from page to page without retyping your password on every screen.
- repository
- A central storage place where a software project's source code, change history, and configuration files are kept. Software teams collaborate by pushing code to a shared repository, and attackers scan public repositories for accidentally committed API keys or try to poison popular projects.
- URLs
- The full web address used to locate a specific page, file, or resource on the internet. Security filters inspect every URL in an incoming message to see whether the domain name is a newly registered lookalike or points to a known credential-harvesting server. Security+ objective 4.5 lists the term
- extensions
- 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.
- configuration file
- A text file that stores settings, network addresses, and options for how a program or server runs. Attackers who gain read access to a server look for its configuration file first because it often contains database passwords, API keys, and internal server paths.
- JavaScript
- The programming language that web browsers run to make web pages interactive, and that also runs on servers. Because every browser runs JavaScript automatically when loading a page, attackers use malicious JavaScript in cross-site scripting, fake browser updates, and compromised software packages.
- source code
- The human-readable programming instructions written by developers before they are compiled into a runnable program. When attackers steal a company's private source code from a repository, they can study it to find hidden vulnerabilities or leaked API keys.
- tokens
- A short-lived digital pass that a server gives a logged-in user or app. After you sign in once, your browser or app presents a token on each request, and if malware steals that token the attacker can act as you without knowing your password. Security+ objective 4.6 lists the term
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
"...a serious visual studio code security issue could let attackers gain persistent access to a developers workstation..." Found by reading the article; these exact words are in it - Who is affected: "...developers workstation..." Organizations using the product
Copied word for word from the article
How a story is connected to the course, and every objective, week and job role