TMA-MONGO-BIND-ALL
Ensure mongod does not listen on all interfaces
高レベル 1自動mongodb
説明
bindIp 0.0.0.0 or bindIpAll exposes the database on every network interface; bind only to localhost and required private addresses. Checks the YAML config file /etc/mongod.conf (SKIP when it does not exist).
チェック方法
監査方法: ファイルパターン
- ファイル
/etc/mongod.conf- パターン
(?m)^[ \t]*(?:bindIp:[^#\n]*0\.0\.0\.0|bindIp:[^#\n]*::(?:[ ,'\x22]|$)|bindIpAll:[ \t]*true)
修正方法
修正方法: ガイダンスまたは IaC パッチ
Set net.bindIp to 127.0.0.1 plus the specific private addresses required (remove bindIpAll), then restart mongod
プロパティ
- オペレーティングシステム
- すべて
- タグ
- mongodbdatabasenetwork
- 参照
- CIS MongoDB Benchmark - Network Exposure / Bind Address (verify section number for your release)
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target mongodb