Cybersecurity news

Jessica Doner

Back to the list

Backdoored Rust packages hit crates.io, exposing developers to malware at build time

CSO Online,

Malicious versions of three Rust packages were published to crates.io, carrying a backdoor that executed automatically when projects were compiled.

Malware and ransomwareHacker groups and nation statesAttacks and breaches

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.

How a story is connected to the course, and every objective, week and job role

Same story at other outlets

Related