MongoDB
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)
조치 방법
조치 방식: 가이드 또는 인프라 패치
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