This formula enforce security recommandations from CIS Benchmarks website
From CIS_Apache_HTTP_Server_2.4_Benchmark_v1.4.pdf document
A scoring status indicates whether compliance with the given recommendation impacts the assessed target’s benchmark score.
Items in [level 2] profile exhibit one or more of the following characteristics:
- are intended for environments or use cases where security is paramount
- acts as defense in depth measure
- may negatively inhibit the utility or performance of the technology
In this formula we focus on (Scored) [level 1] items
[X] 2.8 Disable Info Module (Scored)
[X] 3.1 Run the Apache Web Server as a non-root user (Scored)
[X] 3.2 Give the Apache User Account an Invalid Shell (Scored)
[X] 3.4 Set Ownership on Apache Directories and Files (Scored)
[X] 3.5 Set Group Id on Apache Directories and Files (Scored)
[X] 3.7 Secure Core Dump Directory (Scored)
[X] 3.9 Secure the Pid File (Scored)
[X] 3.10 Secure the ScoreBoard File (Scored)
[X] 3.11 Restrict Group Write Access for the Apache Directories and Files (Scored)
[X] 3.12 Restrict Group Write Access for the Document Root Directories and Files (Scored)
[X] 4.1 Deny Access to OS Root Directory (Scored)
[X] 4.3 Restrict Override for the OS Root Directory (Scored)
[X] 4.4 Restrict Override for All Directories (Scored)
[X] 5.1 Restrict Options for the OS Root Directory (Scored)
[X] 5.2 Restrict Options for the Web Root Directory (Scored)
[X] 5.3 Minimize Options for Other Directories (Scored)
[X] 5.4 Remove Default HTML Content (Scored)
[X] 5.5 Remove Default CGI Content printenv (Scored)
[X] 5.6 Remove Default CGI Content test-cgi (Scored)
[X] 5.7 Limit HTTP Request Methods (Scored)
[X] 5.8 Disable HTTP TRACE Method (Scored)
[X] 5.9 Restrict HTTP Protocol Versions (Scored)
[X] 5.10 Restrict Access to .ht* files (Scored)
[X] 6.1 Configure the Error Log (Scored)
[X] 6.3 Configure the Access Log (Scored)
[X] 6.4 Log Storage and Rotation (Scored)
[X] 7.1 Install mod_ssl and/or mod_nss (Scored)
[X] 7.4 Disable the SSL v3.0 Protocol (Scored)
[X] 7.6 Disable SSL Insecure Renegotiation (Scored)
[X] 7.7 Ensure SSL Compression is not Enabled (Scored)
[X] 8.1 Set ServerToken to ‘Prod’ (Scored)
[X] 8.2 Set ServerSignature to ‘Off’ (Scored)
[X] 9.1 Set TimeOut to 10 or less (Scored)
[X] 9.2 Set the KeepAlive directive to On (Scored)
[X] 9.3 Set MaxKeepAliveRequests to 100 or greater (Scored)
[X] 9.4 Set KeepAliveTimeout Low to Mitigate Denial of Service (Scored)
[X] 9.5 Set Timeout Limits for Request Headers (Scored)
[X] 9.6 Set Timeout Limits for the Request Body (Scored)