MD3X-00-000540 - MongoDB must associate organization-defined types of security labels having organization-defined security label values with information in storage.

Information

Without the association of security labels to information, there is no basis for MongoDB to make security-related access-control decisions.

Security labels are abstractions representing the basic properties or characteristics of an entity (e.g., subjects and objects) with respect to safeguarding information.

These labels are typically associated with internal data structures (e.g., tables, rows) within the database and are used to enable the implementation of access control and flow control policies, reflect special dissemination, handling, or distribution instructions, or support other aspects of the information security policy.

One example includes marking data as classified or FOUO. These security labels may be assigned manually or during data processing, but, either way, it is imperative these assignments are maintained while the data is in storage. If the security labels are lost when the data is stored, there is the risk of a data compromise.

The mechanism used to support security labeling may be a feature of MongoDB product, a third-party product, or custom application code.

Satisfies: SRG-APP-000311-DB-000308, SRG-APP-000313-DB-000309, SRG-APP-000313-DB-000310

NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

Solution

Follow the documentation page to setup RBAC:https://docs.mongodb.com/manual/core/authorization/.

For the required collections, create specific read-only views that allow access to only a subset of the data in a collection as documented here: https://docs.mongodb.com/manual/core/views/. Permissions on the view are specified separately from the permissions on the underlying collection.

Use the '$redact' operator to restrict the contents of the documents based on information stored in the documents themselves as documented here: https://docs.mongodb.com/master/reference/operator/aggregation/redact/

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_MDB_Enterprise_Advanced_3-x_V2R1_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-16a., CAT|II, CCI|CCI-002262, CCI|CCI-002263, CCI|CCI-002264, Rule-ID|SV-221185r411051_rule, STIG-ID|MD3X-00-000540, STIG-Legacy|SV-96611, STIG-Legacy|V-81897, Vuln-ID|V-221185

Plugin: MongoDB

Control ID: 26c01f5dbaa8b9d609012675fa3bbc84c746cd58317f1b7cbe9aff153c83548d