| 加固项 | 缓存服务安全 |
|---|---|
| 适用平台 | Linux(Redis) |
| 风险等级 | 高 |
| 基线 | 不暴露公网、有认证、非 root |
核查
核查
ss -tlnp | grep ':6379 '
redis-cli -h 127.0.0.1 config get bind 2>/dev/null
redis-cli -h 127.0.0.1 config get protected-mode 2>/dev/null
redis-cli -h 127.0.0.1 config get requirepass 2>/dev/null
grep -E '^(bind|protected-mode|requirepass|user)' /etc/redis/redis.conf 2>/dev/null加固要点(redis.conf)
加固要点(redis.conf)
bind 127.0.0.1 -::1
protected-mode yes
requirepass <强口令> # 或使用 ACL user
rename-command CONFIG ""
rename-command FLUSHALL ""
# systemd 中 User=redis,禁用 root 启动历史事件中,攻击者通过未授权 Redis 写入 authorized_keys 直接拿到 shell:暴露即高危,处置优先于其他加固。