Apache Cassandra
TMA-CASSANDRA-1.1
Ensure a separate user and group exist for Cassandra
中レベル 1自動cassandra
説明
Create separate userid and group for Cassandra. The benchmark rates this recommendation Manual; the automated check covers its objective pass criterion. Passes when the cassandra group and user exist and the user is a member (primary or supplementary) of the group.
チェック方法
監査方法: シェルコマンド
shell
g=$(getent group cassandra) || exit 1; u=$(getent passwd cassandra) || exit 1; gid=$(printf '%s' "$g" | cut -d: -f3); ugid=$(printf '%s' "$u" | cut -d: -f4); members=$(printf '%s' "$g" | cut -d: -f4); if [ "$gid" = "$ugid" ] || printf '%s' ",$members," | grep -q ',cassandra,'; then echo compliant; else echo 'user not in group'; fi- 期待される出力
compliant
修正方法
修正方法: ガイダンスまたは IaC パッチ
groupadd cassandra; useradd -m -d /home/cassandra -s /bin/bash -g cassandra -u <UID> cassandra (use an unused UID).
プロパティ
- オペレーティングシステム
- すべて
- タグ
- cassandraservice-account
- 参照
- CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 1.1 Ensure a separate user and group exist for Cassandra
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target cassandra