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
| Implements | HSCP-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 |
|---|---|
| Case | Instantiates: applies an existing practice to a context. |
| Context | software delivered as container images, packages or archives, built by a continuous integration pipeline |
| Verification | open 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
- List the artefacts put into service: each image, each package, each mobile app. One inventory per artefact, not a global inventory.
- 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.
- 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.
- Keep the inventory with the artefact: same version identifier, same retention period.
- 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.
- 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, dated
- Log extract Trace of the deployment: version put into service, date and time
- Test report Dated output of the open test on the inventory, with the time of the deployment
References outside the catalogue
- CycloneDX specification, versions 1.4 to 1.6.
- SPDX specification, versions 2.2 and 2.3.
Versions
| Version | Status | Date |
|---|---|---|
| 0.1 | Draft | 2026-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