TMAegis
mongodb 관련 규칙 더 보기

MongoDB

TMA-MONGO-CONFIG-PERMISSIONS

Ensure /etc/mongod.conf is not writable by group or readable by others

보통레벨 1자동mongodb

설명

The configuration file can reference key files and TLS settings; it should be mode 640 or stricter. SKIP when the file does not exist.

점검 방법

감사 방식: 셸 명령

shell
p=$(stat -c %a /etc/mongod.conf 2>/dev/null) || exit 1; if [ $((0$p & 037)) -eq 0 ]; then echo compliant; else echo "mode $p"; fi
예상 출력
compliant

조치 방법

조치 방식: 셸 명령

shell
chmod 640 /etc/mongod.conf

속성

운영 체제
모두
태그
mongodbdatabasepermissionsfilesystem
참고 자료
CIS MongoDB Benchmark - File Permissions / Configuration File (verify section number for your release)

이 호스트 점검하기

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

shell
tmaegis scan --target mongodb