5.1.31 Ensure the SSH server uses strong entropy

Information

Administrators must ensure the SSH server uses strong entropy.

The most important characteristic of a random number generator is its randomness, namely its ability to deliver random numbers that are impossible to predict. Entropy in computer security is associated with the unpredictability of a source of randomness. The random source with high entropy tends to achieve a uniform distribution of random values. Random number generators are one of the most important building blocks of cryptosystems.

The SSH implementation in RHEL 8 operating systems uses the OPENSSL library, which does not use high-entropy sources by default. By using the "SSH_USE_STRONG_RNG" environment variable the OPENSSL random generator is reseeded from "/dev/random". This setting is not recommended on computers without the hardware random generator because insufficient entropy causes the connection to be blocked until enough entropy is available.

Solution

Configure the operating system SSH server to use strong entropy.

Add or modify the following line in the "/etc/sysconfig/sshd" file.

SSH_USE_STRONG_RNG=32

The SSH service must be restarted for changes to take effect.

See Also

https://workbench.cisecurity.org/benchmarks/19886

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CSCv7|14.4

Plugin: Unix

Control ID: 52a8f79f05183328f3716a91c0b28c874076973cea100698c021b0985b7d0041