TMAegisBeta
更多 cassandra 規則

Apache Cassandra

TMA-CASSANDRA-3.4

Ensure that Cassandra is run using a non-privileged, dedicated service account

高等級 1自動化cassandra

說明

As with any service installed on a host, it can be provided with its own user context. Providing a dedicated user to the service provides the ability to precisely constrain the service within the larger host context. Passes when every CassandraDaemon process runs as the cassandra account (the benchmark assumes that user name); also confirm with sudo -l -U cassandra that it has no administrative rights.

檢查方式

稽核方法: Shell 指令

shell
out=$(ps -eo user=,args= | grep '[C]assandraDaemon') || exit 1; printf '%s\n' "$out" | awk '$1 != "cassandra" {n++} END {print n+0}'
預期輸出
0

修補方式

修補方法: 操作指南或基礎設施修補檔

Run Cassandra under a dedicated, non-administrative cassandra account (User=cassandra in the service unit) and remove any sudo rights for it.

屬性

作業系統
不限
標籤
cassandraservice-account
參考資料
CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 3.4 Ensure that Cassandra is run using a non-privileged, dedicated service account

檢查此主機

請在您有權稽核的機器上執行此指令。掃描為唯讀操作。

shell
tmaegis scan --target cassandra