TMAegisBeta
Aturan lainnya untuk mongodb

MongoDB

TMA-MONGO-BIND-ALL

Ensure mongod does not listen on all interfaces

TinggiLevel 1Otomatismongodb

Deskripsi

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

Cara pemeriksaan

Metode audit: Pola file

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

Cara perbaikan

Metode perbaikan: Panduan atau patch infrastruktur

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

Properti

Sistem operasi
Apa saja
Tag
mongodbdatabasenetwork
Referensi
CIS MongoDB Benchmark - Network Exposure / Bind Address (verify section number for your release)

Periksa host ini

Jalankan ini pada mesin yang diizinkan untuk Anda audit. Pemindaian bersifat hanya baca.

shell
tmaegis scan --target mongodb