Table of contents
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
You can file an issue about it and ask that it be added.
Table of Contents
Entropy
Not available from C2S/CIS standard.
Entropy is the measure of the random numbers available from /dev/urandom.
It is important for a secure operating system to have sufficient quantities of entropy available for various crypotographic and non-cryptographic purposes, such as:
- generation of cryptographic keys
- TCP port randomisation (NAT, outbound connection)
- TCP sequence number selection
- writing random files for testing network functionality and throughput
- overwriting hard disks prior to reuse or resale or encryption
Alternative entropy sources
Rationale
It is generally recommended wherever entropy is used heavily to supply additional entropy sources.
Solution
Haveged
Haveged was created to remedy low-entropy conditions in the Linux random device that can occur under some workloads, especially on headless servers.
# Add haveged daemon to autostart
systemctl enable haveged
# For temporary change:
echo "1024" > /proc/sys/kernel/random/write_wakeup_threshold
# For permanent change (edit /etc/rc.local):
/usr/local/sbin/haveged -w 1024
Comments
To check the status of your server’s entropy, just run the following:
cat /proc/sys/kernel/random/entropy_avail
To check the maximum limit of entropy:
cat /proc/sys/kernel/random/poolsize
Useful resources
Basic information
- GH Page
- GH Repository
- Introduction
- Policy Compliance
- Security Content Automation Protocol (SCAP)
- DevSec Hardening Framework
- Contributing & Support
- License
Core Layer
- Bootloader and Partitions
- Maintaining Software
- Accounts and Access
- Permissions and Limits
- PAM Module
- SELinux
- Auditd
- OpenSSH
Kernel Layer
Extended Layer
Logging & Auditing
System Services
Other Services
Containers
The Practical Linux Hardening Guide provides a high-level overview of the hardening GNU/Linux systems. It is not an official standard or handbook but it touches and use industry standards.