Cis Apache24 2.2
DevOps & Securitycis-apache24-2.2Cis Apache24 2.2 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 the Log Config Module Is Enabled
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
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.4_Benchmark_v2.3.0/cis-apache24-2.2/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-apache24-2-2, 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.
2.2 Ensure the Log Config Module Is Enabled (Automated)
Profile Applicability
- Level 1
Description
The log_config module provides for flexible logging of client requests, and provides for the configuration of the information in each log.
Rationale
Logging is critical for monitoring usage and potential abuse of your web server. This module is required to configure web server logging using the log_format directive.
Audit
Perform the following to determine if the log_config has been loaded:
Use the httpd -M option as root to check that the module is loaded.
# httpd -M | grep log_config
Note: If the module is correctly enabled, the output will include the module name and whether it is loaded statically or as a shared module
Remediation
Perform either one of the following:
- For source builds with static modules, run the Apache
./configurescript without including the--disable-log-configscript options.$ cd $DOWNLOAD_HTTPD$ ./configure
- For dynamically loaded modules, add or modify the LoadModule directive so that it is present in the apache configuration as below and not commented out:
LoadModule log_config_module modules/mod_log_config.so
Default Value
The log_config module is loaded by default.
References
CIS Controls
- v8: 8.2 Collect Audit Logs
- v7: 6.2 Activate audit logging
- v7: 6.3 Enable Detailed Logging
Profile
- Level 1