TMAegisBeta
更多 cassandra 规则

Apache 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