Embedded Systems · CI/CD Best Practices · Compliance Engineering

Compliance-as-Code for Embedded Systems: Turning Static Analysis, Fuzzing, MC/DC and SBOMs into CI Gates

October 2026 showed what happens when safety and security are treated as end-of-project paperwork. Here is how embedded teams make evidence a byproduct of every build.

By Subeesh Sivanandan, Founder & CEO, Stonetusker Systems · Updated November 2026 · Est. reading time: 22 minutes

Executive brief

  • Compliance-as-Code means safety, security and regulatory evidence is produced automatically by the CI pipeline on every commit and release, so audits and vulnerability disclosures become a query against existing data instead of a document hunt.
  • Two forces make the old model indefensible: the EU Cyber Resilience Act, whose reporting duties began on 11 September 2026 (24 hour early warning, 72 hour fuller notification), and AI assistants pushing C and C++ into firmware repositories faster than humans can review it.
  • The autumn 2026 attacks on commercial refrigeration controllers in Europe needed no new technique. A known flaw, an exposed interface, weak passwords and no independent hardware limit were enough, and each of those maps to an automatable control.
  • No single tool is enough. You need layers across source, binaries and running targets: static analysis, secret scanning, binary composition analysis, DAST, fuzzing with sanitizers, coverage up to MC/DC, and traceability.
  • Split the work into three tiers so developers aren't blocked: under 10 minutes on pull requests, heavier analysis nightly, and the expensive certification evidence built once at the release gate.
  • Host-side coverage gives fast feedback, but certification artifacts need a qualified toolchain or trace-based coverage on the target, and deviations, release policy and tool versions must live in version control.

Why end-of-project compliance fails

For years, embedded teams treated safety and security compliance as something that happened after the engineering. Build the thing, then spend a few weeks collecting evidence for ISO 26262, IEC 62304, DO-178C, ISO/SAE 21434 or IEC 62443. Everyone knew it was slow and a bit fictional, but the schedule tolerated it.

That tolerance is gone, for two separate reasons.

Reason one: regulators now run on clocks measured in hours

The EU Cyber Resilience Act (CRA) reporting duties started on 11 September 2026, more than a year ahead of the rest of the Act, which applies from December 2027. If someone is actively exploiting a vulnerability in your product, you owe the authorities an early warning within 24 hours and a fuller notification within 72 hours. This covers products already in the field, including ones you shipped years ago.

Think about what that does to a team whose evidence lives in a shared drive and three people's heads. The question "does this exploited CVE affect build 4.2.1 deployed at customers?" has to be answerable the same day. You can't do that if the only SBOM is the one somebody exported from the build manifest during the last certification push.

A quick scoping note. The CRA excludes medical devices, type-approved road vehicles and civil aviation, because those sectors have their own regimes: EU MDR and FDA section 524B for medical, UNECE R155 for road vehicles, DO-326A for airborne systems. The engineering is the same. The regulator and the paperwork format differ.

Reason two: AI-written code arrives faster than review capacity

Coding assistants now push C and C++ into firmware repositories at a pace no review process was designed for. The output compiles, passes a quick test, and often contains undefined behavior, silent integer promotion issues or MISRA violations that a tired reviewer won't catch on a Friday afternoon. If the human reviewer is your only independent checker, you've already lost that race.

Operational test

Pick a CVE published this morning. Can your team say, within one hour and without opening a spreadsheet, which released firmware builds contain the affected component, including vendor binary blobs you have no source for?

What happened to the fridges: a case study in missing controls

In October 2026, attackers got into the controllers that run commercial refrigeration at hundreds of European supermarkets and pushed temperatures up. Some systems overheated enough to catch fire. The national cybersecurity agency reported compromised controllers from Danfoss, Copeland and Dixell. Reports vary on the counts, and Reuters put it at roughly 700 commercial sites and 15 fires.

A second wave in early November hit commercial fridges and freezers across several European countries, with millions of euros of food thrown away. Reuters couldn't say whether the two waves were connected.

Then came the incident that should worry every embedded team. On 2 November, a refrigeration supplier to a national blood service was hit, and three sites had their temperature and defrost thresholds pushed far above normal. Reports say 110°C against a normal minus 30. Alarms caught it and the plasma was moved in time. Nothing was lost, but only because the monitoring worked.

One national market assumed it had mostly dodged all this because its industry uses different devices. Authorities and partners then found a flaw in the operating systems of commercial fridges there too. Supermarkets pulled them off the open internet while a fix was built and rolled out.

The anatomy of the failure

None of this required a genius. Read the list below as a set of missing automated checks, not as bad luck.

  • The fixes already existed. Danfoss shipped firmware fixes for its AK-SM 800A in 2025. Claroty published the full technical write-up in August 2026. Two months later, controllers across Europe were being hit.
  • The devices were reachable. Days after the attack, researchers still counted thousands exposed, including 1,173 Copeland XWEB and over 5,200 Danfoss StoreView instances.
  • Basic hygiene failed. The head of the national cyber agency told lawmakers it came down to controllers exposed directly to the internet and protected by weak passwords, with little else in place.
  • End-of-life products. Danfoss said most affected systems were older products no longer receiving updates. Copeland said the vulnerability was in discontinued controllers.
  • Nobody designed for a hostile user. As Security Scorecard's CEO put it, the people building these systems assume users behave, and attackers don't.
  • Software was the only safety layer. A compromised controller should not be able to cook what it is protecting.

Claroty also showed that an AI agent could reproduce two of the three Danfoss flaws on a test device. Whatever the exact entry point, the gap between public technical detail and real attacks is now short.

Mapping each failure to an automatable control

What failedAutomatable controlWhere it runs
Known CVE nobody patchedSBOM plus VEX data checked against CVE feeds, continuouslyRelease gate and a scheduled job on shipped versions
Exposed management interfaceDAST, hardening checks, exposure scans of default configurationNightly on emulated targets, HIL before release
Default or hardcoded credentialsSecret scanning on source, binary analysis on the final imagePre-commit, PR, release
Opaque vendor firmware or post-boot payloadsBinary composition analysis and runtime testingNightly and release
Parsers that fall over on bad inputFuzzing with sanitizersContinuous, with saved corpora
Products outliving their supportSupport-period tracking in release policyRelease gate and product portfolio review
Software as the only safety layerIndependent hardware limits and setpoint bounds, verified in HILDesign review and release gate

That table is what I mean by Compliance-as-Code. Evidence, security testing and safety verification run as automatic gates on every commit, rather than as a phase before release.

Operational test

List every product you still have in the field that no longer receives firmware updates. Do you know which of them have a management interface reachable from outside the customer's network?

Older failures, same lessons

The fridge attacks feel new because of the physical consequence, but embedded history has been repeating the same few lessons for decades. It helps to look at them next to the pipeline controls that target each root cause.

IncidentRoot cause (as publicly documented)Gate that targets it
Ariane 5 flight 501, 1996Unprotected conversion of a 64 bit floating point value to a 16 bit integer in reused inertial reference code, which overflowed and shut the units downStatic analysis for numeric conversions, range assertions, integration tests with realistic flight data
Heartbleed in OpenSSL, 2014Missing bounds check in the TLS heartbeat handler allowed memory over-readsFuzzing with AddressSanitizer on the parser, bounds checks enforced in static analysis
Jeep Cherokee remote exploit, 2015Head unit services reachable over the cellular network, with a path to vehicle buses; about 1.4 million vehicles were recalledDAST and exposure scanning, network segmentation verification, threat analysis tied to ISO/SAE 21434
Mirai botnet and the Dyn outage, 2016Consumer devices exposed to the internet with default credentialsSecret scanning, binary credential analysis, a release policy that rejects shared default passwords
Toyota unintended acceleration litigation, 2013Expert testimony cited stack overflow risk, large numbers of global variables and coding rule violations in the engine control softwareStack usage gates, MISRA enforcement with a deviation ledger, resource regression checks
St. Jude Medical (Abbott) pacemaker firmware update, 2017FDA announced a firmware update for about 465,000 implanted devices to address cybersecurity vulnerabilitiesSecure update design, fuzzing of the telemetry interface, FDA 524B style SBOM and vulnerability processes

Notice how few of these needed exotic tooling to prevent. They needed somebody to run a fairly standard check on every build, and to make the result matter.

The Toyota case is worth a second look because it is about discipline more than defects. Coding standards like MISRA C aren't magic, but a team that can't produce a list of its rule violations and the reasons behind each one has no way to argue its software is controlled.

The regulatory map: one engineering practice, many regulators

Teams in several sectors often ask whether they need a separate pipeline per standard. They don't. The evidence categories overlap heavily, so one pipeline with different release policies per product line covers most of the ground.

RegimeDomainEvidence the pipeline can produce
EU Cyber Resilience ActProducts with digital elements sold in the EU (excluding medical devices, type-approved vehicles, civil aviation)SBOM, VEX, vulnerability handling records, reporting timelines, support period data
ISO 26262 and ISO/PAS 8800Automotive functional safety and AI safetyCoverage metrics, static analysis results, tool confidence evidence, traceability
ISO/SAE 21434 and UNECE R155Automotive cybersecurityThreat analysis links, penetration and fuzz test results, vulnerability monitoring
IEC 62304, EU MDR, FDA 524BMedical device softwareVerification records, SBOM, anomaly lists, cybersecurity testing evidence
DO-178C, DO-330, DO-326AAvionics software, tool qualification, airworthiness securityStructural coverage up to MC/DC at higher levels, qualified tool records, traceability
IEC 62443Industrial automation and control securitySecure development lifecycle records, component test results, patch management evidence

For primary sources, start with the European Commission's page on the Cyber Resilience Act, the FDA medical device cybersecurity guidance, and the MISRA site for the coding standards. If your product falls under the CRA and you want help scoping it, Stonetusker Systems works on exactly this intersection of embedded engineering and CI/CD.

Operational test

Can you show an auditor, from stored pipeline data and not from a hand-built slide deck, which requirement each test covers and which build produced the result?

The layered tool stack: what to try this week, what needs qualification

A linter is not a quality strategy. Static analysis alone can't see vendor binaries, runtime behavior or an exposed web admin page. You want layers across source, binaries and running targets, and each layer catches things the others structurally can't.

LayerOpen source optionsCommercial optionsWhere to run it
Static analysis, MISRA and CERT checksClang-Tidy, Cppcheck, Frama-CCoverity, Polyspace, Astrée, QAC, LDRA, Parasoft, AxivionDelta scans on PRs, full analysis nightly
Secret scanningGitleaks, TruffleHogGitHub Advanced Security, CycodePre-commit and PRs
Composition analysis, source and binarySyft, Grype, Yocto SPDX, EMBABinarly, Finite State, Cybellum, Black DuckSource SCA on PRs, binary SBOM and VEX at release
DASTOWASP ZAP, Nuclei, EMBABurp Suite Enterprise, InvictiNightly on QEMU or Renode targets, plus HIL staging
Fuzzing and runtime memory checkslibFuzzer, AFL++, Honggfuzz with ASan, UBSan, TSan; ValgrindDefensics, MayhemContinuous for fuzzing, nightly for Valgrind
Unit tests and coverage up to MC/DCUnity, CppUTest, Google Test, gcovr, Clang -fcoverage-mcdc, GCC 14 -fcondition-coverageVectorCAST, LDRA, Parasoft, CantataHost tests on PRs, target coverage at release
Binary hardening and resource checkschecksec, -fstack-usageAbsInt aiT and StackAnalyzer, RapiTimeEvery build artifact
Pen-testing and fault injectionCHIPSEC, scripted HIL harnessesSpecialist servicesPre-release gate

Useful starting points for the open source pieces include Gitleaks, Syft, EMBA, OWASP ZAP, libFuzzer, AFL++ and Renode.

DAST and fuzzing are not the same job

DAST probes the application layer: admin portals, REST and MQTT APIs, login flows. That is where the refrigeration controllers failed, because a management interface faced the internet with weak authentication. Fuzzing hammers low-level parsers (CAN, Modbus, BLE, TLV) with malformed input until something breaks. A team that runs only one of them has covered half the attack surface.

Valgrind deserves a mention for embedded Linux work. It catches uninitialized reads and thread races, and it works on binaries you can't rebuild with sanitizers. It's slow and won't run on a Cortex-M, so keep it nightly.

Scan what you shipped, not what you meant to ship

If your SBOM comes only from the build manifest, it describes what you intended to ship. Embedded builds routinely link vendor blobs, prebuilt libraries and board support packages you have no source for. Scan the final binary or image, compare it to the manifest, and treat any difference as a finding.

The XCPE case in November makes the point sharply. Google took down that backdoor in more than 1.3 million Android TV boxes and said the manufacturer got around its certification tests, loading the malicious code after first boot. Static review passed it. Runtime checks and binary inspection would have caught it.

The same pattern shows up in botnet numbers. Earlier this year authorities disrupted four IoT botnets that had infected millions of DVRs, cameras and routers. One produced a 31.4 Tbps flood in late 2025, nearly six times the biggest attack of 2024. Devices that ship with weak credentials and no update path are the fuel.

Operational test

If a supplier handed you a firmware image tomorrow with no source, could your pipeline unpack it, list its components with versions, and flag known CVEs and hardcoded credentials before it reaches a customer?

The three-tier pipeline: don't make developers wait

If every pull request waits on sound whole-program analysis, full emulation and an 8 hour fuzz run, people will route around the process. They'll batch changes, skip branches or push straight to main. Splitting the work by cost fixes that.

TierWhenBudgetWhat runs
Tier 1Pre-commit and pull requestsUnder 10 minutesSecret scan, incremental static analysis, host unit tests with MC/DC diff checks, source SCA, flash, RAM and stack regression gates
Tier 2Nightly or merge queueHoursWhole-program analysis, continuous fuzzing with saved corpora, emulated DAST, full binary scans
Tier 3Release gateAs long as it needsTarget HIL verification, full MC/DC aggregation, hardening validation, CycloneDX or SPDX SBOM with VEX, signed compliance bundle

Fast checks guard commits. Slow checks guard merges. The heavy evidence gets built once, at release.

Making the tiers concrete

Here is a trimmed GitHub Actions sketch of Tier 1. The details will differ per project, but the shape is the point: a pinned container, a few cheap checks, and a hard fail on regressions.

name: tier1
on: [pull_request]
jobs:
  fast-gates:
    runs-on: ubuntu-latest
    container: ghcr.io/example-org/fw-ci:2026.11.1   # pinned toolchain image
    steps:
      - uses: actions/checkout@v4
        with: { fetch-depth: 0 }
      - name: Secret scan
        run: gitleaks detect --redact --exit-code 1
      - name: Incremental static analysis
        run: tools/run_clang_tidy_changed.sh origin/main
      - name: Host unit tests with MC/DC
        run: tools/host_tests.sh --mcdc --diff-base origin/main
      - name: Source SCA
        run: syft dir:. -o cyclonedx-json=sbom-src.json && grype sbom:sbom-src.json --fail-on high
      - name: Size and stack regression
        run: tools/check_budgets.py --flash 2% --ram 2% --stack 5%
Operational test

How long does a developer wait today for the slowest mandatory check on a pull request? If the answer is more than about ten minutes, which of those checks can move to the nightly tier without losing coverage?

What actually survives an audit

Green checkmarks aren't enough for ISO 26262, IEC 62304 or a CRA assessment. An assessor wants to know the checks mean something, the tools are trusted, and exceptions were reviewed by a person with authority. Four practices carry most of the weight.

1. Host coverage first, target coverage for certification

Put hardware behind a thin hardware abstraction layer so the logic runs on the host and you get MC/DC feedback on every pull request. But a host x86_64 build and a target ARM or RISC-V core can differ in integer promotion, endianness and optimizer behavior. Upstream Clang and GCC aren't pre-qualified either.

So use host coverage to find gaps fast, then produce certification artifacts in Tier 3 with a qualified target toolchain or trace-based coverage through ETM, VectorCAST or Parasoft. If you want to see the open source options, the Clang source-based coverage documentation and the GCC instrumentation options cover the MC/DC and condition coverage flags.

2. Deviations as code

Real firmware triggers legitimate MISRA exceptions. Memory-mapped I/O pointer casts are the classic. Don't silence them with pragmas nobody reviews. Keep them in a version-controlled file carrying the four things auditors want: rule, rationale, risk assessment, authorization.

deviations:
  - id: DEV-0042
    rule: "MISRA C:2012 Rule 11.4"
    location: "drivers/uart/uart_regs.c:88"
    rationale: "Memory-mapped register access requires integer to pointer cast"
    risk: "Low. Address is a compile-time constant from the vendor header."
    approved_by: "safety-lead"
    approved_on: "2026-09-14"
    expires: "2027-09-14"

CI regenerates the deviation ledger on every release, and an unlisted deviation fails the build. Expiry dates matter more than people expect, because they force a periodic second look.

3. Release gates written as policy

Write the release rules in Open Policy Agent or plain CI logic, so nobody has to argue them at 11pm. Typical blocking conditions:

  • any unapproved High or Critical CWE finding
  • a deviation without a signed entry
  • a drop in the MC/DC threshold for any safety-relevant module
  • a reachable, unpatched CVE in the binary-derived SBOM
  • a product past its declared support period

Exceptions get recorded in the repository with an owner and an expiry. They don't get agreed in a chat thread and forgotten.

4. Traceability and qualified tools

Tools like StrictDoc, Doorstop and Sphinx-Needs link requirements to commits, test verdicts and SBOM or VEX output. Pin your analyzer, compiler and coverage tool versions, and record them in the evidence bundle.

Automation only counts if the tools are qualified for your integrity level: ISO 26262 tool confidence levels, or DO-330 tool qualification levels in avionics. A fast open source gate in Tier 1 is fine for feedback. The artifact you hand an assessor needs a qualification argument behind it.

Operational test

Pick one MISRA deviation in your codebase. Can you produce its rule, rationale, risk assessment and approver in under five minutes, and can you prove the build would fail if someone added a similar one without approval?

Hardware as the last line of defense

Pipelines reduce the chance of a flaw shipping. They can't make firmware unhackable. The blood service incident is the best argument for designing as if the controller will eventually be compromised, because the thing that saved the plasma was independent monitoring and an alarm path, not code quality.

Official advisories now recommend setpoint limits and deviation alerts. I'd go further and add independent hardware limits that no firmware can override. A mechanical or analog thermostat in series with the heating element, a hardware watchdog that cuts power to actuators when a heartbeat stops, and a physically separate temperature sensor feeding an alarm are cheap, boring and effective.

Questions to settle at design review

  • What is the worst physical outcome if every line of firmware on this device is malicious?
  • Which limit stops that outcome, and can any software path reach it?
  • Does the alarm path share a network, a power rail or a credential with the thing it watches?
  • What does the device do when its cloud connection or time source goes away?

Then put the answers into the pipeline. HIL tests that attempt to command out-of-range setpoints, spoof the sensor and kill the watchdog heartbeat belong in the Tier 3 gate, with pass or fail recorded against the safety requirement they verify.

End of life is a design input

Danfoss and Copeland both pointed at older or discontinued controllers. Declare a support period for every product at release, store it next to the SBOM, and have the release policy and the portfolio review both read it. When a product reaches its end date, you need a defined plan: a last update, a notice to customers, a way to disable remote access. Leaving it unmanaged is what produces thousands of exposed old devices.

Operational test

If your device's firmware were fully attacker-controlled, could it still push a physical process past its safe limit? If yes, which independent hardware element would stop it?

Where AI fits: the independent checker stays deterministic

AI-generated code gets held to the same standard as handwritten code, and MISRA C:2025 says so. Assistants tend to break MISRA and CERT rules by default, which means your pipeline has to be the independent checker. A model reviewing code that another model wrote isn't independence.

Practical rules for AI-assisted firmware work

  • Tag AI-assisted commits with a trailer so provenance is queryable later.
  • Run exactly the same analyzers, tests and coverage gates, with no relaxed thresholds for generated code.
  • Require a named human to sign off any change touching safety-relevant modules.
  • Treat generated tests with suspicion: they often assert whatever the code currently does. Check that they trace to a requirement.
  • Keep secrets, proprietary specs and customer data out of prompts, and record which tools are permitted.

Edge AI is its own problem

ISO/PAS 8800 extends ISO 26262 and SOTIF for automotive AI and covers what it calls AI insufficiency. You can't prove a neural network safe from accuracy figures alone. What you can do is verify the deterministic guardrails and monitors around it, and keep traceable evidence from training data through to runtime code.

Where AI genuinely helps

Three spots pay off now: suggesting test vectors for uncovered MC/DC branches, drafting first-pass fuzz harnesses, and explaining obscure static analysis findings to a junior engineer. Anything it suggests goes through the same gates and a human sign-off. AI proposes, deterministic tools and accountable people approve.

Attackers have the same tools. Because Claroty demonstrated an AI agent reproducing two of the three Danfoss flaws on a test device, you should assume that the time between a public advisory and working exploit code is shrinking. Keep a binary-derived SBOM per release and check VEX continuously, so that "does this CVE hit build 4.2.1 in the field?" takes minutes.

For the data format side, both CycloneDX and SPDX are well supported, and OpenVEX is one way to publish exploitability statements. The CISA Known Exploited Vulnerabilities catalog is a good feed to prioritize against, since "actively exploited" is exactly the CRA trigger.

A reference pipeline you can build

If you need to convince skeptical senior engineers, don't present slides. Build a small working demo around an STM32 or Zephyr sample that includes a simple network or command parser, and let the pipeline break things in front of them. The seven steps below are a sensible order.

  1. Pin the toolchain in a containerCMake, Clang-Tidy with CERT and bugprone checks, Cppcheck and Gitleaks in one pinned Docker image. Everyone, including CI, uses the same versions.
  2. Fuzz the isolated parserlibFuzzer with ASan and UBSan on the Linux host, aimed at the parser module you separated from hardware. ASan won't fit on a small Cortex-M, which is why the logic has to run on the host.
  3. Emulate the target and scan interfacesUse Renode or QEMU for peripheral and protocol emulation, then scan for open interfaces. EMBA fits if the target is embedded Linux.
  4. Measure MC/DC and tie it to requirementsBuild host unit tests with -fcoverage-mcdc and link them to Markdown requirements through StrictDoc or Doorstop, so coverage maps to something a reviewer cares about.
  5. Generate a CycloneDX SBOM on every buildProduce it from the final artifact as well as from the manifest, and diff the two.
  6. Add a final policy jobA GitHub Actions job that fails on dropped MC/DC, an unapproved deviation or a critical CVE in the SBOM.
  7. Zip the evidence bundleOne signed archive as the build output: reports, SBOM, VEX, deviation ledger, tool versions, trace matrix. Something you can hand to an auditor without editing.

A realistic adoption timeline

PhaseFocusOutcome you can show
Weeks 1 to 4Pinned container, secret scanning, Clang-Tidy and Cppcheck on PRs, size gatesEvery PR gets a fast pass or fail with no manual steps
Weeks 5 to 8Host unit tests behind a HAL, MC/DC diff checks, first fuzz target, source SBOMA coverage trend and a fuzz corpus that grows each night
Weeks 9 to 12Emulated DAST, binary SBOM, deviation ledger, policy-as-code release gateA release that is blocked automatically when a rule is broken
Quarter 2HIL gates, target coverage with qualified tools, signed evidence bundle, VEX feed monitoringA mock audit answered entirely from stored artifacts

Metrics and anti-patterns

If you can't measure it, a pipeline decays into theater. A handful of numbers tell you whether the system is working.

MetricWhy it matters
Time to answer "which fielded builds contain CVE X"Directly measures CRA readiness. Target minutes, not days.
Tier 1 median and 95th percentile durationDeveloper patience is finite. A slow tail breeds workarounds.
MC/DC trend per safety-relevant moduleA dropping line means untested logic is merging.
Open deviations and number past expiryShows whether exceptions are being managed or hoarded.
Fuzz corpus size and new crashes per weekA flat corpus usually means the harness is stuck.
Share of fielded products inside their support periodSurfaces the old-device exposure that hurt the fridge operators.

Anti-patterns we see repeatedly

Anti-patternWhy it hurtsFix
Static analysis findings dumped into a dashboard nobody readsNoise grows until the tool is ignoredBaseline existing issues, fail only on new ones, triage the rest on a schedule
SBOM exported once per certificationStale within a sprint, useless for CVE responseGenerate per build from the binary, store per release
Pragmas that suppress warnings with no recordInvisible risk, nothing to show an auditorDeviation ledger with approvals and expiry
Fuzzing run once before releaseMisses regressions, corpus is lostContinuous fuzzing with saved corpora in CI storage
One giant 3 hour pipeline for every commitDevelopers bypass itThree tiers with explicit budgets
Software-only protection of physical limitsOne compromise defeats safetyIndependent hardware limits and alarm paths

Regulators are faster, code arrives faster, attackers are faster. This autumn it was a supermarket cold chain, and for a few hours a blood bank. Teams that make evidence a byproduct of the build will be fine. Teams still assembling documents before release will keep playing catch-up.

Compliance-as-CodeEU Cyber Resilience ActMISRA C:2025MC/DC coverageSBOM and VEXFuzzing with sanitizersDASTISO 26262IEC 62304ISO/SAE 21434IEC 62443Policy as codeHardware safety limitsAI-generated code

Frequently asked questions

What is Compliance-as-Code for embedded systems?

Compliance-as-Code means the evidence a regulator or auditor wants is produced automatically by the build pipeline on every commit and release, instead of being assembled by hand before certification. Static analysis results, test and coverage reports, SBOMs, vulnerability status and traceability links all become pipeline outputs, and release rules are enforced by code rather than by memory.

When do the EU Cyber Resilience Act reporting duties apply?

The reporting obligations started on 11 September 2026. If a vulnerability in your product is being actively exploited, you owe an early warning within 24 hours and a fuller notification within 72 hours. The remaining requirements of the Act apply from December 2027. Medical devices, type-approved road vehicles and civil aviation are excluded because they have their own regimes.

Is static analysis enough to meet ISO 26262 or IEC 62304?

No. Static analysis finds a class of source-level defects, but it can't see vendor binaries, runtime behavior, malformed input handling or exposed interfaces. You need layers: secret scanning, composition analysis on the final binary, fuzzing with sanitizers, DAST against emulated or real targets, coverage up to MC/DC where your integrity level asks for it, and traceability tying it together.

Can open source tools be used for safety certification?

They're excellent for fast feedback and many teams use them in Tier 1 and Tier 2 gates. For certification evidence, the tool needs to be qualified for your integrity level (for example ISO 26262 tool confidence levels or DO-330 tool qualification levels in avionics), so many teams produce final artifacts with a qualified commercial toolchain or trace-based coverage on the target.

How do we keep CI fast with so many checks?

Split the checks into tiers. Keep Tier 1 under ten minutes for pre-commit and pull requests (secret scan, incremental static analysis, host unit tests, source SCA, size gates). Run whole-program analysis, long fuzzing and emulated DAST nightly or in a merge queue, and build the heavy evidence such as HIL results, full MC/DC aggregation and signed bundles once at release.

How should we treat AI-generated code in a safety process?

Hold it to the same standard as handwritten code. MISRA C:2025 says so, and assistants tend to break MISRA and CERT rules by default. Run it through the same analyzers, tests and review gates, tag its provenance in commits, and keep a human sign-off. AI can propose test vectors or fuzz harnesses, but deterministic tools and accountable people approve.

Is your release evidence a byproduct of the build, or a project of its own?

If a 24 hour CRA clock, a customer audit or an AI-assisted codebase is making your current process look fragile, we can review your pipeline with you, find the gaps that matter first, and help you build the gates in the right order.

Talk to Stonetusker about your embedded CI/CD pipeline

About the author: Subeesh Sivanandan

Founder & CEO of Stonetusker Systems, with 26+ years across platform engineering, DevOps, CI/CD, release engineering and embedded Linux. He helps engineering leaders turn compliance and release risk into automated, auditable pipelines.

Connect on LinkedIn