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