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 findingdetail.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 carriesdetail.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 findingdetail.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 everynode_modulesdirectoryrequire()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 withnode /app/server.jsnever 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.
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.