Compliance & Verification

EU Cyber Resilience Act (CRA) firmware testing evidence

Support EU Cyber Resilience Act vulnerability-handling and verification documentation with reproducible, SHA-256-hashed firmware twin runs in CI.

The EU Cyber Resilience Act (Regulation (EU) 2024/2847) requires connected hardware manufacturers to document vulnerability handling, security testing and regression verification across the product lifecycle. Physical test racks make re-running historical firmware revisions years later impractical.

CircuitTwin produces deterministic run digests, JUnit XML, SARIF reports and pinned twin/ELF hashes so engineering teams can archive reproducible verification evidence alongside SBOMs. Note: CircuitTwin provides supporting technical verification evidence and is not a legal compliance certification.

EU CRA technical-file evidence mapping

Documentation needCircuitTwin artifactVerification benefit
Reproducible security patch regressionct test run --recheck + ELF SHA-256Proves patch fixes issue without regressing peripherals
Fault & malformed input resilienceFault matrix YAML + JUnit/SARIF outputRecords pass/fail on bus disconnects & invalid frames
Long-term archival replayPinned board twin + suite JSON recordRe-run legacy firmware revisions without keeping old benches
Unmodelled hardware transparencyExit code 4 + evidence standing labelsPrevents hidden coverage gaps in test reports

Local CLI workflow

Shell — generate traceable evidence bundle
ct test run --json --recheck \
  --junit evidence/junit.xml \
  --sarif evidence/results.sarif \
  tests/cra-regression.suite.yaml

Suite & fault configuration

tests/cra-regression.suite.yaml
version: 1
board: b-u585i-iot02a
firmware: build/release.elf
tests:
  - name: secure-boot-and-watchdog-recovery
    timeout_ms: 4000
    expect:
      console_contains: "BOOT_VERIFIED"
      exit_code: 0
  - name: malformed-bus-payload-rejection
    faults:
      - at_ms: 100
        part: lsm6dso
        kind: register_override
        register: 0x0F
        value: 0x00
    expect:
      console_contains: "SENSOR_REJECTED"

CI pipeline integration

.github/workflows/cra-evidence.yml
name: Release Verification Evidence
on:
  push:
    tags: ["v*"]
jobs:
  evidence:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: cmake --build build --config Release
      - uses: circuittwin/action@v1
        with:
          suite: tests/cra-regression.suite.yaml
          junit-out: evidence/junit.xml
      - uses: actions/upload-artifact@v4
        with:
          name: release-verification-evidence
          path: evidence/

EU Cyber Resilience Act (CRA) robustness evidence in CI

Produce immutable per-commit fault-injection evidence showing how your compiled firmware handles malformed frames and bus failures.

EU Cyber Resilience Act (CRA) technical documentation requires demonstrating that connected products handle abnormal inputs, failed updates and peripheral errors without silent corruption or insecure fallback.

CircuitTwin executes your exact release ELF against deterministic fault suites, emitting JUnit XML, JSON run summaries and SHA-256 artifact hashes you can archive directly inside your technical file.

CRA Annex I technical controls mapped to twin tests

CRA control areaDeterministic twin testArchived artifact
Error handling & resilienceMalformed UART/CAN/I2C frames and bus disconnectsJUnit XML + fault matrix JSON
Secure update rollbackMCUboot bad-signature and interrupted swap testConsole log + exit-code verdict
Reproducibilityct test run --recheck with pinned twin digestsSHA-256 provenance manifest
Shell - generate CRA release robustness bundle
ct test run --json --recheck --junit artifacts/cra-junit.xml tests/cra-robustness.suite.yaml > artifacts/cra-run.json
tests/cra-robustness.suite.yaml
version: 1
board: b-u585i-iot02a
firmware: build/release.elf
tests:
  - name: malformed-uart-frame-rejected
    timeout_ms: 2500
    expect:
      console_contains: "PARSER_REJECTED_BAD_CRC"
      exit_code: 0
  - name: secure-element-disconnect-fail-closed
    faults:
      - at_ms: 100
        bus: I2C1
        kind: nack
        address: 0x60
        count: 5
    expect:
      console_contains: "AUTH_FAIL_CLOSED"

Troubleshooting checklist

SymptomFix
Audit requires exact binary-to-result linkageArchive the ct --json output (records ELF SHA-256, twin digest and exit code) with each release tag.
Coverage gaps in automated reportsTreat exit code 4 (inconclusive) as a CI failure so unmodelled paths are documented explicitly.
Air-gapped build environmentTeam and Enterprise plans support offline licences up to 30 days for isolated release runners.
Need formal policy detailsReview /docs/compliance for exact scope and supported export formats.
Audit team asks which exact binary was testedStore the ELF SHA-256 and JSON run summary emitted by ct test run --json alongside your release tag.
Security test passes on unmodelled peripheralNever suppress exit code 4 on compliance runs; keep strict unmodelled-register failure enabled.

Frequently asked questions

QuestionAnswer
Does CircuitTwin claim legal compliance sign-off for EU CRA?No tool grants legal compliance by itself. CircuitTwin generates deterministic, reproducible firmware execution and fault-injection evidence to support your EU CRA technical file.

Related boards & component twins

More in Compliance & Verification