oss-intake
Evidence for deciding whether to adopt, keep or replace an open source component. oss-intake runs
Trivy and Grype, checks OSV, and turns the results into a reading order: malicious packages and exploited
vulnerabilities first, findings that apply only under stated conditions separately, the rest as routine. It
adds what a scanner alone does not: how long fixes have existed without being shipped, public exploit
evidence, the advisory's own conditions, reachability for Go binaries, and project health.
See the live sample report: six trusted npm packages (chalk, debug, @ctrl/tinycolor, ua-parser-js, event-stream, flatmap-stream), one compromised release of each, all flagged as malicious. Read why that is the case for scanning on a schedule, not once at approval.
Quickstart
pipx install oss-intake
# install Trivy and Grype, pinned and verified: see "Install the scanners yourself" below
oss-intake scan --path package-lock.json --out report
oss-intake scan --image <image:tag> --repo <owner/name> --out report
Open report/report.html. The full list, with triage columns for the assessor, is report/findings.csv.
What it answers
- Is any of it malicious? Package versions known as malware, from the OpenSSF malicious packages database or advisories classed as embedded malicious code.
- Is it vulnerable, and what matters first? Known vulnerabilities in a container image, an artifact or a lockfile, with exploit evidence and a suggested triage group for each.
- Does the project patch? Whether fixes that exist upstream are being shipped, how long they have been available, and how active the project is.
The third question is what a scanner alone does not answer. oss-intake measures release lag: findings
where the fixed version of a dependency was already published before the project's release, so the project
could have shipped it and did not. It then adds project health signals (release cadence, OpenSSF Scorecard,
CISA KEV membership).
What it does
- Runs Trivy and, if installed, Grype against an image, and queries OSV.dev for the language packages Trivy found.
- Merges the results into one row per vulnerability, package and version, recording which sources saw it.
- Looks up when each fixed dependency version was published (deps.dev) and compares that with the project's GitHub release date.
- Reports release cadence from the GitHub API and the OpenSSF Scorecard score where one exists.
- Audits the project's own GitHub Actions workflows: unpinned actions, known-bad action versions (such as the
compromised
trivy-actiontags), missing or write-all token permissions, andpull_request_targettriggers. - Optionally suggests a likelihood value for a 5x5 risk matrix from configurable rules, clearly labelled as a heuristic.
- Writes
findings.csv,summary.md,assessment.jsonand a self-containedreport.html, plus the raw scanner output underraw/as evidence. - Applies integrity checks to the scanners it runs: version pinning, a known-bad version list, SHA-256 verification and optional Sigstore (cosign) verification.
What it does not do
- It does not prove exploitability. Scanners match component versions against advisory databases. A
finding means a version is listed as affected, not that the vulnerable code is reachable or exposed in your
deployment. The CSV has empty
triage_*columns for recording reachability decisions. - It does not install, download, bundle or redistribute scanners. You install them; it verifies them.
- It does not assess licences, secrets or misconfiguration, and it does not detect new malware. Package versions
already known as malware are flagged as malicious: listed in the OpenSSF malicious packages database (OSV
MAL-entries), or covered by an advisory classed as embedded malicious code (CWE-506), as the compromised ua-parser-js 0.7.29 and event-stream 3.3.6 releases are. - It does not give a risk rating. The likelihood suggestion is a starting point for an assessor.
- It does not fix anything or open issues upstream.
Install
Python 3.10 or later on Windows, macOS or Linux. No administrator rights are needed.
pipx install oss-intake
Releases are published to PyPI from GitHub Actions through trusted publishing, so PyPI shows each file's
provenance (which workflow in this repository built it). Each GitHub release also carries a Sigstore signature
bundle (.sigstore.json) for every file, verifiable with sigstore-python.
Windows PowerShell without pipx:
py -m pip install --user pipx
py -m pipx ensurepath
# open a new terminal, then
pipx install oss-intake
If oss-intake is "not recognized" after pip install --user, the per-user Scripts folder is not on PATH.
Either add it, or run the tool through Python, which works everywhere:
py -m oss_intake --help
Install the scanners yourself, pinned and verified
Install a specific version of each scanner from its official GitHub release, never "latest", and verify the
download before you extract it. oss-intake verify does the hash comparison correctly on any platform
(checksum files are served as application/octet-stream; they are parsed as bytes, with BOM and CRLF handled):
oss-intake verify --file trivy_0.76.1_windows-64bit.zip --checksums trivy_0.76.1_checksums.txt
Then record the SHA-256 of the extracted executable and pass it on every run (oss-intake doctor prints it):
oss-intake doctor
Trivy versions 0.69.4, 0.69.5 and 0.69.6 were malicious (CVE-2026-33634, March 2026). oss-intake refuses to
run any version on its known-bad list.
Usage
oss-intake --image owner/app:1.2.3 --repo owner/app --out ./reports \
--image-src remote --trivy-version 0.76.1 --trivy-sha256 <sha256-of-trivy-executable> --likelihood
PowerShell (backtick continues a line):
$env:GITHUB_TOKEN = "<optional token, raises the GitHub API rate limit>"
oss-intake --image owner/app:1.2.3 --repo owner/app --out .\reports `
--image-src remote --trivy-version 0.76.1 --trivy-sha256 <sha256> --likelihood
Without a container image, assess a file or folder directly with --path:
oss-intake --path ./vendor-app-2.4.1.jar --repo owner/app --out ./reports # JAR, WAR, EAR or binary
oss-intake --path ./requirements.txt --repo owner/app --release-tag v1.4.0 --out ./reports
oss-intake --path ./renv.lock --repo owner/app --release-tag v1.4.0 --out ./reports
A JAR, WAR, EAR or binary is scanned as built artifacts (Trivy rootfs, Grype dir:), and a version in its
file name is tried as the release tag. Lockfiles the scanners understand (Python, npm, Maven, Go, Rust, PHP,
Ruby, .NET) are scanned with Trivy fs. An R renv.lock is read by oss-intake and checked against OSV's CRAN
advisories, since neither scanner reads it; packages from Bioconductor, GitHub or local sources are listed as
not checked. A folder is scanned as built artifacts; for a source checkout, pass its lockfile. Release lag needs
the project's release: --repo with --release-tag, or --release-date.
Package inventory
To check the open source an organisation already uses, pass a CSV list of packages, for example exported from Artifactory or Nexus, or kept in a spreadsheet (save it from Excel as "CSV UTF-8"):
oss-intake --path ./packages.csv --out ./reports
ecosystem,name,version,owner,system
npm,@ctrl/tinycolor,4.1.1,Web team,Customer portal
pypi,django,3.2.0,Data team,Reporting
maven,org.apache.logging.log4j:log4j-core,2.14.1,Platform team,Payments
Use either ecosystem, name and version columns, or one purl column (pkg:npm/chalk@5.6.1). Ecosystems:
npm, pypi, maven (group:artifact), go, nuget, cargo, gem, composer, cran, hex and pub, plus common aliases
such as python or java. Versions must be exact: ranges such as ^1.2 or latest are rejected. Any other
column (owner, system, team...) is carried through to the reports as a label. Every row is validated first: if
any row is invalid, the run stops and lists each problem with its row number, before anything is looked up.
No scanner is needed: each package version is checked against OSV, so malicious releases are flagged as well as
vulnerable ones. Besides the usual reports, packages.csv lists every package, worst first, with its findings,
the lowest version that fixes every listed vulnerability with a fix, and its label columns; the HTML report
shows the packages that need attention. Run it on a schedule: a package that was clean when approved can turn
out vulnerable or compromised later. A sample is in
examples/inventory.
All inputs are validated before any scanner runs. The image must carry an explicit tag or digest.
| Option | Purpose |
|---|---|
--image |
Image with explicit tag or digest |
--path |
A JAR, WAR, binary, folder, lockfile, renv.lock or package inventory .csv instead of an image |
--reachability, --govulncheck-path |
Check Go binaries with govulncheck (see Go reachability) |
--repo |
GitHub owner/name (a full GitHub URL is accepted) |
--image-src remote |
Pull from the registry without Docker installed (Trivy --image-src remote, Grype registry:) |
--platform |
Image platform for both scanners (default linux/amd64, so Apple Silicon scans the same variant as a server); '' uses scanner defaults |
--scanners |
auto (default: Trivy and OSV, plus Grype if found) or a list such as trivy,grype,osv |
--trivy-version, --grype-version |
Required scanner version; the run fails on mismatch |
--trivy-sha256, --grype-sha256 |
Expected SHA-256 of the executable |
--trivy-cosign-bundle, --grype-cosign-bundle |
Verify a Sigstore bundle with cosign (cosign must be on PATH) |
--trivy-arg, --grype-arg |
Pass extra arguments, e.g. --trivy-arg=--db-repository=ghcr.io/aquasecurity/trivy-db:2 |
--from-trivy-json, --from-grype-json |
Use an existing JSON report instead of running the scanner |
--release-tag, --release-date |
Set the release the image corresponds to, when tags do not match |
--grace-days |
A fix must predate the release by this many days to count as missed (default 14) |
--unshipped-days |
Days a fix must be public, with no newer release, to count as unshipped (default 90) |
--as-of |
Fix the assessment date for reproducible reports |
--min-severity |
Drop findings below a severity |
--formats |
Any of csv,md,json,html (default all; findings.csv is always written) |
--offline |
No network enrichment (OSV, deps.dev, GitHub, Scorecard, KEV, EPSS, exploit sources) |
--no-epss, --no-kev, --no-scorecard, --no-fix-dates, --no-exploits |
Skip one enrichment source |
--likelihood, --likelihood-config FILE |
Add the 5x5 likelihood heuristic, with optional custom rules |
--fail-on-likelihood N |
Exit code 3 when the suggestion is N or higher, for pipelines |
--sbom |
Also write a CycloneDX SBOM to raw/ |
Other commands: oss-intake doctor (scanner paths, versions, hashes, known-bad status) and
oss-intake verify (check a download against a checksums file, a hash or a cosign bundle).
Exit codes: 0 success, 1 error (including any integrity failure), 2 invalid input, 3 likelihood
threshold reached.
GITHUB_TOKEN is optional. It is only sent to api.github.com, and it is never logged or written to reports.
How release lag is measured
For each finding with a fix, oss-intake picks the nearest fixed version above the installed one (so a fix on
an older branch is not counted for a newer one) and looks up when that version was published.
| Metric | Meaning |
|---|---|
| Fix exists upstream | A fixed version of the dependency is known |
| Fix existed before release | The fixed version was published at least --grace-days (14) days before the project's release: the project could reasonably have shipped it |
| Fix within grace period | Published in the 14 days before release; shown but not counted as missed |
| Unshipped | Forward-looking: the fix has been public for --unshipped-days (90) or more and the scanned release is still the project's latest |
| Likely already fixed | Installed version equals a listed fix apart from a build label such as .jre11; flagged and excluded from lag |
| Fix published after release | The fix arrived later; this is normal lag for the next release |
| Days a fix has been available | Assessment date minus the fixed version's publish date |
| CVE published before release | Secondary signal. A CVE can be public before any fix exists, so this overstates lag on its own |
Fix dates come from deps.dev for language packages, from Packagist for PHP Composer packages, falling back to the GitHub release date for Go modules
hosted on GitHub that deps.dev does not index. For Debian packages they come from the Debian security advisory
that shipped the fix (DSA or DLA, by the scanner's advisory ID or the exact fixed version), dated from the Debian
security tracker's advisory lists, with OSV as a fallback. Fixes that shipped without an advisory are dated from the
Debian point release (13.6 and so on) that included the fixed version, from the suite's ChangeLog; fixes still in
proposed-updates stay unknown, with a note. For Ubuntu packages they come from the Ubuntu
Security Notice (USN) that fixed the CVE in that release and source package at that version, found through OSV;
failing that, from Launchpad's publishing history: when that exact version was first published to the release in
the Release, Security or Updates pocket.
For RHEL and UBI packages they come from the Red Hat advisory (RHSA) that Trivy reports, dated from Red Hat's
CSAF document. For Alpine packages they come from the aports commit history on the image's release branch: a commit naming the
CVE, or the fixed version for a new upstream release (set GITHUB_TOKEN, one request per package).
For the Go standard library they come from the Go release history (go.dev/doc/devel/release).
Packages with no dated source yet, currently Amazon Linux and runtimes detected only from a binary, are counted as
"fix date unknown" rather than guessed. The fix_date_source column in findings.csv shows where each date came from.
Example output
Taken from the synthetic test fixtures (tests/fixtures, fictional project example/webapp) so it shows
the format, not a judgement of any real project:
findings=7 critical=2 high=4 with_fix=6 fix_before_release=3 fix_date_unknown=1 likelihood=5(Almost certain)
| ID | Severity | Package | Installed | Fix | Fix before release | Days fix available |
|---|---|---|---|---|---|---|
| CVE-2099-0001 | CRITICAL | org.springframework:spring-web | 6.1.10 | 6.1.12 | yes | 290 |
| CVE-2099-0006 | CRITICAL | com.fasterxml.jackson.core:jackson-databind | 2.17.0 | 2.17.3 | no | 113 |
| CVE-2099-0003 | HIGH | io.netty:netty-codec-http | 4.1.100.Final | 4.1.108.Final | yes | 244 |
| CVE-2099-0004 | HIGH | org.springframework:spring-web | 6.1.10 | none | no fix | n/a |
| CVE-2099-1000 | MEDIUM | libc6 | 2.39-0ubuntu8.4 | 2.39-0ubuntu8.5 | unknown | n/a |
The summary also covers scope (scanner versions, database dates, hash verification), project health, agreement between sources and any warnings. See docs/validation.md for checking the tool against a real public image.
Exploit availability and advisory conditions
Each finding gets the strongest public exploit evidence found: known exploited (CISA KEV), weaponised (a
Metasploit module or Nuclei template), public (Exploit-DB), proof of concept (GitHub repositories only, which
are noisy and sometimes malicious), or none indexed. "None indexed" means none was found in those sources, not
that none exists; when a source cannot be reached the finding is "not checked" instead. The conditions
column quotes the advisory's own statement of when the finding applies (for example "only if the application
uses XsltView"), word for word, so the assessor can check it against the deployment.
Go reachability (optional)
With --reachability, Go binaries in the scan are checked with Go's official
govulncheck in binary mode, which reports whether a vulnerable function is
actually linked into the binary. Install it yourself (go install golang.org/x/vuln/cmd/govulncheck@v1.1.4);
oss-intake never downloads it. For an image, the binaries are copied out with Docker (docker create and
docker cp) or crane export. A finding whose vulnerable functions are absent from every binary it was seen
in is marked "not reachable" and set aside in triage, with the govulncheck ID as the reason; one whose function
is present is marked "reachable". Counts and likelihood do not change: the vulnerable version is still shipped.
This covers Go only; for other languages the advisory conditions are the assessor's guide.
Suggested triage
Each finding is placed in one group, with its reason, as a reading order for the engineer: Act now (a known malicious package, CISA KEV, or a Metasploit or Nuclei exploit), Review (an Exploit-DB exploit, EPSS 0.1 or more, or a critical whose advisory states no conditions), Check conditions (the advisory says when it applies; confirm against the deployment), Routine (none of these) and Set aside (only with evidence: a kernel header package, the installed version already matches a fix, or govulncheck shows the vulnerable function is not in the binary). No group says a finding carries no risk.
Likelihood heuristic
Off by default. With --likelihood, the first matching rule wins:
| Level | Default rule |
|---|---|
| 5 Almost certain | A CISA KEV vulnerability has a fix the project has not shipped |
| 4 Likely | A finding with an upstream fix has a ready-to-use exploit (Metasploit module or Nuclei template) |
| 4 Likely | A finding with an upstream fix has an EPSS score of 0.5 or more |
| 4 Likely | A critical fix existed before release, and the project has not released for 180 days, is archived or scores under 4 on Scorecard |
| 4 Likely | A critical fix is unshipped and the project has not released for 180 days |
| 3 Possible | A finding with an upstream fix has an EPSS score of 0.1 or more |
| 3 Possible | A finding with an upstream fix has a published exploit (Exploit-DB) |
| 3 Possible | A critical fix, or 5 or more high fixes, existed before release |
| 3 Possible | A critical fix, or 10 or more high fixes, are unshipped |
| 2 Unlikely | Any high or critical finding has an upstream fix |
| 1 Rare | None of the above |
Unknown signals (no Scorecard score, say) never trigger a rule. To use your own rules, copy
DEFAULT_CONFIG from likelihood.py into a JSON file and pass
--likelihood-config. The available metrics are critical_fix_at_release, high_fix_at_release,
critical_with_fix, high_with_fix, critical_fix_unshipped, high_fix_unshipped, kev_with_fix, max_epss_with_fix, max_days_fix_available, days_since_latest_release,
archived, scorecard_score and fix_date_unknown.
Limitations
- Results depend on the scanners' vulnerability databases and drift as those databases update. The report records scanner and database versions so a result can be reproduced or explained.
- Trivy and Grype detect packages independently, so their disagreement is informative. OSV is queried with Trivy's package list, so it is an independent database check, not an independent detector.
- Severity is the highest any source reported, which is conservative. Per-source severities are in the CSV.
- Kernel CVEs reported against kernel header packages (
linux-libc-devand similar) are excluded from lag and likelihood, because a container uses the host's kernel. They stay in findings.csv with a note; assess the host kernel separately. Use--include-kernel-headersto count them. - Version comparison is ecosystem-agnostic and approximate. It only affects which fix date is used. Build
labels (
.jre11,-jre,-android) are ignored when comparing. - Scanners can read a JAR's version without its build label and report an already-fixed build as vulnerable
(seen with
mssql-jdbc 12.10.2.jre11). These rows are kept, marked in thenotecolumn and excluded from lag. OSV inherits the same mistake because it is queried with the scanner's version. - The OpenSSF Scorecard API only covers repositories in its scheduled dataset. "Not scored" is not a negative signal.
- Release matching expects GitHub releases whose tags resemble the image tag (
1.2.3,v1.2.3,name-1.2.3,release-1.2.3), and also tries the tag without a variant suffix (2.528-jdk21matchesjenkins-2.528). If nothing matches, lag metrics are not computed rather than measured against the wrong release. Use--release-tagor--release-datein that case. Failing both, the image's build date is used and labelled "image build date": lag then means "fixes that existed when the image was built" (disable with--no-image-date). - Fix dates are unavailable for Amazon Linux and for runtimes found only in binaries. When more than half of the fixes lack a date, the likelihood suggestion is marked low confidence: read it as "not enough evidence", not "low risk".
- Only GitHub-hosted projects get health signals in this version.
- Trivy does not catalogue installed R (CRAN) packages, so R libraries inside an image are not assessed.
- Runtimes detected from binaries (
binaryin the coverage table) have no package registry to date fixes from, so they always show as "fix date unknown".
Planned work is in BACKLOG.md.
Licence
Apache License 2.0. See LICENSE.
Metadata
Release files for oss-intake 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| oss_intake-0.3.0.tar.gz | 123.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| oss_intake-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 238.0 kB
Release files / oss_intake-0.3.0.tar.gz
| Download URL | oss_intake-0.3.0.tar.gz |
|---|---|
| Size | 123.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39475a86354b1351dfc091a57e8cf0759019606da23b7141f34c8797c67cc863
|
|
BLAKE2b-256 checksum How to use checksums |
0d20d6ebd4d35dc4c6f5e1356763326ccb7bb1706491ce7eda660112b568bed9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / oss_intake-0.3.0-py3-none-any.whl
| Download URL | oss_intake-0.3.0-py3-none-any.whl |
|---|---|
| Size | 114.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
60b8433edc5bd085a03acb4132aea3f7ef75cc63d0062ff36a70a6120c92b2c4
|
|
BLAKE2b-256 checksum How to use checksums |
d42187c858525f1a32d42a90fa4ca6ae649b2b3ff2dd261b884df3a7594f8ad7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logSecurity for oss-intake 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for oss_intake-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.