Rust Supply Chain Attack Puts Build-Time Malware in Crates with 245 Million Downloads
Rust crates arrayref, internment, and append-only-vec had malicious versions published via compromised account.
The Rust Project removed three popular crates from crates.io after a compromised maintainer account published malicious versions. These releases injected a typosquatted dependency, 'proc-macro1', whose build script downloaded and executed a remote payload during compilation. The malicious code was present in the build script, meaning simply building a project that used the affected crates was enough to trigger the payload.
AI summary of the linked source. Not reviewed by an editor. How this works
Run Nextron Systems GmbH?
Get an email when a new story names Nextron Systems GmbH, usually within the hour.
Free. Your list stays private and never appears in a subject line. One click stops it. How Vendor Watch worksPrivacy
The lesson from this incident
Full lessonA compromised Rust maintainer account was used to publish malicious versions of popular crates, affecting packages with a combined 245 million downloads. The attack exploited the trusted position of a legitimate account to inject a typosquatted dependency ('proc-macro1') that executed a remote payload at build time—meaning developers were compromised simply by compiling their project, without ever running the malicious code directly. This highlights the critical risk of transitive, build-time dependencies in modern software supply chains, where implicit trust in package registries can be weaponized. The incident underscores that supply chain attacks do not require a vulnerability in software itself—only access to a trusted publishing identity.
What helps against this
How we list vendors- Endpoint detection and response (EDR and XDR)
Malware and hands-on-keyboard attackers on laptops and servers get spotted and stopped.
- Threat intelligence
Attack campaigns reach your sector, suppliers or software before your team hears about them.
- Software supply chain security
Malicious and vulnerable open-source packages are caught before they ship.
Indicators of Compromise
Extracted by AI from the linked source. Not reviewed by an editor. How this works
- malware — rust-setup
- malware — PowerShell script