TMAegis
cassandra のその他のルール

TMA-CASSANDRA-2.1

Ensure that authentication is enabled for Cassandra databases

クリティカルレベル 1自動cassandra

説明

Authentication is pluggable in Cassandra and is configured using the authenticator setting in cassandra.yaml. Cassandra ships with two options included in the default distribution, AllowAllAuthenticator and PasswordAuthenticator. The default, AllowAllAuthenticator, performs no authentication checks and therefore requires no credentials. It is used to disable authentication completely. Checks /etc/cassandra/cassandra.yaml (package install; SKIP when it does not exist).

チェック方法

監査方法: ファイルパターン

ファイル
/etc/cassandra/cassandra.yaml
パターン
(?m)^authenticator:[ \t]*(?:\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+class_name[ \t]*:[ \t]*)?['\x22]?(?:[\w.]*\.)?(?:PasswordAuthenticator|MutualTlsAuthenticator|MutualTlsWithPasswordFallbackAuthenticator)\b

修正方法

修正方法: ガイダンスまたは IaC パッチ

Set 'authenticator: PasswordAuthenticator' in cassandra.yaml, raise system_auth replication (NetworkTopologyStrategy, RF 3 per DC), rolling-restart the nodes and create a new superuser.

プロパティ

オペレーティングシステム
すべて
タグ
cassandraauthentication
参照
CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 2.1 Ensure that authentication is enabled for Cassandra databases

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target cassandra