TMAegis
Weitere Regeln für redis

TMA-REDIS-CONFIG-PERMISSIONS

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

MittelStufe 1Automatisiertredis

Beschreibung

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

So wird geprüft

Prüfmethode: Shell-Befehl

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
Erwartete Ausgabe
compliant

So wird behoben

Behebungsmethode: Shell-Befehl

shell
chmod 640 /etc/redis/redis.conf

Eigenschaften

Betriebssysteme
Beliebig
Tags
redisdatabasepermissionsfilesystem
Referenz
CIS Redis Benchmark - File Permissions / Configuration File (verify section number for your release)

Diesen Host prüfen

Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.

shell
tmaegis scan --target redis