TMAegis
redis 관련 규칙 더 보기

TMA-REDIS-RENAME-CONFIG

Ensure the CONFIG command is renamed or blocked

높음레벨 1자동redis

설명

CONFIG lets a client rewrite dir/dbfilename and write arbitrary files (a classic Redis-to-RCE path). Compliant when rename-command CONFIG is set or the default ACL user has -@dangerous / -@admin / -config. 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]?config['\x22]?[ \t]+\S+|user[ \t]+default[ \t][^\n]*(?:-@dangerous|-@admin|-config)\b)

조치 방법

조치 방식: 가이드 또는 인프라 패치

Add 'rename-command CONFIG ""' (or a secret name) to redis.conf, or restrict the default ACL user with -@dangerous, then restart Redis

속성

운영 체제
모두
태그
redisdatabasesurface-reduction
참고 자료
CIS Redis Benchmark - Command Hardening / Dangerous Commands (verify section number for your release)

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target redis