Yocto Project Discussions
 help / color / mirror / Atom feed
* ANNOUNCE: shipcheck - CRA compliance auditor for Yocto builds
@ 2026-04-24 21:20 Javier Tia
  2026-04-27  8:27 ` Olivier Benjamin
  0 siblings, 1 reply; 3+ messages in thread
From: Javier Tia @ 2026-04-24 21:20 UTC (permalink / raw)
  To: yocto; +Cc: openembedded-core

Hi all,

(Cross-posted to yocto@lists.yoctoproject.org and
openembedded-core@lists.openembedded.org.)

I just published shipcheck, an open-source CLI that reads a Yocto build
directory and drafts the paperwork required by the EU Cyber Resilience
Act (Regulation 2024/2847) - the Annex VII technical file, the
Declaration of Conformity, and an evidence report pivoted by CRA Annex
item.

The short version: CRA is a paperwork regulation, not a
scanner-selection problem. Yocto already emits most of the technical
evidence - SPDX SBOMs via create-spdx, CVE scans via cve-check or
Bootlin's sbom-cve-check, license.manifest files, signing-class config.
What's missing is a tool that walks those artefacts, maps them onto the
CRA Annex structure, and renders the drafts a compliance officer can
review.

shipcheck does that piece, with seven registered checks:

  sbom-generation    SPDX 2.x validation against BSI TR-03183-2
  cve-tracking       consumes cve-check, vex.bbclass, and
                     sbom-cve-check JSON (the last is preferred)
  yocto-cve-check    reads tmp/log/cve/cve-summary.json directly
  license-audit      per-arch license.manifest walker
  secure-boot        detects signing class configuration and flags
                     known test keys
  image-signing      detects FIT signatures and dm-verity config
  vuln-reporting     validates the vendor-commitment half of the
                     dossier from a separate product.yaml manifest

It is deliberately narrow: Apache-2.0 Python, no runtime probes, no
shell-outs, no network calls at scan time, and no LLM or AI inference
anywhere in the pipeline - shipcheck is fully deterministic. An
auditor can read the check code and confirm exactly what each check
inspects.

Pilot 0001 (poky Scarthgap, core-image-minimal) is committed at
pilots/0001-poky-scarthgap-min/REPORT.md with the full kas-container
bootstrap. A worked example driven from a product-vendor.yaml (every
field set to the placeholder "VENDOR") is committed at
audits/0002-blog-demo/ if you want to read the generated Annex VII
and DoC drafts without running shipcheck locally.

Install:

  uv tool install shipcheck  # or: pipx install shipcheck
  cd path/to/yocto/build
  shipcheck init
  shipcheck check --build-dir . --format evidence --out dossier/

Blog post walks through the Annex structure, what Yocto gives you for
free, and where the paperwork gap lives:

  https://jetm.github.io/blog/posts/auditing-your-yocto-build-for-cra-compliance/

Repo:

  https://github.com/jetm/shipcheck

Feedback very welcome - especially from maintainers on the cve-check,
create-spdx, and vex side of things who have opinions on how the check
defaults should evolve. File an issue on GitHub, or reply here.

Best,
Javier


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ANNOUNCE: shipcheck - CRA compliance auditor for Yocto builds
  2026-04-24 21:20 ANNOUNCE: shipcheck - CRA compliance auditor for Yocto builds Javier Tia
@ 2026-04-27  8:27 ` Olivier Benjamin
  2026-05-09  1:30   ` Javier Tia
  0 siblings, 1 reply; 3+ messages in thread
From: Olivier Benjamin @ 2026-04-27  8:27 UTC (permalink / raw)
  To: Javier Tia, yocto; +Cc: openembedded-core

On 4/24/26 11:20 PM, Javier Tia wrote:

> Hi all,
Hello Javier,
> (Cross-posted to yocto@lists.yoctoproject.org and
> openembedded-core@lists.openembedded.org.)
>
> I just published shipcheck, an open-source CLI that reads a Yocto build
> directory and drafts the paperwork required by the EU Cyber Resilience
> Act (Regulation 2024/2847) - the Annex VII technical file, the
> Declaration of Conformity, and an evidence report pivoted by CRA Annex
> item.
Thanks, it's great to have a tool filling that gap!
> The short version: CRA is a paperwork regulation, not a
> scanner-selection problem. Yocto already emits most of the technical
> evidence - SPDX SBOMs via create-spdx, CVE scans via cve-check or
> Bootlin's sbom-cve-check, license.manifest files, signing-class config.
> What's missing is a tool that walks those artefacts, maps them onto the
> CRA Annex structure, and renders the drafts a compliance officer can
> review.

Not super relevant, but I would dispute the "paperwork regulation" bit,
and one can only gloss over the "scanner-selection" issue if one assumes 
that
problem already solved.

> shipcheck does that piece, with seven registered checks:
>
>    sbom-generation    SPDX 2.x validation against BSI TR-03183-2
>    cve-tracking       consumes cve-check, vex.bbclass, and
>                       sbom-cve-check JSON (the last is preferred)
>    yocto-cve-check    reads tmp/log/cve/cve-summary.json directly
>    license-audit      per-arch license.manifest walker
>    secure-boot        detects signing class configuration and flags
>                       known test keys
>    image-signing      detects FIT signatures and dm-verity config
>    vuln-reporting     validates the vendor-commitment half of the
>                       dossier from a separate product.yaml manifest
>
> It is deliberately narrow: Apache-2.0 Python, no runtime probes, no
> shell-outs, no network calls at scan time, and no LLM or AI inference
> anywhere in the pipeline - shipcheck is fully deterministic. An
> auditor can read the check code and confirm exactly what each check
> inspects.
>
> Pilot 0001 (poky Scarthgap, core-image-minimal) is committed at
> pilots/0001-poky-scarthgap-min/REPORT.md with the full kas-container
> bootstrap. A worked example driven from a product-vendor.yaml (every
> field set to the placeholder "VENDOR") is committed at
> audits/0002-blog-demo/ if you want to read the generated Annex VII
> and DoC drafts without running shipcheck locally.
>
> Install:
>
>    uv tool install shipcheck  # or: pipx install shipcheck
>    cd path/to/yocto/build
>    shipcheck init
>    shipcheck check --build-dir . --format evidence --out dossier/
>
> Blog post walks through the Annex structure, what Yocto gives you for
> free, and where the paperwork gap lives:
>
>    https://jetm.github.io/blog/posts/auditing-your-yocto-build-for-cra-compliance/
Thanks, the blog post is very helpful!
> Repo:
>
>    https://github.com/jetm/shipcheck
>
> Feedback very welcome - especially from maintainers on the cve-check,
> create-spdx, and vex side of things who have opinions on how the check
> defaults should evolve. File an issue on GitHub, or reply here.
I haven't tested the tool yet, so more feedback to potentially come later,
but I would certainly be interested in being able to validate SPDX3.0 
output.
> Best,
> Javier

Cheers,

Olivier

>
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ANNOUNCE: shipcheck - CRA compliance auditor for Yocto builds
  2026-04-27  8:27 ` Olivier Benjamin
@ 2026-05-09  1:30   ` Javier Tia
  0 siblings, 0 replies; 3+ messages in thread
From: Javier Tia @ 2026-05-09  1:30 UTC (permalink / raw)
  To: Olivier Benjamin; +Cc: yocto, openembedded-core

Hi Olivier,

On 4/27/26 08:27 AM, Olivier Benjamin wrote:
> I would certainly be interested in being able to validate SPDX 3.0
> output.

That shipped in v0.0.6. The short version: Yocto Scarthgap scores
20/50 on the new check because create-spdx-3.0 doesn't emit supplier
or per-Package checksums in any form -- field or Relationship. The
format detection, CreationInfo, and rootElement checks all pass; it's
the 30 per-Package points that are zero.

Full details, the scoring breakdown, and a drafted 2-patch series for
openembedded-core to fix the emission gap are in the GitHub issue:

  https://github.com/jetm/shipcheck/issues/3

If you have a Scarthgap or walnascar build with create-spdx-3.0
enabled, I'd be curious what score you see:

  pip install shipcheck==0.0.6
  shipcheck check --build-dir <your-build-dir>

The sbom-generation row is the one to watch. Any feedback on the BSI
v2.1.0 -> SPDX 3.0 field mapping (committed at
audits/0003-spdx3-mapping/mapping.md, marked draft pending review)
would also be welcome -- you have more context on how the SPDX
community expects BSI's requirements to map to 3.0 constructs.

> Not super relevant, but I would dispute the "paperwork regulation"
> bit, and one can only gloss over the "scanner-selection" issue if
> one assumes that problem already solved.

Fair pushback. I was shortcutting. The paperwork framing was meant to
highlight the documentation gap, not to minimize the vulnerability-
management side of things.

-- 
Javier Tia


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-09  1:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-24 21:20 ANNOUNCE: shipcheck - CRA compliance auditor for Yocto builds Javier Tia
2026-04-27  8:27 ` Olivier Benjamin
2026-05-09  1:30   ` Javier Tia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox