TMAegis
Другие правила для cassandra

TMA-CASSANDRA-2.2

Ensure that authorization is enabled for Cassandra databases

КритическийУровень 1Автоматическаяcassandra

Описание

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).

Как проверяется

Метод проверки: Шаблон в файле

Файл
/etc/cassandra/cassandra.yaml
Шаблон
(?m)^authorizer:[ \t]*(?:\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+class_name[ \t]*:[ \t]*)?['\x22]?(?:[\w.]*\.)?(?:CassandraAuthorizer)\b

Как исправляется

Метод исправления: Рекомендация или патч инфраструктуры

Set 'authorizer: CassandraAuthorizer' in cassandra.yaml, rolling-restart the nodes, then grant least-privilege permissions to roles.

Свойства

Операционные системы
Любая
Теги
cassandraauthorization
Источник
CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 2.2 Ensure that authorization is enabled for Cassandra databases

Проверить этот хост

Выполните команду на компьютере, аудит которого вам разрешён. Сканирование работает только на чтение.

shell
tmaegis scan --target cassandra