TMAegis
nginx 관련 규칙 더 보기

NGINX

TMA-NGINX-2.3.1

Ensure NGINX directories and files are owned by root

높음레벨 1자동nginx

설명

The NGINX configuration directory and all contained files must be owned by the root user and group to prevent unauthorized modification. Counts files and directories under /etc/nginx not owned by root:root; expects 0. Evaluated on the merged configuration printed by `nginx -T` (all included files; needs permission to read them). CIS marks this recommendation Manual; the automated check implements its audit procedure.

점검 방법

감사 방식: 셸 명령

shell
[ -d /etc/nginx ] || exit 1; find /etc/nginx \( ! -user root -o ! -group root \) -print 2>/dev/null | wc -l
예상 출력
0

조치 방법

조치 방식: 가이드 또는 인프라 패치

chown -R root:root /etc/nginx

속성

운영 체제
모두
태그
nginxpermissions
참고 자료
CIS NGINX Benchmark v3.0.0 - 2.3.1 Ensure NGINX directories and files are owned by root

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target nginx