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
out=$(ps -eo user=,args= | grep '[C]assandraDaemon') || exit 1; printf '%s\n' "$out" | awk '$1 == "root" {n++} END {print n+0}'- 期待される出力
0
修正方法
修正方法: ガイダンスまたは IaC パッチ
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