Vulnerability Discovery and Analysis

A tester reviews Terraform files that open SSH to 0.0.0.0/0 and make a storage bucket public. Nothing has been provisioned yet. Which approach finds these misconfigurations?

Show the answer

Correct answerB. Static analysis of the Terraform templates

AWhy not this: It probes live hosts for open ports, and no resources exist to scan yet.

BWhy this is right: It reads the IaC templates without deploying them and flags insecure settings before provisioning.

CWhy not this: It needs a deployed, running application to test, and nothing has been provisioned.

DWhy not this: It needs live instances to log in to, and none have been created.

Static analysis of IaC templates flags insecure settings such as open security groups and public buckets before any resource exists. The other scans need deployed assets to probe, and none exist yet.