TMAegisBeta
Thêm quy tắc cho redis

Redis

TMA-REDIS-DEFAULT-USER-NOPASS

Ensure the default ACL user is not configured with nopass

Nghiêm trọngCấp 1Tự độngredis

Mô tả

'user default ... nopass' explicitly allows password-less access with the default user's permissions. 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]*user[ \t]+default[ \t][^\n]*\bnopass\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

Replace nopass with '><secret>' (or turn the user off with 'user default off') in redis.conf / the aclfile and restart, or ACL SETUSER default resetpass ><secret> followed by ACL SAVE

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
redisdatabaseauthentication
Tham chiếu
CIS Redis Benchmark - Authentication / ACL default user (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