CWE-1241: Use of Predictable Algorithm in Random Number Generator

BaseDraft

The device uses an algorithm that is predictable and generates a pseudo-random number.

View on MITRE
Back to CWE Lookup

Extended Description

Pseudo-random number generator algorithms are predictable because their registers have a finite number of possible states, which eventually lead to repeating patterns. As a result, pseudo-random number generators (PRNGs) can compromise their randomness or expose their internal state to various attacks, such as reverse engineering or tampering. It is highly recommended to use hardware-based true random number generators (TRNGs) to ensure the security of encryption schemes. TRNGs generate unpredictable, unbiased, and independent random numbers because they employ physical phenomena, e.g., electrical noise, as sources to generate random numbers.

Technical Details

Structure
Simple

Applicable To

Languages
Platforms

Learn More