Skip to content

Health Software Common Practices

HSCP-R-010 · recipe · Security

Keep a machine-readable component inventory, later than each deployment

Written entry, version 0.1, checked on 2026-11-22.

At a glance

ImplementsHSCP-G-160 Limit dependencies and know where they come from : Limit the number of third-party dependencies and services, and know their origin and version
CaseInstantiates: applies an existing practice to a context.
Contextsoftware delivered as container images, packages or archives, built by a continuous integration pipeline
Verificationopen test HSCP-T-001 · automated check

Implements HSCP-G-160, Limit dependencies and know where they come from. Case: instantiates the "inventory of components" facet for software built by a continuous integration pipeline. Also serves HSCP-G-124: without an up-to-date inventory, there is no knowing which vulnerabilities affect the product.

When

The team must be able to say, for what is running today, which third-party components the product embeds and in which version. An inventory made by hand, or produced once for an audit, does not answer this: it describes a past version. The recipe applies as soon as an artefact is built automatically. It does not cover third-party services called online, which belong in a register of third parties.

How

  1. List the artefacts put into service: each image, each package, each mobile app. One inventory per artefact, not a global inventory.
  2. Produce the inventory in the build pipeline, on the built artefact and not on the source repository: what is delivered is what counts, system layers included.
  3. Choose a machine-readable format and stick to it: CycloneDX or SPDX, in JSON. The inventory carries its production date, and each component a name and a version.
  4. Keep the inventory with the artefact: same version identifier, same retention period.
  5. At each deployment, record the version put into service and the time, then check that the inventory of that version is not earlier than this deployment.
  6. Redo the inventory when the artefact changes without a change of version, for example an image rebuilt on an updated base.

Examples

Free generators produce the inventory; the recipe imposes none of them:

syft <image> -o cyclonedx-json > inventaire.cdx.json
trivy image --format cyclonedx <image> > inventaire.cdx.json
cdxgen -o inventaire.cdx.json

Verification of the evidence item, right after the deployment:

python3 verifier.py inventaire.cdx.json --deploiement 2026-11-20T09:30:00Z

Verification

  • Open test: HSCP-T-001 accepts the inventory if it is in the expected format, dated, if each component has a name and a version, and if it is not earlier than the declared deployment. To be run in the deployment pipeline, with the time of the current deployment.
  • Automated check: an evidence tool can record each day, for each artefact in service, the presence and the date of its inventory.
  • Review: once per version, compare the list of artefacts in service with the list of inventories. An artefact without an inventory is the gap the test does not see.

Evidence produced

The inventory of each artefact in service, the trace of the deployment (version, date, time) and the dated output of the test.

Evidence items

Each item attests the recipe at a given date. Frequency given for a product in service.

  • Inventory Inventory of the components of each artefact in service, in CycloneDX or SPDX format, datedFrequency: at each release · verifiable by an automated check · open test HSCP-T-001
  • Log extract Trace of the deployment: version put into service, date and timeFrequency: at each release
  • Test report Dated output of the open test on the inventory, with the time of the deploymentFrequency: at each release

References outside the catalogue

  • CycloneDX specification, versions 1.4 to 1.6.
  • SPDX specification, versions 2.2 and 2.3.

Versions

Versions of the entry (French reference), most recent first
VersionStatusDate
0.1Draft2026-11-22

How to cite: “Health Software Common Practices”, HSCP-R-010, version 0.1, https://healthtechpractices.org/en/recettes/hscp-r-010/, under the CC BY-NC-SA 4.0 licence. Licence