TMAegisBeta
Weitere Regeln für mongodb

MongoDB

TMA-MONGO-BIND-ALL

Ensure mongod does not listen on all interfaces

HochStufe 1Automatisiertmongodb

Beschreibung

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).

So wird geprüft

Prüfmethode: Dateimuster

Datei
/etc/mongod.conf
Muster
(?m)^[ \t]*(?:bindIp:[^#\n]*0\.0\.0\.0|bindIp:[^#\n]*::(?:[ ,'\x22]|$)|bindIpAll:[ \t]*true)

So wird behoben

Behebungsmethode: Anleitung oder Infrastruktur-Patch

Set net.bindIp to 127.0.0.1 plus the specific private addresses required (remove bindIpAll), then restart mongod

Eigenschaften

Betriebssysteme
Beliebig
Tags
mongodbdatabasenetwork
Referenz
CIS MongoDB Benchmark - Network Exposure / Bind Address (verify section number for your release)

Diesen Host prüfen

Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.

shell
tmaegis scan --target mongodb