TMA-REDIS-AUTHENTICATION
Ensure client authentication is required
Nghiêm trọngCấp 1Tự độngredis
Mô tả
Without requirepass or an ACL password on the default user, any client that can reach the port has full access. Compliant when requirepass is set or the default user is defined with a password (>pw / #hash) or is turned off. ACLs defined only in an aclfile must be reviewed separately. Checks /etc/redis/redis.conf (SKIP when it does not exist; RHEL uses /etc/redis.conf).
Cách kiểm tra
Phương pháp kiểm tra: Mẫu tệp
- Tệp
/etc/redis/redis.conf- Mẫu khớp
(?m)^[ \t]*(?:requirepass[ \t]+\S+|user[ \t]+default[ \t][^\n]*(?:[ \t][>#]\S+|[ \t]off\b))
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
Set 'requirepass <long random secret>' (Redis < 6) or define ACL users with 'user <name> on ><secret> ~<keys> +@<categories>' and 'user default off' in redis.conf; restart and update clients
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- redisdatabaseauthentication
- Tham chiếu
- CIS Redis Benchmark - Authentication / requirepass and ACL (verify section number for your release)
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
shell
tmaegis scan --target redis