TMAegisBeta
更多 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