VDB
Sign up
—

RUSTSEC-2025-0155

`rands` was removed from crates.io for malicious code

Details

This crate attempted to typosquat the `rand` crate, and would link in a malware payload on macOS and Linux hosts when built.

This advisory is to retrospectively document this attempted attack. The version information and download records of the malicious crate are no longer available. The related malicious crates have been yanked, and the malicious account has been banned.

Are you affected?

Enter the version of the package you're using.

Affected packages

crates.io/rands
Introduced in: 0.0.0-0

No fixed version published yet for rands. Pin to a known-safe version or switch to an alternative.

References