A vulnerable package that your software never calls is less urgent than one it calls on every request. TRUSTIVAN records three signals for that and uses them to lower a finding’s priority when they positively show the code is not used. None ever hides a finding: it stays in the backlog, counted, with the reason on it.

Reachability from your source

When a repository or a filesystem is scanned for vulnerabilities, TRUSTIVAN reads the source while it is checked out and gives each Go, npm and PyPI finding detail.reachability: The finding page shows it as a Reachability card, and the backlog filters on it (reachability=reachable,not_reachable,unknown in the API). A container image or an SBOM has no source to read, so its findings carry no verdict and score as before.

How deep it goes, per language

Python and JavaScript are import-level analyses, not call graphs: a file that imports a package counts whether or not anything runs that file. Advisories for npm and PyPI rarely name functions, so most of their verdicts are import level. A tree larger than the analysis reads (30,000 source files) withholds every “not reachable”. A malicious package or a suspected typosquat never gets a verdict: its install script runs wherever it is installed, imported or not.

What it does to the score

not_reachable multiplies the risk score by 0.5 at function level and 0.6 at import level. reachable and unknown leave it at 1.0. The factor is reachability, with the evidence as its note.

Runtime or development dependency

Each vulnerability finding carries detail.dependency_scope: The formats that record it, per the scanning engine’s parsers: npm package-lock.json, yarn.lock, pnpm-lock.yaml, Bun lockfiles, composer.lock, poetry.lock, uv.lock, Gradle lockfiles and pubspec.lock. Every other format the scanner supports (requirements.txt, Pipfile.lock, go.mod, Maven pom.xml, Cargo.lock, NuGet, Bundler, and OS packages) leaves the scope absent, and the risk score treats the package as shipped. For the formats that record it, TRUSTIVAN’s scans leave development dependencies out, so a package in your devDependencies is normally not reported at all and the findings you see on those formats are runtime. If a finding does carry development, it scores at × 0.6: lower, not zero, because a development dependency still runs in CI and on developers’ machines.

What the image’s entrypoint can load

For a container image, the scanner reads the image’s configuration (entrypoint, command, working directory, environment) and marks a finding detail.not_loaded_by_entrypoint: true, with the reason in detail.entrypoint_note, only when the configuration positively shows the entrypoint process cannot load the package:
  • Node.js. The entrypoint is node <script> and the package is installed outside every node_modules directory require() searches from the script’s directory. The common case is npm’s own bundled dependencies in /usr/local/lib/node_modules/npm, which every official Node.js image ships and an application started with node /app/server.js never loads.
  • Compiled binaries. The entrypoint is a Go or Rust binary the scanner identified, and the dependency is compiled into a different binary in the image, or is an interpreted-language package (npm, Python, Ruby, Java, PHP, .NET) that a compiled process does not load.
Nothing is determined, and nothing is marked, when the entrypoint is a shell or a script (sh -c ..., docker-entrypoint.sh), when a flag comes before the Node.js script (node -r ...), when NODE_PATH is set, or for OS packages, whose shared libraries may be loaded by anything. An init wrapper (tini, dumb-init) is looked through to the program it starts. A package marked this way scores at × 0.7 (the entrypoint factor in the risk score). It is still in the image, and anything that executes it, such as a shell in the container, a scheduled job, or the entrypoint spawning it, runs it.

When it takes effect

All three signals are recorded at scan time. A finding scanned before them shows no verdict, the scope as absent and no entrypoint mark until the asset’s next scan.