TMAegis
Mais regras para redis

TMA-REDIS-CONFIG-PERMISSIONS

Ensure redis.conf is not writable by group or readable by others

MédiaNível 1Automatizadaredis

Descrição

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).

Como é verificado

Método de auditoria: Comando 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
Saída esperada
compliant

Como é corrigido

Método de correção: Comando shell

shell
chmod 640 /etc/redis/redis.conf

Propriedades

Sistemas operacionais
Qualquer
Tags
redisdatabasepermissionsfilesystem
Referência
CIS Redis Benchmark - File Permissions / Configuration File (verify section number for your release)

Verificar este host

Execute isto em uma máquina que você tenha permissão para auditar. A varredura é somente leitura.

shell
tmaegis scan --target redis