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 11/18/2026
Approvedrand@0.10.4View on registry ↗latest: 0.10.4

False positive: 'D::' matches are Rust generic Deserializer bounds in serde code (deser_sampler and deserialize methods). No network, IPs, or malicious behavior exists. This is the legitimate rand crate.

Protect your projects free

AI breakdown

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

The rand crate (v0.10.4) is a Rust library that provides random number generation, including RNG implementations and probability distributions.

Capabilities

  • Implements RNG algorithms (e.g. xoshiro)
  • Provides random distributions (uniform, weighted, etc.)
  • Supports sequence sampling

Data access

  • None observed

Network

  • No network access observed

Standard pure-Rust randomness library with no scripts or dependencies; the reported hardcoded IP finding does not match the provided source files.

Security findings (1)

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.

Files in package (38)

.cargo_vcs_info.jsonCHANGELOG.mdCOPYRIGHTCargo.lockCargo.tomlCargo.toml.origLICENSE-APACHELICENSE-MITREADME.mdsrc/distr/bernoulli.rssrc/distr/distribution.rssrc/distr/float.rssrc/distr/integer.rssrc/distr/mod.rssrc/distr/other.rssrc/distr/slice.rssrc/distr/uniform.rssrc/distr/uniform_float.rssrc/distr/uniform_int.rssrc/distr/uniform_other.rssrc/distr/utils.rssrc/distr/weighted/mod.rssrc/distr/weighted/weighted_index.rssrc/lib.rssrc/prelude.rssrc/rng.rssrc/rngs/mod.rssrc/rngs/small.rssrc/rngs/std.rssrc/rngs/thread.rssrc/rngs/xoshiro128plusplus.rssrc/rngs/xoshiro256plusplus.rssrc/seq/coin_flipper.rssrc/seq/increasing_uniform.rssrc/seq/index.rssrc/seq/iterator.rssrc/seq/mod.rssrc/seq/slice.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