STIGhubSTIGhub
STIGsRMF ControlsCompare
STIGhub— A free STIG search and compliance tool·STIGs updated 3 days ago
Powered by Pylon·Privacy·Terms·© 2026 Beacon Cloud Solutions, Inc.
← Back to MongoDB Enterprise Advanced 8.x Security Technical Implementation Guide

V-279347

CAT II (Medium)

MongoDB must uniquely identify and authenticate organizational users (or processes acting on behalf of organizational users).

Rule ID

SV-279347r1179208_rule

STIG

MongoDB Enterprise Advanced 8.x Security Technical Implementation Guide

Version

V1R1

CCIs

CCI-000764

Discussion

To ensure accountability and prevent unauthenticated access, organizational users must be identified and authenticated to prevent potential misuse and compromise of the system. Organizational users include organizational employees or individuals the organization deems to have equivalent status of employees (e.g., contractors). Organizational users (and any processes acting on behalf of users) must be uniquely identified and authenticated for all accesses, except the following: (i) Accesses explicitly identified and documented by the organization. Organizations document specific user actions that can be performed on the information system without identification or authentication; and (ii) Accesses that occur through authorized use of group authenticators without individual authentication. Organizations may require unique identification of individuals using shared accounts, for detailed accountability of individual activity.

Check Content

For each database in the system, run the following command:

> use <database>
> db.getUsers()

Verify each user identified is a member of an appropriate organization that can access the database.

Alternatively, if LDAP/AD is being used for authentication/authorization, the mongoldap tool can be used to verify user account access.

If a user is found not be a member of an appropriate organization that can access the database, this is a finding.

Verify the MongoDB configuration file (default location /etc/mongod.conf) contains the following:

security:
  authorization: "enabled"
 
If this parameter is not present, this is a finding.

Fix Text

For any user that is not a member of an appropriate organization and that has access to a database in the system, run the following command:

// Change to the appropriate database
> use <database>
> db.dropUser("<username>", {w: "majority", wtimeout: 5000})

The MongoDB configuration file (default location /etc/mongod.conf) must contain the following:

security: 
  authorization: "enabled"

If not, edit the MongoDB configuration file. Add the parameters and stop/start (restart) any mongod or mongos process using this MongoDB configuration file.