crates.io package intelligence

rand — deep security report

ShadowCanopy's full breakdown of rand on crates.io: verdict, AI analysis, dependency chain, network behavior, prebuilds, and obfuscated code.

Safe to use
Deep-scanned by ShadowCanopy — no threats found in its code, dependencies, or network behavior.
Scanned 9/22/2026
Approvedrand@0.10.3View on registry ↗latest: 0.10.3

False positive from 'D::' in a serde deserializer generic (deser_sampler fn). This is the legitimate rand crate; the flagged code is ordinary UTF-16 surrogate handling for Uniform<char> with no network, exfil, or malicious behavior.

Protect your projects free

AI breakdown

Plain-English summary of what this package does and how it behaves.

The rand package (v0.10.3) is a Rust crate providing random number generation, including probability distributions and RNG implementations.

Capabilities

  • Implements random distributions (Bernoulli, Uniform, Weighted, etc.)
  • Provides RNG traits and implementations (StdRng, ThreadRng, SmallRng)
  • Includes prelude and utility modules for RNG usage

Data access

  • None observed

Network

  • Hardcoded public IP in network code (static finding ATK-028)

Standard randomness library with no scripts or dependencies; static analysis flags potential network code that is not evidenced in the provided source sample.

Security findings (2)

Static analysis rule matches, with the exact code that triggered them.

highHardcoded public IP in network codeATK-028src/distr/uniform_other.rs

File src/distr/uniform_other.rs contains a hardcoded public IP (D::) used in network code — review for hidden exfiltration or C2 endpoints.

highHardcoded public IP in network codeATK-028rand-0.10.3/src/distr/uniform_other.rs

File rand-0.10.3/src/distr/uniform_other.rs contains a hardcoded public IP (D::) used in network code — review for hidden exfiltration or C2 endpoints.

Files in package (76)

.cargo_vcs_info.jsonrand-0.10.3/.cargo_vcs_info.jsonCHANGELOG.mdrand-0.10.3/CHANGELOG.mdCOPYRIGHTrand-0.10.3/COPYRIGHTCargo.lockrand-0.10.3/Cargo.lockCargo.tomlrand-0.10.3/Cargo.tomlCargo.toml.origrand-0.10.3/Cargo.toml.origLICENSE-APACHErand-0.10.3/LICENSE-APACHELICENSE-MITrand-0.10.3/LICENSE-MITREADME.mdrand-0.10.3/README.mdsrc/distr/bernoulli.rsrand-0.10.3/src/distr/bernoulli.rssrc/distr/distribution.rsrand-0.10.3/src/distr/distribution.rssrc/distr/float.rsrand-0.10.3/src/distr/float.rssrc/distr/integer.rsrand-0.10.3/src/distr/integer.rssrc/distr/mod.rsrand-0.10.3/src/distr/mod.rssrc/distr/other.rsrand-0.10.3/src/distr/other.rssrc/distr/slice.rsrand-0.10.3/src/distr/slice.rssrc/distr/uniform.rsrand-0.10.3/src/distr/uniform.rssrc/distr/uniform_float.rsrand-0.10.3/src/distr/uniform_float.rssrc/distr/uniform_int.rsrand-0.10.3/src/distr/uniform_int.rssrc/distr/uniform_other.rsrand-0.10.3/src/distr/uniform_other.rs

How ShadowCanopy checks crates.io packages

ShadowCanopy blocks every dependency by default and only lets through what it can verify — against live malicious-package advisories, an AI behavior scan, and a byte-for-byte hash check. It protects installs across npm, PyPI, crates.io, pkg.go.dev, RubyGems, Maven Central, NuGet, Packagist, Hex, pub.dev, Swift Package Manager.

Protect your projects freeSee what's being blocked

This report reflects ShadowCanopy's threat intelligence at page load and is informational, not a warranty. Canonical URL: https://shadowcanopy.dev/packages/crates/rand