TMAegis
cassandra 관련 규칙 더 보기

Apache Cassandra

TMA-CASSANDRA-CONFIG-PERMISSIONS

Ensure cassandra.yaml is not writable by group or readable by others

보통레벨 1자동cassandra

설명

cassandra.yaml can contain keystore and truststore passwords; restrict it to mode 640 or stricter. Checks /etc/cassandra/cassandra.yaml (SKIP when it does not exist; tarball installs keep it under $CASSANDRA_HOME/conf).

점검 방법

감사 방식: 셸 명령

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

조치 방법

조치 방식: 셸 명령

shell
chmod 640 /etc/cassandra/cassandra.yaml

속성

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

이 호스트 점검하기

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

shell
tmaegis scan --target cassandra