Ensure Security Group attached to application load balancer instance does not allow inbound traffic from all to TCP 27017 (MongoDB)

Error: Security Group attached to application load balancer instance allows inbound traffic from all to TCP 27017 (MongoDB)

Bridgecrew Policy ID: BC_AWS_NETWORKING_25
Severity: HIGH

Security Group attached to application load balancer instance allows inbound traffic from all to TCP 27017 (MongoDB)

Description

To prevent data theft and data loss, all Mongo DBs should be protected with an access control mechanism.

Fix - Runtime

Procedure

Disable anonymous access to MongoDB.