There is a predictable arc to a badly-run SAST deployment. The tool is switched on at full sensitivity and returns thousands of findings; developers dutifully investigate the first hundred, discover most are noise, and quietly learn to ignore the rest. Within a month the scanner is producing more findings than ever and influencing nothing. The ratio of real to imaginary findings was the problem, and it taught everyone to look away.

A false positive is a finding the tool reports as vulnerable that is not exploitable: a tainted path that is sanitized, an unreachable branch, or a test fixture flagged as production code. They are inherent to static analysis, which over-approximates on purpose to avoid missing real bugs. The goal is a signal-to-noise ratio developers will keep trusting, since zero false positives is out of reach. Precision, the fraction of findings that are real, is the metric that decides whether your program lives.

Where the noise comes from

Taming SAST False Positives, the Adoption KillerDiagram with these labels, in reading order: raw noise; signal; SAST at full; sensitivity; Thousands of; findings; Teach the engine; sanitizers, frameworks; Baseline + gate; on the new diff; Findings devs; trust; Noise → devs learn; to ignore every; finding, real ones; included.raw noisesignalSAST at fullsensitivityThousands offindingsTeach the enginesanitizers, frameworksBaseline + gateon the new diffFindings devstrustNoise → devs learnto ignore everyfinding, real onesincluded
The path from raw noise to a signal developers keep trusting.
  • Unrecognized sanitizers. Your team validates input through a custom helper the tool has never heard of, so every safe call downstream looks vulnerable.
  • Framework blindness. The analyzer can't follow data through an ORM, a dependency-injection container, or a templating engine, so it assumes the worst.
  • Unreachable paths. A flagged flow is real in the abstract but gated behind a condition that can never be true in practice.
  • Context-free rules. A generic ruleset that doesn't know your architecture treats internal, trusted data as if it were attacker-controlled.
Why it matters: Developers do not weigh findings statistically. A few memorable false alarms poison trust in the whole tool. Once “the scanner is usually wrong” takes hold, even your true positives get ignored.

Tuning for precision

The fix is deliberate configuration. Start by teaching the engine your code: declare your validation helpers as sanitizers and your internal wrappers as safe, and the largest clusters of noise collapse at once. Curate the ruleset to the languages and frameworks you actually run rather than enabling everything. Where the tool supports it, turn on reachability so unexploitable paths drop in severity instead of blocking a merge.

One recognized sanitizer collapses a cluster# Before: 40 findings on every call to render(escape(x))
# After declaring escape() as a sanitizer:
0 findings, the tool now knows the value is safe at the sink

Baseline the past, gate the present

A new deployment inherits years of accumulated findings, and blocking on that backlog guarantees revolt. Baseline the existing state, acknowledge it without blocking, and enforce only on newly introduced findings. Developers are then accountable for the code they just wrote, on a small, reviewable diff, which is exactly when a finding is cheapest to understand and fix. Chip at the backlog separately, on its own schedule.

Make suppression a first-class, reviewed act

Some findings really are false, and dismissing them must be easy but never silent. A suppression should require a reason, live in code review, and be visible, so a rushed “false positive” dismissal of a genuine bug gets a second pair of eyes. Track your suppression rate: if it climbs, either a rule needs tuning or your team is waving off real risk. Both are worth knowing.

Precision is what earns a scanner the right to be believed. A tool developers trust changes behavior; a tool they have learned to mute is telemetry no one reads. Tune first. The findings you can act on are the only ones worth having.

Back to the knowledge baseRequest an assessment