TMAegis
mongodb のその他のルール

TMA-MONGO-REDACT-CLIENT-LOG

Ensure client data is redacted from logs

低レベル 2自動mongodb

説明

security.redactClientLogData: true keeps document contents out of diagnostic logs (MongoDB Enterprise). Checks the YAML config file /etc/mongod.conf (SKIP when it does not exist).

チェック方法

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

ファイル
/etc/mongod.conf
パターン
(?m)^[ \t]*redactClientLogData:[ \t]*true\b

修正方法

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

Set security.redactClientLogData: true in /etc/mongod.conf and restart mongod

プロパティ

オペレーティングシステム
すべて
タグ
mongodbdatabaseloggingprivacy
参照
CIS MongoDB Benchmark - Data Encryption / Log Redaction (verify section number for your release)

このホストをチェック

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

shell
tmaegis scan --target mongodb --level 2