TMA-MONGODB-4.3
Ensure Encryption of Data in Transit TLS or SSL (Transport Encryption)
Description
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).
Méthode de vérification
Méthode d'audit: Motif de fichier
- Fichier
/etc/mongod.conf- Motif
(?m)^[ \t]*mode:[ \t]*['\x22]?require(?:TLS|SSL)\b
Méthode de correction
Méthode de correction: Recommandation ou correctif d'infrastructure
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.
Propriétés
- Systèmes d'exploitation
- Tous
- Étiquettes
- mongodbtlsencryption
- Référence
- CIS MongoDB 8 Benchmark v2.0.0 - 4.3 Ensure Encryption of Data in Transit TLS or SSL (Transport Encryption)
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
tmaegis scan --target mongodb