TMA-REDIS-CONFIG-PERMISSIONS
Ensure redis.conf is not writable by group or readable by others
中等級 1自動化redis
說明
redis.conf contains requirepass and ACL secrets; restrict it to mode 640 or stricter. Checks /etc/redis/redis.conf (SKIP when it does not exist; RHEL uses /etc/redis.conf).
檢查方式
稽核方法: Shell 指令
shell
p=$(stat -c %a /etc/redis/redis.conf 2>/dev/null) || exit 1; if [ $((0$p & 037)) -eq 0 ]; then echo compliant; else echo "mode $p"; fi- 預期輸出
compliant
修補方式
修補方法: Shell 指令
shell
chmod 640 /etc/redis/redis.conf屬性
- 作業系統
- 不限
- 標籤
- redisdatabasepermissionsfilesystem
- 參考資料
- CIS Redis Benchmark - File Permissions / Configuration File (verify section number for your release)
檢查此主機
請在您有權稽核的機器上執行此指令。掃描為唯讀操作。
shell
tmaegis scan --target redis