1. Home
  2. Security Hardening
  3. CIS MongoDB 3.2 Database L2 V1.0.0
  4. Ensure The ‘test’ database is not installed

Ensure The ‘test’ database is not installed

Details

The default MongoDB installation comes with an unused database called ‘test’. It is recommended that the test database be dropped.

Rationale:

The test database can be accessed by all users and can be used to consume system resources. Dropping the test database will reduce the attack surface of the MongoDB server.

Solution

Execute the following command mongoshell to drop the test database:
use test

db.dropDatabase()

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Configuration Management.This control applies to the following type of system MongoDB.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles