TMA-CASSANDRA-2.2
Ensure that authorization is enabled for Cassandra databases
KritischStufe 1Automatisiertcassandra
Beschreibung
Authorization is pluggable in Cassandra and is configured using the authorizer setting in cassandra.yaml. Cassandra ships with two options included in the default distribution, AllowAllAuthenticator and CassandraAuthorizer. The default, AllowAllAuthenticator performs no checking which grants all permissions to all roles. Checks /etc/cassandra/cassandra.yaml (package install; SKIP when it does not exist).
So wird geprüft
Prüfmethode: Dateimuster
- Datei
/etc/cassandra/cassandra.yaml- Muster
(?m)^authorizer:[ \t]*(?:\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+class_name[ \t]*:[ \t]*)?['\x22]?(?:[\w.]*\.)?(?:CassandraAuthorizer)\b
So wird behoben
Behebungsmethode: Anleitung oder Infrastruktur-Patch
Set 'authorizer: CassandraAuthorizer' in cassandra.yaml, rolling-restart the nodes, then grant least-privilege permissions to roles.
Eigenschaften
- Betriebssysteme
- Beliebig
- Tags
- cassandraauthorization
- Referenz
- CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 2.2 Ensure that authorization is enabled for Cassandra databases
Diesen Host prüfen
Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.
shell
tmaegis scan --target cassandra