TMA-REDIS-TLS
Ensure TLS is enabled
MediumLevel 2Automatedredis
Description
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).
How it is checked
Audit method: File pattern
- File
/etc/redis/redis.conf- Pattern
(?m)^[ \t]*tls-port[ \t]+[1-9][0-9]*\b
How it is fixed
Fix method: Guidance or infrastructure patch
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
Properties
- Operating systems
- Any
- Tags
- redisdatabasetls
- Reference
- CIS Redis Benchmark - Network Security / TLS (verify section number for your release)
Check this host
Run this on a machine you are allowed to audit. The scan is read-only.
shell
tmaegis scan --target redis --level 2