Malicious `arrayref` Release Pulled Rust Build-Time Payload via Typosquatted `proc-macro1`
Supply Chain Risk · 31 sources · Updated 3mo ago · First seen Aug 20, 2026

A supply-chain attack hit the Rust ecosystem after arrayref 0.3.10 was published with a dependency on proc-macro1 1.0.107, a typosquatted package impersonating proc-macro2. The malicious crate used a build.rs script to download and execute a second-stage payload during compilation, meaning developers and CI systems could be compromised simply by building an affected project. Rust maintainers said they received a report at 07:15 UTC and removed the malicious packages, including related crates such as proc-macro-en, aovine, arone, aronenao, and tinymember, while also restoring or yanking affected versions of arrayref, internment, and append-only-vec.
Investigators said the payload infrastructure contacted 23.254.165.112 over ports 9089 and 443, bypassed TLS certificate validation, selected platform-specific malware for Unix and Windows, and allowed builds to appear normal after execution. The campaign appears to have used a fake dtolney account to mimic Rust maintainer David Tolnay and likely leveraged a compromised publisher account for arrayref; crates.io locked the affected author account as a precaution. Because arrayref is widely used and can reach downstream projects through dependencies such as tiny-skia, sctk-adwaita, and winit, maintainers warned that Rust GUI applications and other software stacks may have been exposed, and advised users to inspect Cargo caches and lockfiles, treat affected hosts as compromised, rotate credentials, and rebuild artifacts from clean sources.
Why it matters
Impact assessment
This incident affects Rust developers, CI/CD runners, and software supply-chain consumers that resolved or built compromised crates from crates.io during the exposure window on 2026-08-20. Impact is high because compromise occurred at build time, enabling malware execution on developer workstations and build infrastructure without running the built application.
Exposure is potentially broad because arrayref is a heavily used transitive dependency with hundreds of downstream packages and major reach into GUI, cryptography, and blockchain-related Rust projects. Public reporting states there was no confirmed evidence of real-world use at the time of disclosure, but any host that built affected versions should be treated as compromised due to credential, browser-data, wallet-extension, and developer-secret theft risk.
Affected populations and products
- Rust ecosystem users consuming crates from crates.io
- Developer workstations running cargo build, cargo check, or cargo test
- CI/CD runners and release/signing infrastructure building affected projects
- Directly affected crates:
- arrayref 0.3.10
- internment 0.8.7
- append-only-vec 0.1.9
- proc-macro1 1.0.107
- Related malicious crates removed from crates.io:
- proc-macro-en
- aovine
- arone
- aronenao
- tinymember
Severity and business risk
- Build-time malware execution creates immediate risk of:
- credential theft
- CI token and API key exposure
- signing key compromise
- browser data theft
- cryptocurrency wallet extension data theft
- persistence on developer endpoints
- Operational impact includes untrusted build artifacts, contaminated caches, and potential need to rebuild software from clean environments.
- Reputational and financial impact can follow if compromised developer or CI credentials are reused for source, package, cloud, or release-system access.
Scope and exploitation status
- Scope is ecosystem-wide in potential reach but limited in time; malicious releases were available for roughly 86 to 107 minutes before removal.
- Arrayref had roughly 245 million lifetime downloads and broad transitive reach through packages such as tiny-skia, sctk-adwaita, and winit.
- RustSec and Rust maintainers reported no evidence of actual usage at time of reporting, but download counts and dependency reach justify immediate exposure investigation.
- Attribution reporting is mixed: multiple sources cite infrastructure overlap with DPRK-linked activity, including Sapphire Sleet/UNC1069, but definitive attribution is not established in all reporting.


