Attacks and Exploits

A tester scans a cloud VM and finds every TCP port reachable from the internet, although the application needs only HTTPS. Which misconfiguration is the root cause?

Show the answer

Correct answerB. Overly permissive security group inbound rules

AWhy not this: Bucket permissions govern object access and have no effect on VM port exposure.

BWhy this is right: Inbound rules allowing all ports from any source are the network control that exposes the VM.

CWhy not this: The metadata service is reached from the instance itself and does not open ports to the internet.

DWhy not this: A role trust policy controls who can assume the role, not which ports are reachable.

Security groups and network ACLs are the network controls that decide which ports and sources can reach a VM. Allowing all ports from any source is an overly permissive rule. A metadata service weakness would expose instance credentials to code running on the host, not open ports to the internet.