TMAegis
mongodb için daha fazla kural

TMA-MONGO-BIND-ALL

Ensure mongod does not listen on all interfaces

YüksekDüzey 1Otomatikmongodb

Açıklama

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

Nasıl denetlenir

Denetim yöntemi: Dosya deseni

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

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

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

Özellikler

İşletim sistemleri
Herhangi biri
Etiketler
mongodbdatabasenetwork
Referans
CIS MongoDB Benchmark - Network Exposure / Bind Address (verify section number for your release)

Bu ana makineyi denetle

Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.

shell
tmaegis scan --target mongodb