TMAegisBeta
更多 cassandra 规则

Apache Cassandra

TMA-CASSANDRA-2.1

Ensure that authentication is enabled for Cassandra databases

严重级别 1自动化cassandra

说明

Authentication is pluggable in Cassandra and is configured using the authenticator setting in cassandra.yaml. Cassandra ships with two options included in the default distribution, AllowAllAuthenticator and PasswordAuthenticator. The default, AllowAllAuthenticator, performs no authentication checks and therefore requires no credentials. It is used to disable authentication completely. Checks /etc/cassandra/cassandra.yaml (package install; SKIP when it does not exist).

检查方式

审计方法: 文件正则匹配

文件
/etc/cassandra/cassandra.yaml
匹配模式
(?m)^authenticator:[ \t]*(?:\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+class_name[ \t]*:[ \t]*)?['\x22]?(?:[\w.]*\.)?(?:PasswordAuthenticator|MutualTlsAuthenticator|MutualTlsWithPasswordFallbackAuthenticator)\b

修复方式

修复方法: 操作指南或基础设施补丁

Set 'authenticator: PasswordAuthenticator' in cassandra.yaml, raise system_auth replication (NetworkTopologyStrategy, RF 3 per DC), rolling-restart the nodes and create a new superuser.

属性

操作系统
任意
标签
cassandraauthentication
参考
CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 2.1 Ensure that authentication is enabled for Cassandra databases

检查本机

请在您有权审计的机器上运行此命令。扫描为只读操作。

shell
tmaegis scan --target cassandra