Apache 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 命令
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