SV-279385r1179518_rule
V-279385
SRG-APP-000416-DB-000380
MD8X-00-007900
CAT I
10
Enable FIPS mode for MongoDB Enterprise.
Edit the MongoDB database configuration file (default location /etc/mongod.conf) to contain the following parameter setting:
net:
tls:
FIPSMode: true
Stop/start (restart) the mongod or mongos instance using this configuration and run the following command to verify the output is "true":
> db.getSiblingDB("admin").runCommand({getCmdLineOpts: 1}).parsed.net.tls.FIPSMode
The output of this command must be "true".
Alternatively, run the following command to search the mongod logfile for "FIPS mode 140-2 activated":
$ grep "FIPS 140-2 mode activated" /var/log/mongodb/mongod.log
There should be a line similar to what is shown below:
{"t":{"$date":"2025-02-26T15:21:09.174+00:00"},"s":"I", "c":"NETWORK", "id":23172, "ctx":"main","msg":"FIPS 140-2 mode activated"}
If MongoDB is deployed in an unclassified environment, this is not a finding.
Run the following command as an administrative user:
> db.getSiblingDB("admin").runCommand({getCmdLineOpts: 1}).parsed.net.tls.FIPSMode
If the output is not "true", this is a finding.
V-279385
False
MD8X-00-007900
If MongoDB is deployed in an unclassified environment, this is not a finding.
Run the following command as an administrative user:
> db.getSiblingDB("admin").runCommand({getCmdLineOpts: 1}).parsed.net.tls.FIPSMode
If the output is not "true", this is a finding.
M
5728