TMA-REDIS-RENAME-FLUSH
Ensure FLUSHALL and FLUSHDB are renamed or blocked
中レベル 2自動redis
説明
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).
チェック方法
監査方法: ファイルパターン
- ファイル
/etc/redis/redis.conf- パターン
(?mi)^[ \t]*(?:rename-command[ \t]+['\x22]?flushall['\x22]?[ \t]+\S+|user[ \t]+default[ \t][^\n]*(?:-@dangerous|-flushall)\b)
修正方法
修正方法: ガイダンスまたは IaC パッチ
Add 'rename-command FLUSHALL ""' and 'rename-command FLUSHDB ""' to redis.conf (or use ACLs -@dangerous) and restart Redis
プロパティ
- オペレーティングシステム
- すべて
- タグ
- redisdatabasesurface-reduction
- 参照
- CIS Redis Benchmark - Command Hardening / Dangerous Commands (verify section number for your release)
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target redis --level 2