6.1 Ensure that MongoDB uses a non-default port

Information

Changing the default port used by MongoDB makes it harder for attackers to find the database and target it.

Rationale:

Standard ports are used in automated attacks and by attackers to verify which applications are running on a server.

Impact:

Hackers frequently scan IP addresses for commonly used ports, so it's not uncommon to use a different port to 'fly under the radar'. This is just to avoid detection, other than that there is no added safety by using a different port.

Solution

Change the port for MongoDB server to a number other than 27017.

See Also

https://workbench.cisecurity.org/files/3560

Item Details

Category: ACCESS CONTROL, SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|AC-18, 800-53|SC-23, CSCv7|9.2

Plugin: Windows

Control ID: c45842febd1261892bd93688e5527a359b78b9861ee20b367f957720094af9d2