TMAegis
cassandra 관련 규칙 더 보기

TMA-CASSANDRA-1.5

Ensure the Cassandra service is run as a non-root user

높음레벨 1자동cassandra

설명

Though Cassandra database may be run as root, it should run as another non-root user. FAILs when no CassandraDaemon process is running.

점검 방법

감사 방식: 셸 명령

shell
out=$(ps -eo user=,args= | grep '[C]assandraDaemon') || exit 1; printf '%s\n' "$out" | awk '$1 == "root" {n++} END {print n+0}'
예상 출력
0

조치 방법

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

Create a dedicated cassandra system user, chown the data, commitlog, saved_caches and log directories to it and start the service with User=cassandra.

속성

운영 체제
모두
태그
cassandraservice-account
참고 자료
CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 1.5 Ensure the Cassandra service is run as a non-root user

이 호스트 점검하기

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

shell
tmaegis scan --target cassandra