Vulnerability Discovery and Analysis

A CloudFormation template passes an IaC static scan, yet a deployed instance has port 3389 open to the internet. An admin added the rule in the cloud console. Why did the scan miss it?

Show the answer

Correct answerC. The rule was added outside the template, so the scanned files never held it

AWhy not this: IaC scanning does analyze templates; that is its purpose.

BWhy not this: Static template analysis reads files and needs no login.

CWhy this is right: The manual console change is drift: it exists only in the live environment, not in the files.

DWhy not this: IaC scanners check many misconfigurations, not only secrets.

IaC scanning checks only what the template declares. A change made in the console exists only in the live environment, which is configuration drift, so it needs a scan of the deployed resources. The scanner does analyze templates, so the first option is wrong.