Skip to main content

NTIA Conformance Checker

Build Status CodeQL PyPI version Pylint Score OpenSSF Scorecard OpenSSF Best Practices DOI

Validate the SPDX SBOM against NTIA, CISA, and other minimum element requirements.

This tool determines whether a SPDX software bill of materials (SBOM) document contains informational items as required by a certain specification.

It supports SPDX specification versions 2.2, 2.3, and 3.0.

Note that while the SPDX 3.0 specification allows for multiple SBOMs within a single SPDX document, this tool currently limits support to one SBOM per document.

A web-based version of the tool is available (no installation needed) at: https://tools.spdx.org/app/ntia_checker/

Conformance

Currently, the supported specifications are:

The minimum elements include:

  • Supplier Name
  • Component Name
  • Version of the Component
  • Other Unique Identifiers
  • Dependency Relationship
  • Author of SBOM Data
  • Timestamp

As defined by the NTIA, the minimum elements are "the essential pieces that support basic SBOM functionality and will serve as the foundation for an evolving approach to software transparency."

In addition to information similar to NTIA minimum elements, FSCT3 requires these Baseline Attributes as part of its "minimum expected":

  • License
  • Copyright Holder (inside Copyright Notice)

Where the FSCT3 checks differ from FSCT3 "minimum expected":

  • Weaker: "Dependency relationships provided?" checks that the SBOM declares at least one dependency relationship. FSCT 3rd ed. clause 2.2.2.6 "Relationship" expects relationships and relationship completeness for the primary component and its direct dependencies; completeness is not checked.
  • Stricter: license and copyright notice are checked for every component; clause 2.2.2.7 "License" and clause 2.2.2.8 "Copyright Notice" expect them for the primary component only.
  • Stricter: SBOM type is required; clause 2.2.1.3 "Type" calls it optional and an aspirational goal.

BSI TR-03183-2 introduces stricter requirements for component files and relationships, including:

  • SHA-512 Hashes for deployable components
  • Structured component properties (e.g., container, firmware)
  • Strict concluded licensing targets
  • Explicit dependency completeness definitions

Mappings:

  • The mapping of the NTIA elements required data fields to the SPDX 2.3 specification can be found here.
  • The mapping of FSCT3 Baseline Attributes to ISO/IEC 5962:2021 (SPDX 2.2.1) and SPDX 3.0 can be found at Section 2.5 of the FSCT3 document.
  • More comparison of SBOM requirements and their mapping to SPDX can be found in this slide from Takashi Ninjouji of OpenChain Japan SBOM Sub-WG, presented at SPDX General Meeting 2024-12-05.

Installation

This tool requires Python 3.10 or newer. Its dependencies may require a more recent version of Python.

Installation Method #1: Install from the Python Package Index (PyPI) with pip.

pip install ntia-conformance-checker

Installation Method #2: Install from local source. Clone the repo and install dependencies using the following commands:

git clone https://github.com/spdx/ntia-conformance-checker.git
cd ntia-conformance-checker
pip install .

It is recommended to use a virtual environment, especially if you work with multiple Python versions. virtualenv is a tool for creating isolated Python environments; it lets you keep a project's dependencies in a single environment or create separate environments for testing with different Python versions.

CLI usage

usage: sbomcheck [OPTIONS] PATH

positional arguments:
  PATH                  Filepath for SBOM input

options:
  -h, --help            show this help message and exit
  -s, --sbom-spec {spdx2,spdx3}
                        SBOM specification of the input file; see below for details [default: spdx2]
  -c, --comply {bsi,fsct3-min,ntia}
                        Compliance standards to check against; see below for details [default: ntia]
  -k, --skip-validation
                        Skip validation
  -r, --output TYPE     Report output type; see below for details [default: print]
  -o, --output-file PATH
                        Filepath for report output; if omitted, prints to console
  -v, --verbose         Increase log verbosity to info
  -vv, --debug          Increase log verbosity to debug
  -q, --quiet           Quiet logs: show errors only
  -V, --version         Display version of sbomcheck

choices:
  SBOM specifications (for --sbom-spec):
    spdx2       Software Package Data Exchange (SPDX) 2.x
    spdx3       System Package Data Exchange (SPDX) 3.x

  Compliance standards (for --comply):
    bsi         BSI TR-03183-2 v2.1.0 content requirements
    fsct3-min   2024 CISA Framing Software Component Transparency (minimum expected)
    ntia        2021 NTIA SBOM Minimum Elements

  Report output types (for --output):
    html        Report in HTML format
    json        Report in JSON format
    none        No report
    print       Report in regular text format

Examples:
  sbomcheck sbom.spdx
  sbomcheck -s spdx3 -c fsct3-min -v sbom.json
  sbomcheck sbom.yaml --output json --output-file report.json

The user can then analyze a particular file:

sbomcheck sbom.json

To generate the output in machine-readable JSON, run:

sbomcheck sbom.spdx --output json

With --output-file, the JSON is RFC 8785 canonical.

To analyze an SPDX 3 JSON file, run:

sbomcheck sbom.json --sbom-spec spdx3

Use -h for help:

sbomcheck -h

Usage as a library

ntia-conformance-checker can also be imported as a library. For example:

from ntia_conformance_checker import SbomChecker

sbom_checker = SbomChecker("SBOM_filepath")

print(sbom_checker.compliant)

See the API documentation at: https://spdx.github.io/ntia-conformance-checker/

Additional properties and methods can be found in BaseChecker class at base_checker.py. Specific properties and methods for a particular specification can be found at the checker for that specification. For example, NTIAChecker class at ntia_checker.py.

Online usage

With the SPDX Online Tool, you can check the SBOM conformance without the need to install the Python package.

Go to this page: https://tools.spdx.org/app/ntia_checker/.

HTML output

The HTML output is organized into four distinct div blocks, each with a specific CSS class for easy styling and targeting:

  • Errors (parsing, etc.): <div class="conformance-err">
  • Conformance results: <div class="conformance-res">
  • Components missing required information: <div class="conformance-mis">
  • Detailed validation information: <div class="conformance-val">
  • Graph structural issues: <div class="conformance-graph">

History

License

Apache-2.0

Dependencies

Support

Contributing

Contributions are very welcome! See CONTRIBUTING.md for instructions on how to contribute to the codebase.

Further help

Check out the frequently asked questions document.

Metadata

Release files for ntia-conformance-checker 6.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ntia-conformance-checker 6.1.0
File Size Uploaded Provenance Actions
ntia_conformance_checker-6.1.0.tar.gz 4.3 MB Without provenance Details for ntia_conformance_checker-6.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ntia-conformance-checker 6.1.0
File Interpreter ABI Platform Actions
ntia_conformance_checker-6.1.0-py3-none-any.whl Python 3 none any Details for ntia_conformance_checker-6.1.0-py3-none-any.whl

Total release size: 4.4 MB

Release files / ntia_conformance_checker-6.1.0.tar.gz

Download URL ntia_conformance_checker-6.1.0.tar.gz
Size 4.3 MB
Tags Source
SHA-256 checksum
How to use checksums
3d5368756c8882c10259d50f6bfb78896e262d518b6aa544f781e2622c6a0dc8
BLAKE2b-256 checksum
How to use checksums
3b6b15d9dd72f863f74177eea543dff1c1589b2bfa226d2dd05d4afcf7ebf0b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / ntia_conformance_checker-6.1.0-py3-none-any.whl

Download URL ntia_conformance_checker-6.1.0-py3-none-any.whl
Size 97.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b246a7450a171dbca51000669db5ca36edbf401c0e88a7c891cd83e4517b8911
BLAKE2b-256 checksum
How to use checksums
79f7ea500d7dae9c27e9f47eff314966abe647f57267c9b95b1f926dfc6e8b5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for ntia-conformance-checker 6.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page