Windows API reference

CryptGenRandom

Fills a buffer with cryptographically strong random bytes.

Library
Advapi32.dll
Category
Crypto
Suspicion
medium
MITRE ATT&CK
Not mapped

Detection summary

CryptGenRandom has no direct Sysmon or kernel ETW event; only imports, user-mode hooks and surrounding behavior expose it.

Sources and documentation

Not yet human-reviewed. Page metadata generated .

Legitimate use

Browsers, VPNs, messengers, installers, password managers and games.

Open CryptGenRandom in the interactive atlas