STIGQter STIGQter: STIG Summary: MongoDB Enterprise Advanced 8.x Security Technical Implementation Guide Version: 1 Release: 1 Benchmark Date: 26 Jan 2026:

Access to database files must be limited to relevant processes and to authorized, administrative users.

DISA Rule

SV-279364r1179259_rule

Vulnerability Number

V-279364

Group Title

SRG-APP-000243-DB-000374

Rule Version

MD8X-00-005400

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

Correct the permission to the files and/or directories that are in violation.

MongoDB Configuration file (default location /etc/mongod.conf):

$ chown mongod:mongod /etc/mongod.conf
$ chmod 600 /etc/mongod.conf

MongoDB datafiles and directories (default location /var/lib/mongo):

$ chown -R mongod:mongod /var/lib/mongo
$ chmod 755 /var/lib/mongo

$ find /var/lib/mongo/* -type f | xargs chmod 600
$ find /var/lib/mongo/* -type d | xargs chmod 700

Check Contents

By default, the MongoDB official installation packages restrict user and group ownership and read/write permissions on the underlying data files and critical configuration files from other operating system users.

In addition, process and memory isolation is used by default. System administrators should also consider if whole database encryption would be an effective control on an application basis.

Run the following commands to verify proper permissions for the following database files or directories:

$ stat /etc/mongod.conf

If the owner and group are not both "mongod", this is a finding.

If the file permissions are more permissive than "600", this is a finding.

$ stat /var/lib/mongo

If the owner and group are not both "mongod", this is a finding.

If the file permissions are more permissive than "755", this is a finding.

$ ls -l /var/lib/mongo

If the owner and group of any file or sub-directory is not "mongod", this is a finding.

If the permission of any file in the main directory (/var/lib/mongo) or sub-directory of (/var/lib/mongo) is more permissive than "600", this is a finding.

If the permission of any sub-directory of (/var/lib/mongo) is more permissive than "700", this is a finding.

Vulnerability Number

V-279364

Documentable

False

Rule Version

MD8X-00-005400

Severity Override Guidance

By default, the MongoDB official installation packages restrict user and group ownership and read/write permissions on the underlying data files and critical configuration files from other operating system users.

In addition, process and memory isolation is used by default. System administrators should also consider if whole database encryption would be an effective control on an application basis.

Run the following commands to verify proper permissions for the following database files or directories:

$ stat /etc/mongod.conf

If the owner and group are not both "mongod", this is a finding.

If the file permissions are more permissive than "600", this is a finding.

$ stat /var/lib/mongo

If the owner and group are not both "mongod", this is a finding.

If the file permissions are more permissive than "755", this is a finding.

$ ls -l /var/lib/mongo

If the owner and group of any file or sub-directory is not "mongod", this is a finding.

If the permission of any file in the main directory (/var/lib/mongo) or sub-directory of (/var/lib/mongo) is more permissive than "600", this is a finding.

If the permission of any sub-directory of (/var/lib/mongo) is more permissive than "700", this is a finding.

Check Content Reference

M

Target Key

5728