TMAegisBeta
更多 cassandra 規則

Apache Cassandra

TMA-CASSANDRA-4.2

Ensure that auditing is enabled

高等級 1自動化cassandra

說明

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

檢查此主機

請在您有權稽核的機器上執行此指令。掃描為唯讀操作。

shell
tmaegis scan --target cassandra