Redis
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