TMAegis
redis 관련 규칙 더 보기

TMA-REDIS-CONFIG-PERMISSIONS

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

보통레벨 1자동redis

설명

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

점검 방법

감사 방식: 셸 명령

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
예상 출력
compliant

조치 방법

조치 방식: 셸 명령

shell
chmod 640 /etc/redis/redis.conf

속성

운영 체제
모두
태그
redisdatabasepermissionsfilesystem
참고 자료
CIS Redis Benchmark - File Permissions / Configuration File (verify section number for your release)

이 호스트 점검하기

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

shell
tmaegis scan --target redis