Apache Cassandra
TMA-CASSANDRA-5.2
Client Encryption
高级别 1自动化cassandra
说明
Cassandra offers the option to encrypt data in transit between the client and nodes on the cluster. By default client encryption is turned off. Checks /etc/cassandra/cassandra.yaml (package install; SKIP when it does not exist). Passes when client_encryption_options.enabled is true; set optional: false to refuse unencrypted clients.
检查方式
审计方法: 文件正则匹配
- 文件
/etc/cassandra/cassandra.yaml- 匹配模式
(?m)^client_encryption_options:[ \t]*\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+enabled:[ \t]*['\x22]?true\b
修复方式
修复方法: 操作指南或基础设施补丁
Create a keystore, set client_encryption_options: {enabled: true, optional: false, keystore: ..., keystore_password: ...} in cassandra.yaml and rolling-restart; update drivers/cqlsh to use TLS.
属性
- 操作系统
- 任意
- 标签
- cassandraencryptiontls
- 参考
- CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 5.2 Client Encryption
检查本机
请在您有权审计的机器上运行此命令。扫描为只读操作。
shell
tmaegis scan --target cassandra