Infrastructure Security

A team wants its build pipeline to detect application code that passes untrusted request data into database queries before deployment. Which control BEST addresses this requirement?

Show the answer

Correct answerB. Run source-code security analysis with data-flow rules during the build.

AWhy not this: Package scanning finds known component vulnerabilities, not unsafe data flow in custom application code.

BWhy this is right: Data-flow analysis can trace untrusted request data into unsafe database operations before deployment.

CWhy not this: Runtime monitoring detects behavior after deployment rather than identifying the code flaw during the build.

DWhy not this: Patching build workers secures build infrastructure but does not analyze application query construction.

Source-code security analysis with data-flow rules can identify untrusted input reaching unsafe database operations before deployment. Container package scanning identifies known package vulnerabilities, not flaws in how application code constructs queries.