Attacks and Exploits

From a compromised development VM, a tester reaches production databases on port 5432. Dev and production share one subnet, and the security group allows all traffic from the VPC CIDR. Which remediation BEST addresses the root cause?

Show the answer

Correct answerC. Isolate production in a separate network with limited flows

AWhy not this: Rotation limits credential lifetime but leaves the open path to the database ports in place.

BWhy not this: IMDSv2 protects instance credentials from SSRF; it does not restrict network paths between hosts.

CWhy this is right: Separating production from dev and allowing only required flows removes the flat network that enabled the lateral movement.

DWhy not this: The tester already had a foothold; removing a public IP does not restrict traffic inside the network.

Dev and production share a flat network that trusts the whole CIDR, so a foothold in one reaches the other. Separating production and permitting only required flows fixes this. Rotating credentials or removing a public IP does not stop lateral network access.