Learning center

How do you read the evidence behind an automated finding?

Ask what the tool actually observed: a run of the program, a model of the code, or a match against names and versions. Each kind has its own fact that turns a fix into a dismissal.

Sort the finding by what the tool observed#

Every automated finding comes with evidence, and the evidence has one of three origins. The origin tells you what the finding can establish and which single fact is most likely to overturn it.

A tool that watched the program run reports something that happened. AddressSanitizer, ThreadSanitizer, the Go race detector, a fuzzer, a coverage tool and a benchmark all record events from an execution. Their findings rarely describe something impossible, because the event took place. Two things weaken them: the run did not see all the code (an uninstrumented library, a subprocess the coverage tool never followed), or the run was one sample of a noisy measurement. Their absence proves less than their presence: a clean run covers only the paths the tests executed.

A tool that modeled the code reports something that could happen. Static analyzers, type checkers, taint rules, compiler warnings and infrastructure scanners read source and reason about it without running it. Their findings can describe paths no real input takes, and they lose paths their model cannot follow. The deciding evidence is usually a run: an input that takes the reported path, or a test that drives hostile input to the sink after the finding has gone quiet.

A tool that matched metadata reports that a name, version or string resembles something on a list. Dependency and image scanners, advisory feeds, CVSS scores, KEV listings and secret scanners belong here. Their findings say nothing yet about your code paths or your deployment. The deciding evidence is whether the match is exact (the same package in the same ecosystem, the full distribution version, the credential itself rather than its shape) and then whether the vulnerable code runs.

Follow one clean result to the fact that overturns it#

A modeling tool's clean result carries its own blind spot. In the constructed project from the skipped-files guide, Bandit 1.9.4 running under Python 3.11, with the package's vendored directory excluded, scans a package that declares requires-python = ">=3.12". One module, rules.py, calls eval and uses the type parameter syntax that Python 3.12 introduced. Bandit reports success:

$ bandit -r src -x src/svc/vendor
[main]  INFO    running on Python 3.11.18
...
Test results:
        No issues identified.
...
Files skipped (1):
        src/svc/rules.py (syntax error while parsing AST from file)
$ echo $?
0

The finding a reviewer would act on is the absence of findings, and the exit code agrees with it. The last two lines overturn it. Bandit parses each file with the interpreter it runs on, Python 3.11 cannot parse the file, and the one module with an eval call was never read. The fact that settles the case is the skipped-file list, and the decision is to rescan with the interpreter the package targets, which in that guide reports the eval call as B307.

The same shape repeats across the collection. A finding is only as good as its weakest premise: the files it read, the build it ran, the version it compared, the configuration it assumed. Name that premise, check it, and the decision usually follows.

Find the guide for your finding#

Each finding below links to its guide and names the fact that decides it, grouped by what the tool observed.

Findings from a run of the program#

Findings from a model of the code#

Findings from a match on names and versions#

Record the fact with the decision#

Whichever way you decide, write down the fact that decided it: the rebuild, the skipped-file list, the call trace, the package version. A dismissal without it gets reopened the next time the tool runs, and a fix without it cannot be checked. The guide to dismissed findings shows how to keep that record. When the finding came from a reviewer rather than a tool, the guide to validating a review finding covers the different evidence it needs, and when a linter already reports the same line, the guide to findings your linter covers sorts it.

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading