# RUSTSEC-2025-0155: `rands` was removed from crates.io for malicious code

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-02-10T12:00:00.000Z
- Modified: 2026-03-26T06:30:10.923Z

## Description

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.

(As written by RustSec Advisory Database.)

## Affected

- rands (crates.io): from 0.0.0-0

## References

- <https://crates.io/crates/rands> (package)
- <https://rustsec.org/advisories/RUSTSEC-2025-0155.html> (advisory)

## Sources

- RustSec Advisory Database: [RUSTSEC-2025-0155](https://rustsec.org/advisories/RUSTSEC-2025-0155.html), CC0-1.0, modified 2026-03-26

---

Page: https://cve.day/RUSTSEC-2025-0155 · Whole record: https://cve.day/RUSTSEC-2025-0155.json · Rebuilt by cve.day 2026-11-25T22:56:43.293Z
