TMA-MONGODB-4.3
Ensure Encryption of Data in Transit TLS or SSL (Transport Encryption)
높음레벨 1자동mongodb
설명
Use TLS or SSL to protect all incoming and outgoing connections. This should include using TLS or SSL to encrypt communication between the mongod and mongos components of a MongoDB client as well as between all applications and MongoDB. MongoDB supports TLS/SSL (Transport Layer Security/Secure Sockets Layer) to encrypt all of MongoDB's network traffic. Checks the YAML config file /etc/mongod.conf (SKIP when it does not exist).
점검 방법
감사 방식: 파일 패턴
- 파일
/etc/mongod.conf- 패턴
(?m)^[ \t]*mode:[ \t]*['\x22]?require(?:TLS|SSL)\b
조치 방법
조치 방식: 가이드 또는 인프라 패치
Set net.tls.mode: requireTLS with net.tls.certificateKeyFile and net.tls.CAFile in /etc/mongod.conf, update clients to use TLS, then restart mongod.
속성
- 운영 체제
- 모두
- 태그
- mongodbtlsencryption
- 참고 자료
- CIS MongoDB 8 Benchmark v2.0.0 - 4.3 Ensure Encryption of Data in Transit TLS or SSL (Transport Encryption)
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target mongodb