Apache Cassandra
TMA-CASSANDRA-2.2
Ensure that authorization is enabled for Cassandra databases
Descrição
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).
Como é verificado
Método de auditoria: Padrão de arquivo
- Arquivo
/etc/cassandra/cassandra.yaml- Padrão
(?m)^authorizer:[ \t]*(?:\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+class_name[ \t]*:[ \t]*)?['\x22]?(?:[\w.]*\.)?(?:CassandraAuthorizer)\b
Como é corrigido
Método de correção: Orientação ou patch de infraestrutura
Set 'authorizer: CassandraAuthorizer' in cassandra.yaml, rolling-restart the nodes, then grant least-privilege permissions to roles.
Propriedades
- Sistemas operacionais
- Qualquer
- Tags
- cassandraauthorization
- Referência
- CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 2.2 Ensure that authorization is enabled for Cassandra databases
Verificar este host
Execute isto em uma máquina que você tenha permissão para auditar. A varredura é somente leitura.
tmaegis scan --target cassandra