A team is using SonarQube to enforce secure coding standards. Which analysis approach is required to detect vulnerabilities related to improper handling of sensitive information in logs?
Taint analysis tracks untrusted data flows from sources to sinks, so it can flag when sensitive values propagate into logging calls. This dataflow tracking is what detects improper handling of sensitive information in logs, unlike pattern or style checks.
Why this answer
Data flow analysis (or taint analysis) is required to track whether sensitive data reaches an insecure sink like a log file.