TMA-APACHE-6.6
Ensure ModSecurity Is Installed and Enabled
설명
ModSecurity is an open source web application firewall (WAF) for real-time web application monitoring, logging, and access control. It enables but does not include a powerful customizable rule set, which may be used to detect and block common web application attacks. Installation of ModSecurity without a rule set does not provide additional security for the protected web applications. Compliant when security2_module (ModSecurity) is loaded. Uses the module list from apachectl -M (apache2ctl/httpd; needs root).
점검 방법
감사 방식: 셸 명령
b=$(command -v apache2ctl || command -v apachectl || command -v httpd) || exit 1; m=$("$b" ${APACHE_CONF:+-f "$APACHE_CONF"} -M 2>/dev/null) || exit 1; printf '%s\n' "$m" | grep -Eiq 'security2_module' && echo compliant || echo noncompliant- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
Install ModSecurity (dnf install mod_security / apt install libapache2-mod-security2), enable it and deploy a rule set such as the OWASP CRS. Then run apachectl configtest and reload Apache.
속성
- 운영 체제
- 모두
- 태그
- apachelogging
- 참고 자료
- CIS Apache HTTP Server 2.4 Benchmark v2.4.0 - 6.6 Ensure ModSecurity Is Installed and Enabled
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
tmaegis scan --target apache --level 2