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 need | CircuitTwin artifact | Verification benefit |
|---|---|---|
Reproducible security patch regression | ct test run --recheck + ELF SHA-256 | Proves patch fixes issue without regressing peripherals |
Fault & malformed input resilience | Fault matrix YAML + JUnit/SARIF output | Records pass/fail on bus disconnects & invalid frames |
Long-term archival replay | Pinned board twin + suite JSON record | Re-run legacy firmware revisions without keeping old benches |
Unmodelled hardware transparency | Exit code 4 + evidence standing labels | Prevents hidden coverage gaps in test reports |
Local CLI workflow
ct test run --json --recheck \
--junit evidence/junit.xml \
--sarif evidence/results.sarif \
tests/cra-regression.suite.yamlSuite & fault configuration
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
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 area | Deterministic twin test | Archived artifact |
|---|---|---|
Error handling & resilience | Malformed UART/CAN/I2C frames and bus disconnects | JUnit XML + fault matrix JSON |
Secure update rollback | MCUboot bad-signature and interrupted swap test | Console log + exit-code verdict |
Reproducibility | ct test run --recheck with pinned twin digests | SHA-256 provenance manifest |
ct test run --json --recheck --junit artifacts/cra-junit.xml tests/cra-robustness.suite.yaml > artifacts/cra-run.jsonversion: 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
| Symptom | Fix |
|---|---|
| Audit requires exact binary-to-result linkage | Archive the ct --json output (records ELF SHA-256, twin digest and exit code) with each release tag. |
| Coverage gaps in automated reports | Treat exit code 4 (inconclusive) as a CI failure so unmodelled paths are documented explicitly. |
| Air-gapped build environment | Team and Enterprise plans support offline licences up to 30 days for isolated release runners. |
| Need formal policy details | Review /docs/compliance for exact scope and supported export formats. |
| Audit team asks which exact binary was tested | Store the ELF SHA-256 and JSON run summary emitted by ct test run --json alongside your release tag. |
| Security test passes on unmodelled peripheral | Never suppress exit code 4 on compliance runs; keep strict unmodelled-register failure enabled. |
Frequently asked questions
| Question | Answer |
|---|---|
| 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. |