North Korean Hackers Tied to Rust Supply Chain Attack
North Korean hackers compromised a trusted maintainer's account to embed backdoors in three open-source libraries on the Rust package registry.
Overview
North Korean hackersA person who explores and manipulates computer systems, either as a criminal intruder or a security researcher compromised the accounts of a trusted open-sourceSoftware whose source code is publicly available for anyone to inspect, use, modify, and share maintainer to alter three legitimate Rust libraries on the crates.io registryA central database of system settings on a computer or a public catalog that hosts software packages. Instead of changing the main code, the attackers added a fake dependencyAn external code library or package that a software project relies on to do part of its work named proc-macro1 that triggered a malicious payloadThe part of an attack or malware file that carries out the harmful action on the target during the automated build process. This allowed the malware to infect developer workstations and continuous integration environments simply by compiling the software, even if the final product was never deployed. The attack targeted sensitive data such as web browser credentialsThe login details, such as a username and password or key, that prove who an account belongs to, cryptocurrency walletA software app or hardware device that stores the private keys needed to spend cryptocurrency extensionsA small add-on program installed inside a web browser to add features like ad blocking, and developer environment secretsPrivate credentials used by software, such as API keys, database passwords, and encryption keys. The incident affected a large portion of the industry, with the arrayref library present in roughly 75% of cloud environments running Rust applications. Developers and automated build pipelinesThe automated pipeline that tests, builds, and deploys software whenever developers push new code became infected just by pulling down and compiling these legitimate dependencies.
Terms in this story
- Hackers
- A person who explores and manipulates computer systems, either as a criminal intruder or a security researcher. In news headlines, the word hacker usually means an unauthorized intruder, though the security community also uses it for researchers who find and fix flaws.
- 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.
- 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.
- 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.
- credentials
- The login details, such as a username and password or key, that prove who an account belongs to. Many breaches begin when attackers steal an employee's login credentials through a fake website and sign in to the company network as if they belonged there. Security+ objective 4.6 lists the term
- cryptocurrency wallet
- A software app or hardware device that stores the private keys needed to spend cryptocurrency. If an infostealer copies the secret seed phrase or key file from a victim's cryptocurrency wallet, the attacker can drain the funds irreversibly in seconds.
- 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.
- secrets
- Private credentials used by software, such as API keys, database passwords, and encryption keys. Software teams use vault tools to keep secrets out of source code because anyone who finds a leaked secret in a public repository can log right in to the company's cloud services.
- pipelines
- 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
- 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
- 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
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 Infosecurity Magazine website. Cite the article, not this page.
Read the full article on Infosecurity Magazine (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
"Wiz security researchers have linked a recent software supply chain attack..." Found by reading the article; these exact words are in it - Who is affected: "...open-source libraries hosted on the official Rust package registry..."
Copied word for word from the article - Security+ 2.1 Compare and contrast common threat actors and motivations.
"North Korean Hackers Tied to Rust Supply Chain Attack..." Found in the headline - Security+ 2.2 Explain common threat vectors and attack surfaces.
"North Korean Hackers Tied to Rust Supply Chain Attack..." Found in the headline - Security+ 2.3 Explain various types of vulnerabilities.
"North Korean Hackers Tied to Rust Supply Chain Attack..." Found in the headline - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"Cybersecurity researchers have linked a malicious backdoor in compromised Rust packages to previous North..." Found in the opening sentences - Security+ 5.3 Explain the processes associated with third-party risk assessment and management.
"North Korean Hackers Tied to Rust Supply Chain Attack..." Found in the headline - CYBR 101 week 9: malware, indicators and how detection works
"Cybersecurity researchers have linked a malicious backdoor in compromised Rust packages to previous North..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Perform secure programming and identify potential flaws in codes to mitigate vulnerabilities.
"...embedding a backdoor designed to infiltrate developer workstations..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Analyze countermeasures and mitigations against potential exploitations of programming language weaknesses and vulnerabilities in system and elements.
"75% of Cloud Environments Running Rust Applications Potentially Affected..." 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
- Backdoored Rust packages hit crates.io, exposing developers to malware at build time
- 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