TMAegis
更多 mongodb 規則

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

修補方式

修補方法: 操作指南或基礎設施修補檔

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