TMAegisベータ
redis のその他のルール

Redis

TMA-REDIS-RENAME-CONFIG

Ensure the CONFIG command is renamed or blocked

高レベル 1自動redis

説明

CONFIG lets a client rewrite dir/dbfilename and write arbitrary files (a classic Redis-to-RCE path). Compliant when rename-command CONFIG is set or the default ACL user has -@dangerous / -@admin / -config. Checks /etc/redis/redis.conf (SKIP when it does not exist; RHEL uses /etc/redis.conf).

チェック方法

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

ファイル
/etc/redis/redis.conf
パターン
(?mi)^[ \t]*(?:rename-command[ \t]+['\x22]?config['\x22]?[ \t]+\S+|user[ \t]+default[ \t][^\n]*(?:-@dangerous|-@admin|-config)\b)

修正方法

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

Add 'rename-command CONFIG ""' (or a secret name) to redis.conf, or restrict the default ACL user with -@dangerous, then restart Redis

プロパティ

オペレーティングシステム
すべて
タグ
redisdatabasesurface-reduction
参照
CIS Redis Benchmark - Command Hardening / Dangerous Commands (verify section number for your release)

このホストをチェック

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

shell
tmaegis scan --target redis