Backdoored Rust packages hit crates.io, exposing developers to malware at build time
Malicious versions of three Rust packages were published to crates.io, carrying a backdoor that executed automatically when projects were compiled.
Overview
Researchers discovered that malicious versions of three Rust packages were published to the crates.io registryA central database of system settings on a computer or a public catalog that hosts software packages on August 20. These compromised releases included arrayref, internment, and append-only-vec, which contained a backdoorA hidden way into a computer or program that skips the normal login check that executed automatically when projects were compiled. The attack shares infrastructure with recent supply-chain campaigns attributed to North Korean threat actorsA person or group that carries out cyberattacks, whether for money, spying, or disruption. The malicious codeSoftware built to steal data, spy on users, lock files, or take control of a computer introduced a dependencyAn external code library or package that a software project relies on to do part of its work on proc-macro1, a typosquatRegistering a domain or software package with a common misspelling of a popular name of the legitimate proc-macro2 crate, which downloaded and executed a second-stage payloadThe part of an attack or malware file that carries out the harmful action on the target during compilation. This payload collected host, username, and operating-systemThe core software on a computer or phone that manages hardware, files, memory, and running apps information while enumerating installed applications and inspecting browser profiles for saved-login and extensionA small add-on program installed inside a web browser to add features like ad blocking information. Developers using arrayref were exposed for up to 107 minutes before the malicious crates were deleted.
Terms in this story
- registry
- A central database of system settings on a computer or a public catalog that hosts software packages. In security news, the registry means either the operating system settings database where malware adds startup entries or a public package registry where developers download code libraries.
- backdoor
- A hidden way into a computer or program that skips the normal login check. Attackers plant a backdoor on a compromised server so they can return later even if the administrator changes passwords or fixes the original flaw. Security+ objective 2.4 lists the term
- threat actors
- A person or group that carries out cyberattacks, whether for money, spying, or disruption. Security researchers use the term threat actor to refer to a criminal gang, state spy unit, or solo hacker behind a series of intrusions. Security+ objective 2.1 lists the term
- malicious code
- Software built to steal data, spy on users, lock files, or take control of a computer. News reports use malware as the umbrella term for viruses, ransomware, spyware, and trojans that criminals install on phones, laptops, or servers without permission. Security+ objective 2.4 lists the term
- dependency
- An external code library or package that a software project relies on to do part of its work. When a popular open-source dependency has a security bug or gets hijacked by an attacker, every application that imports that package inherits the risk.
- typosquat
- Registering a domain or software package with a common misspelling of a popular name. Attackers use typosquatting on code registries so a developer who mistypes one letter when installing a library accidentally downloads malware. Security+ objective 2.2 lists the term
- payload
- The part of an attack or malware file that carries out the harmful action on the target. A phishing email and an exploit are only the delivery steps, while the payload is the ransomware or spyware that actually runs once the computer is compromised.
- operating-system
- The core software on a computer or phone that manages hardware, files, memory, and running apps. Because every application relies on the operating system, a security flaw in the operating system itself affects millions of devices until users install a system update.
- 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.
- script
- A short program written in an interpreted language to automate tasks in a browser, shell, or application. System administrators write scripts to automate daily maintenance, while attackers often use a script to download malware and disable security settings without dropping a compiled file.
- 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.
- command-and-control (C2)
- The server or channel an attacker uses to send orders to computers infected with malware. Once malware runs on a victim's computer, it quietly checks in with the attacker's command-and-control server to receive instructions or upload stolen files. Security+ objective 2.4 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 CSO Online website. Cite the article, not this page.
Read the full article on CSO Online (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: Research and reports
"Researchers found significant infrastructure overlap..." Found by reading the article; these exact words are in it - Security+ 2.1 Compare and contrast common threat actors and motivations.
"......recent supply-chain campaigns attributed to North Korean threat actors." Found in the opening sentences - Security+ 2.2 Explain common threat vectors and attack surfaces.
"......the attack also shares infrastructure with recent supply-chain campaigns attributed to North Korean threat actors." Found in the opening sentences - Security+ 2.3 Explain various types of vulnerabilities.
"......the attack also shares infrastructure with recent supply-chain campaigns attributed to North Korean threat actors." Found in the opening sentences - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"......Rust packages hit crates.io, exposing developers to malware at build time..." Found in the headline - Security+ 5.3 Explain the processes associated with third-party risk assessment and management.
"......the attack also shares infrastructure with recent supply-chain campaigns attributed to North Korean threat actors." Found in the opening sentences - CYBR 101 week 11: penetration testing, OSINT, MITRE ATT&CK and hacking back
"......executed automatically when affected projects were compiled. Security researchers at Wiz said the attack also shares..." Found in the opening sentences - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"......recent supply-chain campaigns attributed to North Korean threat actors." Found in the opening sentences - CYBR 101 week 9: malware, indicators and how detection works
"......Rust packages hit crates.io, exposing developers to malware at build time..." Found in the headline - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Analyze identified malicious activity to determine weaknesses exploited, exploitation methods, effects on system and information.
"The second stage payload is selected based on the platform..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role
Same story at other outlets
- North Korean Hackers Tied to Rust Supply Chain Attack
- Rust Supply Chain Attack Puts Build-Time Malware in Crates with 245 Million Downloads
- Hackers poison arrayref Rust crate to push infostealer malware
- Popular Rust Packages With 244M Downloads Compromised to Run Malware
- Two popular Rust crates arrayref and append-only-vec compromised in Supply Chain Attack