TMAegis
更多 redis 规则

TMA-REDIS-TLS

Ensure TLS is enabled

中级别 2自动化redis

说明

tls-port (Redis 6+) with tls-cert-file/tls-key-file encrypts client traffic; also set 'port 0' to disable the plain-text listener. Checks /etc/redis/redis.conf (SKIP when it does not exist; RHEL uses /etc/redis.conf).

检查方式

审计方法: 文件正则匹配

文件
/etc/redis/redis.conf
匹配模式
(?m)^[ \t]*tls-port[ \t]+[1-9][0-9]*\b

修复方式

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

Set tls-port 6379, tls-cert-file, tls-key-file, tls-ca-cert-file and port 0 in redis.conf, restart Redis and configure clients for TLS

属性

操作系统
任意
标签
redisdatabasetls
参考
CIS Redis Benchmark - Network Security / TLS (verify section number for your release)

检查本机

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

shell
tmaegis scan --target redis --level 2