Skip to content

Technical guide

Reduce false positives in code security review

A useful alert explains how controllable data reaches a sensitive operation and which controls actually protect that path.

Discuss your project

Separate detection from confirmation

A risky function name, a secret-like string or an old dependency is a lead. Review context, versions, actual calls and prerequisites before confirming a vulnerability.

Test safe examples too

For each rule, include vulnerable cases and counterexamples: parameterised SQL, correct server-side authorisation, uncontrollable input and synthetic documentation tokens. A broad path or keyword exclusion can hide real vulnerabilities.

Measure on a separate corpus

Keep calibration separate from final evaluation. Track true positives, false positives and false negatives against reviewed ground truth. Precision is TP/(TP+FP); recall is TP/(TP+FN). A zero denominator means undefined, not 100%.

Record disagreements

Human review can invalidate an alert while preserving evidence, rule, revision and rationale. Ambiguous cases remain unverified. Do not promote generated examples to ground truth without relevant execution or independent review.

Sources and limitation

References: OWASP Code Review Guide and CWE. Metrics are comparable only with a documented protocol and scope. This guide is not a Brunel performance benchmark.

Official references

Content reviewed on 27 October 2026. Brunel Cloud is operated by Séverine Kornafel (BloomVPN), a French sole trader. Mathis Torquéau founded the project and leads product and development.

Reduce false positives in code security review · Brunel