OpenParable
Skip to content
← Back to skills

Cis Apache 8.1

DevOps & Security
cis-apache-8.1

Cis Apache 8.1 is an Agent Skill for devops & security published in the CyberStrikeus/CyberStrike repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Ensure ServerTokens is Set to 'Prod' or 'ProductOnly'

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/CyberStrikeus/CyberStrike/blob/HEAD/.cyberstrike/skill/CIS_benchmarks/Server_Software/Apache_HTTP_Server/CIS_Apache_HTTP_Server_2.2_Benchmark_v3.6.0/cis-apache-8.1/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-apache-8-1, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Ensure ServerTokens is Set to 'Prod' or 'ProductOnly'

Description

Configure the Apache ServerTokens directive to provide minimal information by setting the value to Prod or ProductOnly. The only version information given in the server HTTP response header will be Apache rather than details on modules and versions installed.

Rationale

Information is power, and identifying web server details greatly increases the efficiency of any attack, as security vulnerabilities are extremely dependent upon specific software versions and configurations. Excessive probing and requests may cause too much "noise" being generated and may tip off an administrator. If an attacker can accurately target exploits, the chances of successful compromise prior to detection increase dramatically. Script kiddies are constantly scanning the Internet and documenting the version information openly provided by web servers. The purpose of this scanning is to accumulate a database of software installed on those hosts, which can then be used when new vulnerabilities are released.

Audit

Perform the following steps to determine if the recommended state is implemented:

Verify the ServerTokens directive is present in the Apache configuration and has a value of Prod or ProductOnly.

Remediation

Perform the following to implement the recommended state:

Add or modify the ServerTokens directive as shown below to have the value of Prod or ProductOnly:

ServerTokens Prod

Default Value

The default value is Full, which provides the most detailed information.

ServerTokens Full

References

  1. https://httpd.apache.org/docs/2.2/mod/core.html#servertokens

CIS Controls

Version 6

18.9 Sanitize Deployed Software Of Development Artifacts For in-house developed applications, ensure that development artifacts (sample data and scripts; unused libraries, components, debug code; or tools) are not included in the deployed software, or accessible in the production environment.

Version 7

14.7 Enforce Access Control to Data through Automated Tools Use an automated tool, such as host-based Data Loss Prevention, to enforce access controls to data even when data is copied off a system.

Profile

Level 1 | Scored Level 2 | Scored