TMA-REDIS-BIND
Ensure Redis binds only to specific interfaces
높음레벨 1자동redis
설명
Without a bind directive, or with 0.0.0.0 / * / ::*, Redis listens on every interface. Compliant when a bind line exists and lists no wildcard address. Checks /etc/redis/redis.conf (SKIP when it does not exist; RHEL uses /etc/redis.conf).
점검 방법
감사 방식: 셸 명령
shell
f=/etc/redis/redis.conf; [ -r "$f" ] || exit 1; awk '$1 == "bind" {b = 1; for (i = 2; i <= NF; i++) if ($i ~ /^-?(0\.0\.0\.0|\*|::|::\*|::0)$/) w = 1} END {print (b && !w) ? "compliant" : "noncompliant"}' "$f"- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
Set 'bind 127.0.0.1 -::1' plus only the private addresses clients use in redis.conf and restart Redis
속성
- 운영 체제
- 모두
- 태그
- redisdatabasenetwork
- 참고 자료
- CIS Redis Benchmark - Network Security / Bind Address (verify section number for your release)
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target redis