Supply Chain Attack Compromises Popular Rust Crates to Deliver Malware

Supply Chain Attack Compromises Popular Rust Crates to Deliver Malware

First seen 20 Aug 2026, 14:25 UTC Aikido.DevNews.YcombinatorBlog.Rust-LangCybersecuritynewsBleepingcomputer+15 76.0

Article Content

Browse articles
ThreatCluster

On August 20, 2026, a supply chain attack targeted the Rust ecosystem, compromising the widely used crates arrayref, append-only-vec, and internment. The attackers injected a malicious dependency, proc-macro1, which impersonated the legitimate proc-macro2 crate. During compilation, the build script executed, downloading and running a remote payload on the developer's machine. The attack affected over 245 million downloads of arrayref alone, with significant usage in cryptography and blockchain tools. The Rust Security Response Team removed the malicious versions and locked the maintainer's account, suspecting it was compromised. The malware is capable of exfiltrating sensitive information and establishing persistence on affected systems. The incident is noted for its scale and sophistication, marking one of the largest compromises in the Rust ecosystem to date.

Key Points: • The attack involved a malicious dependency that executed during compilation. • Over 245 million downloads of the arrayref crate were affected. • The malware can exfiltrate credentials from major web browsers.

Timeline

2026-08-20
Malicious versions of Rust crates published
Attackers published arrayref 0.3.10, append-only-vec 0.1.9, and internment 0.8.7, injecting a malicious dependency proc-macro1.
Bleepingcomputer
2026-08-20
Rust Security Response Team acts
The team verified the malicious nature of proc-macro1, removed the affected crates, and locked the maintainer's account.
Blog.Rust-Lang
2026-08-20
Attack vector details revealed
The build script in proc-macro1 downloads a payload based on the OS and executes it, enabling credential theft.
Wiz.io
2026-08-20
Initial detection of malicious activity
The attack was detected within a 23-minute window, indicating a rapid execution of the supply chain compromise.
Aikido.Dev
2026-08-20
Impact assessment published
The incident was assessed as one of the largest Rust crate compromises, affecting numerous projects and libraries.
Cybersecuritynews