Vulnerability Discovery and Analysis

A development team wants to catch insecure code patterns at commit time, before any build is deployed to a test environment. Which scan fits BEST?

Show the answer

Correct answerB. Static application security testing

AWhy not this: It needs an instrumented application running with test traffic, so it cannot run at commit time.

BWhy this is right: It analyzes code without execution, so it can run at commit or build time before deployment.

CWhy not this: It needs a deployed, running application to send requests to, which does not exist yet.

DWhy not this: It checks third-party libraries for known CVEs and does not flag the team's own insecure code patterns.

SAST analyzes code as written, so it can run at commit or build time before anything is deployed. DAST and IAST need a running application, and SCA checks third-party components rather than the team's own insecure patterns.