Medium DMS Regional

DMS endpoints for MongoDB should have authentication enabled

NIST 800-53PCI DSS v4.0.1PCI DSS v7.3.1

Description

This control checks if an AWS DMS endpoint configured for MongoDB has an authentication mechanism enabled. The control will fail if no authentication type is set for the endpoint. AWS Database Migration Service supports two authentication methods for MongoDB: MONGODB-CR (used for MongoDB version 2.x) and SCRAM-SHA-1 (used for MongoDB version 3.x or later). These methods are designed to authenticate and encrypt MongoDB passwords when users access the databases. Proper authentication on AWS DMS endpoints ensures that only authorized users can access and modify data during database migration. Without it, unauthorized users could gain access to sensitive data, potentially leading to data breaches, data loss, or other security incidents.


Remediation

Enable authentication for your DMS endpoints that connect to MongoDB databases to ensure secure access control.

Steps

  1. Navigate to the AWS DMS console
  2. Go to the Endpoints section
  3. Select the MongoDB endpoint that needs authentication
  4. Modify the endpoint configuration
  5. In the 'Authentication' section, provide username and password
  6. Set the authentication type to 'MONGODB-CR' for MongoDB 2.x or 'SCRAM-SHA-1' for MongoDB 3.x+
  7. Configure the authentication mechanism based on your MongoDB version
  8. Save the configuration changes
  9. Verify that authentication is now enabled for the MongoDB endpoint

Compliance

NIST 800-53PCI DSS v4.0.1PCI DSS v7.3.1