TMAegis
redis のその他のルール

TMA-REDIS-AUTHENTICATION

Ensure client authentication is required

クリティカルレベル 1自動redis

説明

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

チェック方法

監査方法: ファイルパターン

ファイル
/etc/redis/redis.conf
パターン
(?m)^[ \t]*(?:requirepass[ \t]+\S+|user[ \t]+default[ \t][^\n]*(?:[ \t][>#]\S+|[ \t]off\b))

修正方法

修正方法: ガイダンスまたは IaC パッチ

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

プロパティ

オペレーティングシステム
すべて
タグ
redisdatabaseauthentication
参照
CIS Redis Benchmark - Authentication / requirepass and ACL (verify section number for your release)

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target redis