TMA-REDIS-RENAME-FLUSH
Ensure FLUSHALL and FLUSHDB are renamed or blocked
MoyenneNiveau 2Automatiséeredis
Description
FLUSHALL/FLUSHDB destroy all data in one command. Compliant when rename-command FLUSHALL is set or the default ACL user has -@dangerous / -flushall. Checks /etc/redis/redis.conf (SKIP when it does not exist; RHEL uses /etc/redis.conf).
Méthode de vérification
Méthode d'audit: Motif de fichier
- Fichier
/etc/redis/redis.conf- Motif
(?mi)^[ \t]*(?:rename-command[ \t]+['\x22]?flushall['\x22]?[ \t]+\S+|user[ \t]+default[ \t][^\n]*(?:-@dangerous|-flushall)\b)
Méthode de correction
Méthode de correction: Recommandation ou correctif d'infrastructure
Add 'rename-command FLUSHALL ""' and 'rename-command FLUSHDB ""' to redis.conf (or use ACLs -@dangerous) and restart Redis
Propriétés
- Systèmes d'exploitation
- Tous
- Étiquettes
- redisdatabasesurface-reduction
- Référence
- CIS Redis Benchmark - Command Hardening / Dangerous Commands (verify section number for your release)
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
shell
tmaegis scan --target redis --level 2