Skip to content

Your first check

This page takes you from a project to a first report. You make a software bill of materials (SBOM), run witnyx check on it, and read the report and the exit code.

You need witnyx on your PATH. Install lists the ways to get it; Build from source works today.

An SBOM lists the components your product ships, each with its version and package URL. Witnyx does not make it: your build or an SBOM generator does. Make it after the build, from what you ship, so that it lists what is really in the release.

Witnyx reads CycloneDX 1.4 to 1.6 (JSON or XML) and SPDX 2.2 or 2.3 (JSON). Several generators now write CycloneDX 1.7 by default, so each command below asks for CycloneDX 1.6.

The CycloneDX Maven plugin needs no change to your pom.xml. Run it with your build:

Terminal window
mvn package org.cyclonedx:cyclonedx-maven-plugin:2.9.3:makeAggregateBom -DoutputFormat=json -DschemaVersion=1.6

It writes target/bom.json. In a project with several modules, that is the root project’s target folder, and the SBOM covers every module.

The CycloneDX generator for npm reads the installed node_modules, so run it after npm ci, in the folder of package.json:

Terminal window
npx @cyclonedx/cyclonedx-npm --spec-version 1.6 --output-file bom.json

cdxgen knows the package managers of many languages. Install it as its documentation describes, then run it in the project’s root folder:

Terminal window
cdxgen -o bom.json --spec-version 1.6 .

syft reads a folder or a container image. Install it as its documentation describes, then:

Terminal window
syft dir:. -o [email protected]=bom.json

To describe a container image instead, name the image in place of dir:., for example syft my-app:2.4.1 -o [email protected]=bom.json.

Run witnyx check with the path of the SBOM. Here it checks the SBOM of my-app 2.4.1, which ships Log4j 2.14.1 (log4j-core):

Terminal window
$ witnyx check bom.json
Witnyx release security check — my-app 2.4.1
[FAIL] 1 actively exploited vulnerability — build failed
CVE-2021-44228 org.apache.logging.log4j:log4j-core 2.14.1 -> upgrade to 2.15.0 (on CISA's exploited list since 2021-12-10; used in ransomware; also listed by ENISA as EUVD-2021-34768)
SBOM quality
EU legal minimum: pass
Completeness: 21% against [email protected] (9 of 42 required values filled)
SBOM creator: missing · Timestamp: present
Biggest gaps: Component creator (0 of 4) · Filename (0 of 4) · Dependencies (0 of 4)
Note: 2 components have licences without acknowledgement; BSI TR-03183-2 counts only licences marked "concluded" (distribution licences) or "declared" (original licences).
Our reading of the EU Cyber Resilience Act; not legal advice.
Disclosure: SECURITY.md missing · security.txt missing
[WARN] SECURITY.md missing -> add one with a security contact (email address or URL)
[WARN] security.txt missing -> publish .well-known/security.txt with Contact and Expires (RFC 9116)
An actively exploited vulnerability is in a component you ship. If it affects your product and the product is sold in the EU, reporting under the EU Cyber Resilience Act (Article 14) may apply. This check recorded when you were made aware. This is not legal advice.
Checked 2026-11-18T09:12:03Z · 3 components (1 not checked: no package ID or version)
Continuous monitoring and 24-hour reporting alerts → witnyx.dev

Without a path, check looks in the current folder for bom.json, bom.xml, *.cdx.json, *.cdx.xml, *.spdx.json, target/bom.json and build/reports/bom.json, in that order. It checks the first one it finds and names it on standard error:

Terminal window
$ witnyx check
witnyx: no SBOM given, using bom.json

When it finds none, it stops with exit code 2 and the error WX-SBOM-NOT-FOUND.

The check sends the package URLs and versions of your components to OSV, and downloads public lists from CISA, ENISA and endoflife.date. The SBOM itself stays on your machine. Privacy lists everything that leaves it.

The report has one part per question, from the top:

  1. The title. my-app 2.4.1 is the product and its version. They come from --product-name and --product-version, else from product in .witnyx.yml, else from the SBOM.
  2. The headline. [FAIL] means that a --fail-on rule triggered, so the build fails. By default only an actively exploited vulnerability fails the build. The other tags are [WARN] (found, but no rule fails the build on it), [INCOMPLETE] (some components or required data sources were not checked) and [PASS] (none of these).
  3. The actively exploited vulnerability. CVE-2021-44228 is in log4j-core 2.14.1, and upgrading to 2.15.0 fixes it. The parentheses hold the evidence: the date CISA added it to its Known Exploited Vulnerabilities catalogue, which is what makes it actively exploited; that it is used in ransomware; and its EUVD ID, which ENISA’s EU Vulnerability Database adds because it lists the vulnerability too. Actively exploited explains the finding.
  4. SBOM quality. Whether the SBOM holds the EU legal minimum, and how complete it is against TR-03183-2, the technical guideline of Germany’s Federal Office for Information Security (BSI). Biggest gaps names up to three fields that the most components lack. See SBOM quality.
  5. Disclosure. Whether the project has a SECURITY.md with a security contact, and a valid .well-known/security.txt (RFC 9116). The check looks in --repo-dir, the current folder by default. See Disclosure.
  6. The reporting note. It appears when the check finds an actively exploited vulnerability that is not assessed as not affected. It says that reporting duties under the EU Cyber Resilience Act may apply, and that the check recorded when you were made aware. EU Cyber Resilience Act basics explains what the Act asks of software makers.
  7. The last lines. Checked gives the time of the check in UTC and the number of components in the SBOM. A component without a package URL and version cannot be looked up, so the report counts it as not checked. The final line points to Witnyx’s hosted service, which is in development.

Other parts appear when they apply: Other known vulnerabilities from OSV, with the most severe listed (Other known vulnerabilities); components past their end of life (End of life); findings Assessed as not affected and those Pending human review (Mark a finding not affected); and a Note: line for each data source that could not be reached.

Exit code Meaning
0 The check ran and no --fail-on rule triggered. The report says when the check was incomplete.
1 The check ran and a --fail-on rule triggered. This is a result, not a failure of the tool.
2 The check could not run, or it was incomplete and --strict was given.

A CI step fails on any exit code other than 0. So by default, an actively exploited vulnerability fails the build, and a warning does not. This SBOM of legacy-app 1.0.0 ships Spring Framework 6.0, which is past its end of life. The check warns and exits with 0:

Terminal window
$ witnyx check bom.json
Witnyx release security check — legacy-app 1.0.0
[PASS] No actively exploited vulnerabilities found
[WARN] 1 component past end of life
Spring Framework 6.0 reached end of life on 2024-06-30 -> upgrade to 7.0.10 (org.springframework:spring-core 6.0.23)
SBOM quality
EU legal minimum: pass
Completeness: 18% against [email protected] (4 of 22 required values filled)
SBOM creator: missing · Timestamp: missing
Biggest gaps: Component creator (0 of 2) · Filename (0 of 2) · Dependencies (0 of 2)
Our reading of the EU Cyber Resilience Act; not legal advice.
Disclosure: SECURITY.md missing · security.txt missing
[WARN] SECURITY.md missing -> add one with a security contact (email address or URL)
[WARN] security.txt missing -> publish .well-known/security.txt with Contact and Expires (RFC 9116)
Checked 2026-11-18T09:12:03Z · 1 component
Continuous monitoring and 24-hour reporting alerts → witnyx.dev

With --fail-on exploited,eol, the same component fails the build:

Terminal window
$ witnyx check bom.json --fail-on exploited,eol
[FAIL] Build failed: --fail-on eol
[FAIL] 1 component past end of life
Spring Framework 6.0 reached end of life on 2024-06-30 -> upgrade to 7.0.10 (org.springframework:spring-core 6.0.23)

Exit codes covers each code for every command.

Witnyx is a record-keeping and workflow tool. It does not certify compliance. Nothing on this site is legal advice.