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