Apache Cassandra
TMA-CASSANDRA-2.2
Ensure that authorization is enabled for Cassandra databases
Description
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).
Méthode de vérification
Méthode d'audit: Motif de fichier
- Fichier
/etc/cassandra/cassandra.yaml- Motif
(?m)^authorizer:[ \t]*(?:\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+class_name[ \t]*:[ \t]*)?['\x22]?(?:[\w.]*\.)?(?:CassandraAuthorizer)\b
Méthode de correction
Méthode de correction: Recommandation ou correctif d'infrastructure
Set 'authorizer: CassandraAuthorizer' in cassandra.yaml, rolling-restart the nodes, then grant least-privilege permissions to roles.
Propriétés
- Systèmes d'exploitation
- Tous
- Étiquettes
- cassandraauthorization
- Référence
- CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 2.2 Ensure that authorization is enabled for Cassandra databases
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
tmaegis scan --target cassandra