Malicious Rust Crate arrayref Runs a Build-Time Payload

2026-08-20 Safe Dep

https://safedep.io/arrayref-proc-macro1-rust-build-time-malware/

Thumbnail for Malicious Rust Crate arrayref Runs a Build-Time Payload

A compromised crates.io account published `arrayref` 0.3.10 with a dependency on the typosquatted `proc-macro1` crate, causing malicious code to run automatically during Cargo builds. The dependency's build script reconstructed an obfuscated URL, downloaded an architecture-specific payload from 23.254.165.112, and launched it in a detached process on Linux, Windows, or macOS. Older clean `arrayref` releases were yanked, potentially steering developers toward the malicious version, while copied `proc-macro2` source helped the dependency appear legitimate. crates.io subsequently removed the malicious releases.

Indicators of Compromise

Type Value First Seen Last Seen
URL https://23.254.165.112:9089/ 2026-08-20 2026-08-20
IPv4 23.254.165.112 2026-08-20 2026-08-20
HASH b5c1b5b0763a8809a644a8f92224653… 2026-08-20 2026-08-20
HASH 61198155da51b838772eecf5bfaac6c… 2026-08-20 2026-08-20
HASH 25ad700976873c76af785cb99b33c48… 2026-08-20 2026-08-20

Related Reports

« Back