Cybersecurity news

Jessica Doner

Back to the list

Popular Rust Packages With 244M Downloads Compromised to Run Malware

Cyber Security News,

Two popular Rust packages were compromised to silently deliver malware when developers compiled their projects, affecting hundreds of millions of downloads.

Malware and ransomwareAttacks and breaches

Overview

A major supply chain attackBreaking into a software maker or vendor so their trusted product or update infects their customers targeted the Rust ecosystem by hijacking two widely used crates, arrayref and append-only-vec, to silently deliver malwareSoftware built to steal data, spy on users, lock files, or take control of a computer. These packages account for hundreds of millions of downloads, making this one of the largest Rust crate compromises ever recorded by download volume. Researchers at Aikido Security first spotted a suspicious package called proc-macro1 that quietly downloaded and executed a remote file during its build process. The name was a deliberate typosquatRegistering a domain or software package with a common misspelling of a popular name of proc-macro2, one of the most heavily relied-upon crates in the Rust world, and it copied the legitimate crate's description to appear trustworthy. Within the same hour, arrayref and append-only-vec added proc-macro1 as a dependencyAn external code library or package that a software project relies on to do part of its work, transforming an isolated typosquat into a full-blown supply chain incident. The compromise was disguised in a single injected line inside each crate's manifest file, pointing to proc-macro1 version 1.0.107, while the visible source codeThe human-readable programming instructions written by developers before they are compiled into a runnable program remained untouched and legitimate.

Terms in this story

supply chain attack
Breaking into a software maker or vendor so their trusted product or update infects their customers. Instead of attacking a hundred companies one by one, an intruder compromises a single software library or update server that all of those companies already trust. Security+ objective 2.2 lists the term
Malware
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
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
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.
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.
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.
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
exploit
A piece of code or technique that uses a software flaw to break into or crash a system. Finding a vulnerability is only the discovery of a weakness, whereas an exploit is the working code or sequence of inputs that triggers that weakness in practice. Security+ objective 2.4 lists the term
configurations
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.
open-source
Software whose source code is publicly available for anyone to inspect, use, modify, and share. Most websites and apps rely on hundreds of open-source code libraries, so a single security flaw or malicious update in a popular library can affect thousands of companies at once.
binary
Base 2, where each byte is written as 8 ones and zeros. In security news, the word binary refers either to raw data made of ones and zeros or to a compiled executable program that runs directly on a computer's processor. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
server
A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.

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.

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

Same story at other outlets

Related