Apache Cassandra
TMA-CASSANDRA-4.2
Ensure that auditing is enabled
说明
Audit logging in Cassandra logs every incoming CQL command request, Authentication (successful as well as unsuccessful login) to C* node. Currently, there are two implementations provided, the custom logger can be implemented and injected with the class name as a parameter in cassandra.yaml. The benchmark rates this recommendation Manual; the automated check covers its objective pass criterion. Checks /etc/cassandra/cassandra.yaml (package install; SKIP when it does not exist).
检查方式
审计方法: 文件正则匹配
- 文件
/etc/cassandra/cassandra.yaml- 匹配模式
(?m)^audit_logging_options:[ \t]*\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+enabled:[ \t]*['\x22]?true\b
修复方式
修复方法: 操作指南或基础设施补丁
Set audit_logging_options.enabled: true (logger BinAuditLogger or FileAuditLogger, with included_categories) in cassandra.yaml and restart, or run nodetool enableauditlog on each node.
属性
- 操作系统
- 任意
- 标签
- cassandraloggingaudit
- 参考
- CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 4.2 Ensure that auditing is enabled
检查本机
请在您有权审计的机器上运行此命令。扫描为只读操作。
tmaegis scan --target cassandra