Cybersecurity news

Jessica Doner

Back to the list

Two popular Rust crates arrayref and append-only-vec compromised in Supply Chain Attack

Aikido,

A malicious dependency added to two popular Rust crates executes a remote payload on a developer's machine during the build process.

Attacks and breaches

Overview

On August 20, two popular Rust crates named arrayref and append-only-vec were compromised in a supply chain attackBreaking into a software maker or vendor so their trusted product or update infects their customers. The attacker added a malicious dependencyAn external code library or package that a software project relies on to do part of its work called proc-macro1, which downloads and executes a remote payloadThe part of an attack or malware file that carries out the harmful action on the target during the build process. This action infects the developer's machine simply by compiling a project that uses either crate, without needing to call any specific functionality. The malicious package is a typosquatRegistering a domain or software package with a common misspelling of a popular name of proc-macro2, designed to look like a genuine project by copying its description and author name. The compromise is significant because the affected crates have 4M and 244M downloads respectively, making this the largest Rust crate compromise by download count. Any developer who compiles a project that pulls in either of these crates is at risk of having their machine infected.

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
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.
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.
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.
maintainer
The developer or small team responsible for reviewing changes and publishing releases for an open-source project. Supply chain attackers often target a volunteer maintainer with phishing emails or offers to help, hoping to gain publishing rights over a popular code library.
blast radius
The scope of systems, data, or users that can be harmed when one account or server is compromised. Security architects limit the blast radius of a potential breach by splitting networks apart and giving each account only the minimum permissions it needs.
pipeline
The automated pipeline that tests, builds, and deploys software whenever developers push new code. Attackers love to compromise a company's CI/CD pipeline because that build server holds cloud keys and can inject malicious code directly into official software releases. Security+ objective 4.7 lists the term
base64
An encoding over A to Z, a to z, 0 to 9, + and /, padded with =. Because this text encoding is easy to reverse without a key, malware authors often use it to disguise command strings inside scripts so casual readers do not spot them. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
scanners
Using automated tools to probe computers, networks, or code for known security flaws and missing patches. Both defenders and attackers run vulnerability scanning across internet-facing servers to find out which machines are still running outdated software versions. Security+ objective 4.3 lists the term
URL
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
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.

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 Aikido website. Cite the article, not this page.

Read the full article on Aikido (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