{"id":"RUSTSEC-2023-0097","summary":"`lazystatic` was removed from crates.io for malicious code","details":"This crate was part of a typosquatting malware cluster published by the malicious user `amaperf` and contained a malware payload in build.rs to exfiltrate host information to the attacker.\n\nThis 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.\n\nThanks to [Veracode](https://www.veracode.com/) (formerly phylum)for\nreporting this to the crates.io team!","modified":"2026-03-19T22:30:08.108378Z","published":"2023-08-16T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/lazystatic"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2023-0097.html"},{"type":"WEB","url":"https://www.veracode.com/blog/rust-malware-staged-on-crates-io/"}],"affected":[{"package":{"name":"lazystatic","ecosystem":"crates.io","purl":"pkg:cargo/lazystatic"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"os":[],"functions":[]}},"database_specific":{"informational":null,"categories":["malicious"],"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2023-0097.json","cvss":null}}],"schema_version":"1.7.5"}