TMAegisBeta
Thêm quy tắc cho redis

Redis

TMA-REDIS-CONFIG-PERMISSIONS

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

Trung bìnhCấp 1Tự độngredis

Mô tả

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

Cách kiểm tra

Phương pháp kiểm tra: Lệnh shell

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
Đầu ra mong đợi
compliant

Cách khắc phục

Phương pháp khắc phục: Lệnh shell

shell
chmod 640 /etc/redis/redis.conf

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
redisdatabasepermissionsfilesystem
Tham chiếu
CIS Redis Benchmark - File Permissions / Configuration File (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