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)
조치 방법
조치 방식: 가이드 또는 인프라 패치
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