Vulnerability Discovery and Analysis

A tester must find AWS access keys sitting in a repository's .env files, and does not need data-flow tracing or dependency CVEs. Which scan fits BEST?

Show the answer

Correct answerC. Secrets scanning

AWhy not this: It inventories dependencies for known CVEs and licenses and does not read .env files for keys.

BWhy not this: It needs an instrumented running application and test traffic, so it ignores repository files.

CWhy this is right: It matches key formats and high-entropy strings in files, so it flags committed access keys.

DWhy not this: It needs a running application and tests it from outside, so it never reads repository files.

Secrets scanning matches known key formats and high-entropy strings in repository files, which is what finds committed access keys. SCA only checks dependencies for known CVEs and licenses, so it would not report a key in a .env file.