Rule ID
- 4513-nginx-header-session-pfs
Category
Level
Compatible Versions
Description
- Session resumption for HTTPS sessions should be disabled to enable Perfect Forward Secrecy (PFS).
Scan Frequency
Rationale
- Perfect Forward Secrecy (PFS) is a cryptographic mechanism that prevents past session keys from being compromised even if the server's private key is leaked. If an attacker records all traffic to the server and stores it, then obtains the private key without PFS, all communications will be compromised. With PFS, session keys are generated per session using Diffie-Hellman, isolating potential session leakage to only that communication session. Allowing session resumption breaks PFS; if an attacker can compromise previous sessions and communications with the server, this expands the attacker's scope.
Risk Items
Audit Method
- Execute the following command to verify:
grep -ir ssl_session_tickets /etc/nginx
# Output should contain:
ssl_session_tickets off;
- Edit the file
/etc/nginx/nginx.conf or any file containing HTTPS configuration. Example:
Impact
Default Value
- Perfect Forward Secrecy is not enabled by default.
References
CIS Controls