MongoDB
TMA-MONGODB-4.2
Ensure Weak Protocols are Disabled
HighLevel 1Automatedmongodb
Description
Servers can be configured to disable specific TLS/SSL protocol versions which may be vulnerable to exploitation and/or lack features which improve the level of security as provided by newer versions of the protocol. Checks the YAML config file /etc/mongod.conf (SKIP when it does not exist).
How it is checked
Audit method: File pattern
- File
/etc/mongod.conf- Pattern
(?m)^[ \t]*(?:disabledProtocols|sslDisabledProtocols):[^\n]*(?:TLS1_0[^\n]*TLS1_1|TLS1_1[^\n]*TLS1_0)
How it is fixed
Fix method: Guidance or infrastructure patch
Set net.tls.disabledProtocols: TLS1_0,TLS1_1 in /etc/mongod.conf (or start with --tlsDisabledProtocols TLS1_0,TLS1_1) and restart mongod.
Properties
- Operating systems
- Any
- Tags
- mongodbtlsencryption
- Reference
- CIS MongoDB 8 Benchmark v2.0.0 - 4.2 Ensure Weak Protocols are Disabled
Check this host
Run this on a machine you are allowed to audit. The scan is read-only.
shell
tmaegis scan --target mongodb