SBOM for mobile apps under the CRA

From 11 December 2027, the Cyber Resilience Act requires manufacturers to draw up a software bill of materials in a commonly used, machine-readable format that covers at least the top-level dependencies of the product (Annex I, Part II, point (1)). For an app, plan on one per build you ship. You do not have to publish it (Recital 77).

The SBOM duty only concerns apps the Cyber Resilience Act covers. Use the free scope check if you have not settled that yet.

The SBOM duty applies from 11 December 2027. An app placed on the market before then is subject to it only if it is substantially modified from that date (Article 69(2)).

What the regulation says about SBOMs

An SBOM is "a formal record containing details and supply chain relationships of components included in the software elements of a product with digital elements" (Article 3(39)). The rest is spread over several places.

QuestionAnswer in the textWhere
Format"Commonly used and machine-readable". No format is named.Annex I, Part II, point (1)
Depth"At the very least the top-level dependencies".Annex I, Part II, point (1)
PaperworkPart of the vulnerability handling information in the technical documentation.Annex VII, point 2(b)
AuthoritiesWhere applicable, provided further to a reasoned request from a market surveillance authority, if needed to check compliance with Annex I.Annex VII, point 8
Public?No obligation. If you choose to give users access, tell them where to find it.Recital 77; Annex II, point 9
More detail laterThe Commission may specify the format and elements by implementing act.Article 13(24)

On the last row: on the review date of this guide, the Commission's CRA implementation page listed no implementing act on SBOMs. If one arrives, check your output against it.

Authorities can also ask for SBOMs in one other situation. The administrative cooperation group ADCO may decide on a Union-wide dependency assessment for certain product categories, and market surveillance authorities may then request SBOMs from the manufacturers concerned (Article 13(25)).

CycloneDX or SPDX

The regulation does not choose. CycloneDX is published as Ecma standard ECMA-424 and has JSON and XML formats. SPDX is an ISO/IEC standard (ISO/IEC 5962:2021). Both are public specifications made for software to read. Our reading is that either one fits "commonly used and machine-readable". A spreadsheet or a licences screen inside the app is a weaker answer.

Why top-level only is too little in practice

The legal minimum is the top level. Other duties go further. During the support period you must handle the vulnerabilities of the product "including its components" (Article 13(8)), and Recital 34 says the vulnerability handling obligations apply to products in their entirety, "including to all integrated components". A vulnerable library three levels down is still in the build your users run.

Lockfiles already record the full resolved tree, so for most mobile teams the complete list costs no more than the short one.

One SBOM per build, not per project

The Commission's CRA guidance is not binding (point 8), but it is the Commission's own interpretation. Point 14 says variants that differ in their included components, "for example, builds for different operating systems", are not copies of one product and should be treated as distinct products when they are placed on the market. Your iOS and Android builds contain different components, so a single mixed list describes neither of them.

Versions matter too. Technical documentation must be continuously updated, where appropriate, at least during the support period (Article 31(2)). It must be kept for at least 10 years after the product is placed on the market, or for the support period if that is longer (Article 13(13)). The regulation does not say "one SBOM per release" in those words. Archiving one for each build you publish is the simplest way to keep the file accurate, and to answer later whether an old version contains a given library.

Where the data comes from on mobile

FileWhat it recordsWatch out for
pubspec.lockConcrete versions of every immediate and transitive Dart dependency (Dart glossary).Dart only. Native libraries inside plugins are not listed. Development dependencies are.
Package.resolvedThe version or branch and the Git commit each remote Swift package resolves to (Apple).The checksum of a binary target is declared in that package's manifest. What was compiled into the binary is not listed. Local packages are not listed either.
gradle.lockfileResolved Maven dependencies, direct and transitive, one group:artifact:version per line (Gradle).Locking has to be switched on, and it is enabled per configuration. Each module has its own file. CRA Radar takes every line, including test configurations.
Podfile.lockThe exact pod versions installed (CocoaPods).CRA Radar does not read this file. Use another tool for pods.
package-lock.jsonThe npm tree of a React Native or other JavaScript app.Build tools and packages that ship are mixed in one list.

What a lockfile SBOM misses

A lockfile lists what a package manager resolved. These parts of a mobile app usually sit outside it:

  • Vendored binaries. An .aar, .jar, .so or .xcframework copied into the repository has no package coordinates.
  • Code inside prebuilt SDKs. A closed-source SDK may carry its own copy of a C library. You only see the SDK's name and version.
  • Framework runtimes. The Flutter engine, for example, is mostly C++ and is not a pub package. On Android it also appears in gradle.lockfile as io.flutter artifacts once locking is on.
  • Source you pasted in. Copied files are components as well.
  • Your backend. Remote data processing you designed, or had designed under your responsibility, belongs to the product if the app could not perform one of its functions without it (Article 3(1) and (2)). Our reading is that its dependencies belong in an SBOM too, usually as a separate list.

Keep a short hand-written list of these next to the generated file, with name, version, supplier and where the security notices appear. The duty is to "identify and document vulnerabilities and components", and the SBOM is one means of doing it (Annex I, Part II, point (1)).

A release routine

  1. Commit the lockfiles and make CI fail if they change during a release build.
  2. On Android, lock the classpath your release build uses and regenerate it with --write-locks. Locking every configuration pulls test and tooling libraries into the list.
  3. Build, then generate the SBOM from the exact lockfile of that build. For Gradle, the CycloneDX plugin works from the resolved graph, including transitive dependencies.
  4. Add the components from the list above that no lockfile covers.
  5. Store the SBOM with the version and build number, apart from the CI workspace, for as long as the technical documentation is kept.
  6. Scan it when you release, and keep scanning while users still run that build.

What CRA Radar produces, and what it does not

CRA Radar reads pubspec.lock, Package.resolved, gradle.lockfile and package-lock.json (lockfileVersion 2 or 3), and creates one CycloneDX 1.6 JSON file per release. The SBOM download is part of the free plan. It has limits you should know before you file it:

  • Every package in the lockfile is listed as a dependency of the app. The nested graph, hashes, licences and suppliers are not included.
  • From pubspec.lock it takes hosted packages only. Git, path and SDK packages are skipped, and hosted packages from a private server are treated as pub.dev packages. From Package.resolved it takes packages from a Git URL that are pinned to a version, so branch, commit and registry pins are skipped.
  • Each release holds one lockfile. A Flutter app with native lockfiles needs several entries, as described in the Flutter guide.

Sources

Related

Not legal advice. This guide summarises Regulation (EU) 2024/2847 for app developers. For your own situation, check the regulation text and talk to a lawyer.

Keep an SBOM for every release

CRA Radar scans each release's lockfile against OSV.dev, keeps a CycloneDX SBOM per release and, on paid plans, rechecks your latest release every day against the CISA KEV catalog.