<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: BreakPilot</title>
    <description>The latest articles on DEV Community by BreakPilot (breakpilot).</description>
    <link>https://dev.to/breakpilot</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F14284%2Fe137a169-0903-4611-8ab5-b8928493ff60.png</url>
      <title>DEV Community: BreakPilot</title>
      <link>https://dev.to/breakpilot</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/breakpilot"/>
    <language>en</language>
    <item>
      <title>Turning CRA Annex I into checks that read your code</title>
      <dc:creator>Sharang Parnerkar</dc:creator>
      <pubDate>Mon, 23 Nov 2026 09:40:17 +0000</pubDate>
      <link>https://dev.to/breakpilot/turning-cra-annex-i-into-checks-that-read-your-code-51nb</link>
      <guid>https://dev.to/breakpilot/turning-cra-annex-i-into-checks-that-read-your-code-51nb</guid>
      <description>&lt;p&gt;From 11 December 2027, a connected product placed on the EU market has to come with evidence for the essential cybersecurity requirements of the Cyber Resilience Act. Most firmware and PLC teams have read the headlines. Fewer have read Annex I, the two pages that list what those requirements actually are.&lt;/p&gt;

&lt;p&gt;This article does three things. It puts Annex I on one page. It sorts the requirements into the ones your code can provide evidence for and the ones that need a person to answer. And it follows one finding, an unchecked Modbus input, from a line of C to the requirement it belongs to and back to a closed task.&lt;/p&gt;

&lt;p&gt;It is not legal advice. Whether the CRA applies to your product, and whether your evidence is enough, is decided by you as the manufacturer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Annex I on one page
&lt;/h2&gt;

&lt;p&gt;Annex I of &lt;a href="https://eur-lex.europa.eu/eli/reg/2024/2847/oj" rel="noopener noreferrer"&gt;Regulation (EU) 2024/2847&lt;/a&gt; has two parts. The wording below is a summary; read the original before you rely on it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Part I: properties of the product.&lt;/strong&gt; Point 1 asks for a level of cybersecurity appropriate to the risks. Point 2 lists what that means in practice. Products shall, on the basis of the risk assessment:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;(a) be made available without known exploitable vulnerabilities,&lt;/li&gt;
&lt;li&gt;(b) come with a secure by default configuration, with a way to reset to the original state,&lt;/li&gt;
&lt;li&gt;(c) allow vulnerabilities to be addressed through security updates,&lt;/li&gt;
&lt;li&gt;(d) protect against unauthorised access, for example through authentication and access management,&lt;/li&gt;
&lt;li&gt;(e) protect the confidentiality of stored, transmitted or processed data, for example through encryption,&lt;/li&gt;
&lt;li&gt;(f) protect the integrity of data, commands, programs and configuration against unauthorised manipulation,&lt;/li&gt;
&lt;li&gt;(g) process only the data that is needed for the intended purpose,&lt;/li&gt;
&lt;li&gt;(h) protect the availability of essential functions, also under attack,&lt;/li&gt;
&lt;li&gt;(i) minimise their own negative impact on other devices and networks,&lt;/li&gt;
&lt;li&gt;(j) limit attack surfaces, including external interfaces,&lt;/li&gt;
&lt;li&gt;(k) reduce the impact of an incident through exploitation mitigation,&lt;/li&gt;
&lt;li&gt;(l) record and monitor relevant internal activity,&lt;/li&gt;
&lt;li&gt;(m) let users remove their data and settings securely.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Part II: how the manufacturer handles vulnerabilities.&lt;/strong&gt; Identify and document the components, including a software bill of materials. Fix vulnerabilities without delay. Test regularly. Publish information about fixed vulnerabilities. Have a coordinated vulnerability disclosure policy and a contact address for reports. Distribute updates securely, without delay and free of charge.&lt;/p&gt;

&lt;p&gt;Read that list as an engineer and something stands out. A large part of it describes properties of code and build artefacts. The rest describes decisions and processes that no scanner will ever see.&lt;/p&gt;

&lt;h2&gt;
  
  
  What code can show, and what needs a person
&lt;/h2&gt;

&lt;p&gt;Take each item and ask one question: could a tool that reads the repository, the build and the configuration produce a piece of evidence for it, and produce it again after every change?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Evidence from code and build:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Known exploitable vulnerabilities (a).&lt;/em&gt; Dependencies matched against vulnerability databases, plus static analysis of your own code.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Secure defaults (b).&lt;/em&gt; Default credentials, debug interfaces left enabled, services that start open.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Access control (d).&lt;/em&gt; Hard-coded passwords, authentication paths that can be skipped.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Confidentiality and integrity (e, f).&lt;/em&gt; Weak or missing cryptography, plain text protocols, input that reaches memory or registers without validation.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Attack surface and exploitation mitigation (j, k).&lt;/em&gt; Exposed interfaces in the configuration, missing compiler and linker hardening.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;SBOM (Part II).&lt;/em&gt; Generated from the build, not written by hand.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Regular testing (Part II).&lt;/em&gt; The pipeline itself is the record.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Secure update distribution (Part II).&lt;/em&gt; Signed artefacts, verified signatures.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Answers that need a person:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;The risk assessment behind Part I point 1.&lt;/em&gt; Which risks matter depends on where the machine runs and who can reach it.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Data minimisation (g).&lt;/em&gt; What data is needed is a purpose decision, not a code property.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Availability and impact on other networks (h, i).&lt;/em&gt; Partly design, partly operating environment.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Disclosure policy, contact address, publishing fixes, free updates (Part II).&lt;/em&gt; These are commitments of the organisation.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;The support period.&lt;/em&gt; How long you will ship security updates is a decision, and a commercial one.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The split is not clean. Secure data removal (m) has a code side and a documentation side. Logging (l) can be found in code, but whether it records the right things is a judgement. In our own control map we ended up with 40 CRA controls for a typical product. For 21 of them, every push produces evidence from the code. The other 19 are tracked as tasks with an owner and a due date.&lt;/p&gt;

&lt;p&gt;That ratio is the useful part. About half of the controls can be kept current by the pipeline. The other half will not move unless someone owns it.&lt;/p&gt;

&lt;h2&gt;
  
  
  One finding, end to end
&lt;/h2&gt;

&lt;p&gt;Here is an illustrative example of a common pattern in controller code. A Modbus handler writes a request into holding registers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;&lt;span class="cm"&gt;/* src/comm/modbus_handler.c */&lt;/span&gt;
&lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;uint16_t&lt;/span&gt; &lt;span class="n"&gt;holding&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;HOLDING_COUNT&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="nf"&gt;handle_write_multiple&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="kt"&gt;uint8_t&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;pdu&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;size_t&lt;/span&gt; &lt;span class="n"&gt;len&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kt"&gt;uint16_t&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pdu&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;pdu&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kt"&gt;uint16_t&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pdu&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;pdu&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;uint16_t&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;          &lt;span class="cm"&gt;/* line 214 */&lt;/span&gt;
        &lt;span class="n"&gt;holding&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pdu&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;6&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;pdu&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="no"&gt;MB_OK&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Neither &lt;code&gt;start + count&lt;/code&gt; nor &lt;code&gt;len&lt;/code&gt; is checked. A single crafted frame from anyone on the network writes past the register array.&lt;/p&gt;

&lt;p&gt;A useful finding carries everything a reviewer needs, without a questionnaire:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;finding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Unchecked input at the Modbus interface&lt;/span&gt;
&lt;span class="na"&gt;file&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;src/comm/modbus_handler.c&lt;/span&gt;
&lt;span class="na"&gt;line&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;214&lt;/span&gt;
&lt;span class="na"&gt;priority&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;high&lt;/span&gt;
&lt;span class="na"&gt;measure&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Check start, count and frame length before the register assignment&lt;/span&gt;
&lt;span class="na"&gt;mapped_to&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;CRA Annex I, Part I, point 2 (f)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;integrity of data and commands&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;CRA Annex I, Part I, point 2 (j)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;external interfaces as attack surface&lt;/span&gt;
&lt;span class="na"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;open&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two details matter here. The mapping is a reference, a pointer to the requirement the finding is about. It is not a statement that the requirement is met or failed. And the measure is concrete enough that a developer can act on it without a meeting.&lt;/p&gt;

&lt;p&gt;The fix is three lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;len&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;2u&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
        &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="no"&gt;MB_MAX_WRITE_REGS&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
        &lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="no"&gt;HOLDING_COUNT&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="no"&gt;MB_ERR_ILLEGAL_DATA_ADDRESS&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On the next push the pipeline runs again. The finding is gone, the control for integrity of commands now has fresh evidence attached, dated and tied to a commit. Nobody had to update a spreadsheet. If a later change removes the check, the finding comes back and the control shows evidence missing again.&lt;/p&gt;

&lt;p&gt;This is what "continuous" means in practice. Not a yearly audit, but a status that follows the code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fresh evidence on every commit, tasks for the rest
&lt;/h2&gt;

&lt;p&gt;The 21 controls with evidence from code are the easy half to keep current, because the pipeline does it. The other 19 are where projects stall. A few things help:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Every open control has an owner and a date.&lt;/strong&gt; "Disclosure policy: owner Product Management, due 15 January" is a task. "Disclosure policy: open" is a wish.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Answers are stored where the evidence is.&lt;/strong&gt; The support period, the contact address and the risk assessment live next to the scan results, so the full picture for one product is in one place.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;New vulnerabilities reopen things.&lt;/strong&gt; A library that was clean last month can be vulnerable today. Matching the SBOM against newly published vulnerabilities every day turns that into a task, not a surprise.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Three statuses, not two.&lt;/strong&gt; Evidence attached, evidence missing, open. "Passed" and "failed" would be conclusions, and they are not the tool's to draw.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What an auditor wants to read
&lt;/h2&gt;

&lt;p&gt;Talk to anyone who reviews technical documentation and you hear the same wish: show me where it is. For each requirement they want to see what was mapped to it, where the evidence sits, how current it is, and who decided what.&lt;/p&gt;

&lt;p&gt;A list of findings with file, line, measure, priority and requirement gives them exactly that. It is readable without access to your repository, and every line can be traced back to it.&lt;/p&gt;

&lt;p&gt;What a tool cannot give them is the assessment. Deciding that the evidence for a requirement is sufficient, signing the EU declaration of conformity and standing behind it stays with the manufacturer. A good setup makes that decision faster and better informed. It does not make it for you.&lt;/p&gt;




&lt;p&gt;We build this as Prüfwerk, part of the BreakPilot platform. Docs: &lt;a href="https://docs.breakpilot.com/en/pruefwerk/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=d2" rel="noopener noreferrer"&gt;docs.breakpilot.com/en/pruefwerk&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This article describes our reading of Annex I. It is not legal advice; the assessment of your product stays with you.&lt;/p&gt;

&lt;p&gt;We are at SPS in Nuremberg this week, until 26 November, hall 6, stand 6-253.3. Bring a finding from your own code if you like. Or write to &lt;a href="mailto:kontakt@breakpilot.com"&gt;kontakt@breakpilot.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;How does your team split this work today, and which Annex I item has been hardest to produce evidence for? We would like to hear it in the comments.&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>security</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>Supermarket fridges at 50 degrees: could you still build the firmware patch?</title>
      <dc:creator>Sharang Parnerkar</dc:creator>
      <pubDate>Tue, 03 Nov 2026 16:46:11 +0000</pubDate>
      <link>https://dev.to/breakpilot/supermarket-fridges-at-50-degrees-could-you-still-build-the-firmware-patch-17pp</link>
      <guid>https://dev.to/breakpilot/supermarket-fridges-at-50-degrees-could-you-still-build-the-firmware-patch-17pp</guid>
      <description>&lt;p&gt;Attackers switched supermarket refrigeration controllers across Europe into defrost mode. Fixes for known flaws had been out since 2025. What that means for firmware teams, and how to keep every release rebuildable.&lt;/p&gt;

&lt;p&gt;In the night from 1 to 2 November, fridges and freezers in supermarkets across Europe started warming up. Stores in Belgium, Luxembourg, the Netherlands, Sweden, Finland, Estonia, Ireland and Italy reported warming cabinets or spoiled food. A store in Sweden reported cabinet temperatures of up to 50 °C. A refrigeration service company in Belgium said the systems had been switched remotely into defrost mode.&lt;/p&gt;

&lt;p&gt;It was the second wave in a month. On 12 October, hundreds of supermarkets in France had been hit the same way. The EU Commission has since set up a task force with ENISA and Europol.&lt;/p&gt;

&lt;p&gt;If you write firmware for connected equipment, this one is worth reading closely. Not because of how the attackers got in, which is still being investigated, but because of what the reporting says about updates.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is known, and what is not
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Remote controllers.&lt;/strong&gt; CERT-FR &lt;a href="https://cert.cyber.gouv.fr/alerte/CERTFR-2026-ALE-012/" rel="noopener noreferrer"&gt;reported numerous compromises&lt;/a&gt; of remote controllers for refrigeration installations and listed Copeland xweb, Danfoss AK-SC, Danfoss AK-SM and Dixell xweb. Its first advice: take them off the public internet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Known flaws, fixed in 2025.&lt;/strong&gt; For one of those controller families, the AK-SM 8xxA series, &lt;a href="https://www.cisa.gov/news-events/ics-advisories/icsa-25-140-03" rel="noopener noreferrer"&gt;CISA advisory ICSA-25-140-03&lt;/a&gt; describes an authentication bypass based on passwords generated from the date and time (CVE-2025-41450), fixed in R4.2, and two further flaws fixed in 4.3.1. &lt;a href="https://claroty.com/team82/research/freeze-the-controller-defrost-the-food-uncovering-vulnerabilities-in-danfoss-refrigeration-controllers" rel="noopener noreferrer"&gt;Claroty Team82&lt;/a&gt; described the "code of the day" mechanism and counted 2,765 of these systems reachable from the internet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Old firmware.&lt;/strong&gt; Danfoss said, as reported by &lt;a href="https://www.theregister.com/security/2026/10/13/cyberattacks-crank-french-supermarket-refrigeration-systems-up-to-50c/5302784" rel="noopener noreferrer"&gt;The Register&lt;/a&gt;, that the affected French stores "were running outdated firmware". A security adviser quoted by &lt;a href="https://www.cnbc.com/2026/11/03/supermarket-fridges-hack-cyberattack-europe.html" rel="noopener noreferrer"&gt;CNBC&lt;/a&gt; said that thousands of units never received the update and that the oldest models cannot be updated at all.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not confirmed.&lt;/strong&gt; Nobody has claimed the attacks. Authorities have not named the entry point or confirmed that the known flaws were used.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;CERT-FR's alert includes a warning every firmware team should have on the wall: an end-of-life device without security patches that stays exposed to the internet carries a very high risk of compromise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two reasons a fix never reaches a device
&lt;/h2&gt;

&lt;p&gt;The first is on the operator side. The controller sits on a public IP so a contractor can reach it, nobody in the store owns its updates, and the patch that exists is never installed. That is what CERT-FR's advice addresses, and it is not what this post is about.&lt;/p&gt;

&lt;p&gt;The second is on the manufacturer side, and it is the part firmware teams control. A controller sold eight years ago only gets a security update if someone can still build its firmware: with the toolchain it was built with, the SDK it was built against and the build script that lived on one engineer's laptop. Then you want to show that the new image differs from the one in the field only by the fix.&lt;/p&gt;

&lt;p&gt;Can you rebuild the firmware you shipped years ago and get the same bytes? Not "something that boots". The same file, with the same hash as the image on the devices in the field. For most embedded teams the honest answer is "probably not". That is rarely carelessness. An embedded build depends on far more than the source tree, and almost none of it is written down.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the CRA asks for, in plain terms
&lt;/h2&gt;

&lt;p&gt;The main obligations of the EU Cyber Resilience Act apply from 11 December 2027. For products with digital elements, it expects manufacturers to handle vulnerabilities and provide security updates over a support period that typically runs for years, and to document the software that goes into each product.&lt;/p&gt;

&lt;p&gt;The regulation does not use the word "reproducible". But if you have to patch a version that is five years old, you need to be able to build it again, and you want to know that the only difference in the new image is your patch. That is a reproducibility problem.&lt;/p&gt;

&lt;p&gt;Whether and how the CRA applies to a specific product is for the manufacturer to decide. This post is about the engineering side.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the same source gives different binaries
&lt;/h2&gt;

&lt;p&gt;A typical bare-metal Makefile calls &lt;code&gt;arm-none-eabi-gcc&lt;/code&gt; and trusts whatever is on &lt;code&gt;PATH&lt;/code&gt;. Three things leak into the output:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Toolchain drift.&lt;/strong&gt; One engineer has GCC 15.2 from the distro, CI has 13.x from a container image, another engineer uses the vendor's bundled toolchain. Different code generation, different binaries, same commit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Timestamps.&lt;/strong&gt; &lt;code&gt;__DATE__&lt;/code&gt; and &lt;code&gt;__TIME__&lt;/code&gt;, archive member times, random build IDs. Every build looks new.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Paths.&lt;/strong&gt; Debug info (&lt;code&gt;-g3&lt;/code&gt;), &lt;code&gt;__FILE__&lt;/code&gt; and some linker outputs carry absolute paths. Build in &lt;code&gt;/home/anna/fw&lt;/code&gt; and in &lt;code&gt;/builds/ci/fw&lt;/code&gt; and you get two images.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9mlh7zgg4ideh7p68p5v.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9mlh7zgg4ideh7p68p5v.gif" alt="Same commit, three machines, three different firmware hashes. With a sealed toolchain, one hash." width="760" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;None of this matters on the day you ship. It matters on the day you have to ship a fix for an old version.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three ways a rebuild fails
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu7l2te9xhakiu7gbutvf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu7l2te9xhakiu7gbutvf.png" alt="Three ways a rebuild fails: the toolchain is gone, the build is not deterministic, the build knowledge is gone." width="800" height="371"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The toolchain is gone.&lt;/strong&gt; The compiler version the image was built with is not installed anywhere anymore, nobody wrote it down, and the vendor download page has moved twice.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The build is not deterministic.&lt;/strong&gt; You have the toolchain and the source, but timestamps and paths change the output, so you cannot show that the rebuild matches what shipped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The build knowledge is gone.&lt;/strong&gt; The Makefile lived on a laptop, the SDK headers sat in a directory nobody committed, and what is left is a folder of &lt;code&gt;.c&lt;/code&gt; and &lt;code&gt;.h&lt;/code&gt; files.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Each needs a different fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sealing a toolchain: detect, seal, build, verify
&lt;/h2&gt;

&lt;p&gt;The well-known answer to the first two is Nix: pin every input by content hash, build in a sandbox, set &lt;code&gt;SOURCE_DATE_EPOCH&lt;/code&gt;, use a fixed build prefix. It works very well. It also means writing Nix expressions, which most firmware teams have no reason to learn.&lt;/p&gt;

&lt;p&gt;So we put Nix underneath and kept it out of sight. The flow has four steps:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcw8i70e0m9eaaycq0iz4.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcw8i70e0m9eaaycq0iz4.gif" alt="detect, seal, build with a pinned toolchain, verify byte for byte" width="760" height="321"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here it is on a public project, step 1 of &lt;a href="https://github.com/cpq/bare-metal-programming-guide" rel="noopener noreferrer"&gt;cpq/bare-metal-programming-guide&lt;/a&gt; at commit &lt;code&gt;594fe3c&lt;/code&gt;: an STM32 Cortex-M4 blinky with &lt;code&gt;main.c&lt;/code&gt;, &lt;code&gt;link.ld&lt;/code&gt; and a Makefile that calls &lt;code&gt;arm-none-eabi-gcc&lt;/code&gt;. Nothing in the repo was changed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Detect&lt;/strong&gt; reads the build system, not the source, because that is where the signal is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ firmwerk detect .
Selected: make (medium confidence)

Build plan
  build system : make
  toolchain    : arm-none-eabi-gcc
  target arch  : cortex-m4
  build        : make
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Seal and build&lt;/strong&gt; copies the sources into a sandbox, supplies a toolchain pinned by nixpkgs commit and content hash, runs the project's own &lt;code&gt;make&lt;/code&gt;, and writes &lt;code&gt;firmwerk.lock&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ firmwerk lock --backend nix .
Sealed make (make build) with the `nix` backend
  toolchain : gcc-arm-embedded [79bf431783c2]
  artifact  : firmware sha256:sha256-y37o+
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="n"&gt;schema&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="n"&gt;provider&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"make"&lt;/span&gt;
&lt;span class="n"&gt;build_system&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"make"&lt;/span&gt;
&lt;span class="n"&gt;build_commands&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;"make"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;[&lt;/span&gt;&lt;span class="n"&gt;toolchain&lt;/span&gt;&lt;span class="k"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"gcc-arm-embedded"&lt;/span&gt;
&lt;span class="n"&gt;source&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"b134951a4c9f3c995fd7be05f3243f8ecd65d798"&lt;/span&gt;   &lt;span class="c"&gt;# nixpkgs commit&lt;/span&gt;
&lt;span class="n"&gt;nixpkgs_hash&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"sha256-OnSAY7XDSx7CtDoqNh8jwVwh4xNL/2HaJxGjryLWzX8="&lt;/span&gt;
&lt;span class="n"&gt;hash&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"79bf431783c2667c326344d3e13a347bc354cbde29a0490cf1178016501e3282"&lt;/span&gt;

&lt;span class="k"&gt;[[&lt;/span&gt;&lt;span class="n"&gt;artifacts&lt;/span&gt;&lt;span class="k"&gt;]]&lt;/span&gt;
&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"firmware"&lt;/span&gt;
&lt;span class="n"&gt;sha256&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"sha256-y37o+KexPFWmv/mTn2XE7YaSU/fpXq122hTSTBP/Jck="&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Excerpt of the lock file.)&lt;/p&gt;

&lt;p&gt;The lock is the file you commit next to the firmware. It records the exact toolchain, the build commands and the expected hash of every artifact.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Verify&lt;/strong&gt; builds again and compares:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ firmwerk verify --backend nix .
Reproducible: all 1 artifact(s) rebuilt byte-identical.

firmware  [sha256-y37o+KexP]  (make build)
|- toolchain  gcc-arm-embedded [pinned b134951a4c9f3c995fd7be05f3243f8ecd65d798]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That worked despite &lt;code&gt;-g3&lt;/code&gt; debug info, because the sandbox uses a fixed build prefix and &lt;code&gt;SOURCE_DATE_EPOCH&lt;/code&gt;. With the toolchain cached, the lock took about 13 seconds and the verify under two. If a build leaks a timestamp or a path into the image, &lt;code&gt;verify&lt;/code&gt; fails and names the artifact, which is exactly what you want to know.&lt;/p&gt;

&lt;p&gt;The test we like most: step 2 of the same guide. Built natively on a laptop with Fedora's GCC 15.2.0, &lt;code&gt;firmware.bin&lt;/code&gt; hashes to &lt;code&gt;39c2f7c815d0…&lt;/code&gt;; sealed, it is &lt;code&gt;sha256-FUE/MaOsdUw9…&lt;/code&gt;. Then we put a deliberately broken &lt;code&gt;arm-none-eabi-gcc&lt;/code&gt; first on &lt;code&gt;PATH&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'#!/bin/sh\necho "shim arm-none-eabi-gcc: refusing to run" &amp;gt;&amp;amp;2\nexit 1\n'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; shim/arm-none-eabi-gcc

&lt;span class="nv"&gt;$ PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"shim:&lt;/span&gt;&lt;span class="nv"&gt;$PATH&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; make
shim arm-none-eabi-gcc: refusing to run
make: &lt;span class="k"&gt;***&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;Makefile:17: firmware.elf] Error 1

&lt;span class="nv"&gt;$ PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"shim:&lt;/span&gt;&lt;span class="nv"&gt;$PATH&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; firmwerk verify &lt;span class="nt"&gt;--backend&lt;/span&gt; nix &lt;span class="nb"&gt;.&lt;/span&gt;
Reproducible: all 1 artifact&lt;span class="o"&gt;(&lt;/span&gt;s&lt;span class="o"&gt;)&lt;/span&gt; rebuilt byte-identical.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The native build breaks. The sealed build does not notice, because it never touches the host toolchain. Two machines with different compilers produce different images natively and the same image this way. That is the property you want eight years later, when the laptop is gone and the patch is due.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping instead of replacing
&lt;/h2&gt;

&lt;p&gt;Firmwerk does not translate your build into something else. It handles Make, CMake, Zephyr's west, ESP-IDF, PlatformIO, Arduino and Rust firmware (embassy, RTIC, bare metal), and runs your existing build inside the sealed environment. For Make it follows &lt;code&gt;include&lt;/code&gt; directives and &lt;code&gt;CROSS_COMPILE&lt;/code&gt; prefixes. When a project's Makefile reaches into &lt;code&gt;../../libs&lt;/code&gt;, it seals the whole repository and builds in the subdirectory.&lt;/p&gt;

&lt;p&gt;Developers keep building the way they do. CI runs &lt;code&gt;verify&lt;/code&gt; on top. Nobody has to agree on a new build system before the builds become reproducible.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2hdx7yuzocfsqf6cte4o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2hdx7yuzocfsqf6cte4o.png" alt="Project types and architectures Firmwerk handles" width="800" height="342"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Recovering a lost build from bare .c/.h files
&lt;/h2&gt;

&lt;p&gt;The third failure is the hard one, and it is the usual state of firmware for a model that left the catalogue years ago. Here the approach is closer to archaeology:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Run &lt;code&gt;clang -fsyntax-only&lt;/code&gt; in a loop. Each missing header is stubbed and the pass runs again, so you walk the real include graph, &lt;code&gt;#if&lt;/code&gt; branches included.&lt;/li&gt;
&lt;li&gt;Map well-known headers to libraries: &lt;code&gt;stm32f4xx.h&lt;/code&gt; and &lt;code&gt;core_cm4.h&lt;/code&gt; to STM32 HAL/CMSIS, &lt;code&gt;FreeRTOS.h&lt;/code&gt; to FreeRTOS, &lt;code&gt;lwip/*&lt;/code&gt;, &lt;code&gt;mbedtls/*&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Take the architecture from CMSIS core headers or the vendor part family.&lt;/li&gt;
&lt;li&gt;Collect macros that are used in &lt;code&gt;#if&lt;/code&gt; but never defined (&lt;code&gt;-Wundef&lt;/code&gt;) as candidate &lt;code&gt;-D&lt;/code&gt; flags. The holes in the source show you the old command line.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu1v5azg7t4h54kurx0sd.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu1v5azg7t4h54kurx0sd.gif" alt="The include closure grows pass by pass. Missing headers are named, not hidden." width="720" height="385"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We tried it on step 5 of the same guide, keeping only &lt;code&gt;main.c&lt;/code&gt;, &lt;code&gt;hal.h&lt;/code&gt; and &lt;code&gt;syscalls.c&lt;/code&gt;. &lt;code&gt;hal.h&lt;/code&gt; includes &lt;code&gt;stm32f429xx.h&lt;/code&gt;, which is not there:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ firmwerk detect .
Selected: source-archaeology (low confidence)

Evidence
  - 3 source/header files, no build system &amp;lt;- repo scan
  - include closure via clang (3 passes) &amp;lt;- clang -fsyntax-only
  - library = STM32 HAL/CMSIS      &amp;lt;- include closure

Gaps
  ! MCU/architecture not identified from source; confirm target
  ! build not synthesized (architecture unknown); confirm the target to enable compilation
  ! libraries identified; set FIRMWERK_CACHE and run `firmwerk fetch` to pin: STM32 HAL/CMSIS
  ! library versions not recoverable from source; reproducibility applies from now on
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It does not guess the MCU, because the header that would tell it is the missing one. It names the library instead and asks you to confirm the target. &lt;code&gt;firmwerk fetch&lt;/code&gt; pulls a pinned SDK into a local cache, the closure runs again, and the next layer shows up. For FreeRTOS that is the project's own &lt;code&gt;FreeRTOSConfig.h&lt;/code&gt; and &lt;code&gt;portmacro.h&lt;/code&gt;. Once the target is confirmed, Firmwerk synthesises the compile, and with startup code and a known MCU it generates a linker script and links a full ELF.&lt;/p&gt;

&lt;p&gt;Note the last gap. Reconstruction gets you a reproducible build from today. It cannot tell you which SDK version was used in 2019.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to take from the fridge attacks
&lt;/h2&gt;

&lt;p&gt;A reproducible build does not stop anyone from logging into a controller. It decides whether you can still ship the fix when they do. Four things are worth checking on the next connected product, before it leaves the building:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;No service logins derived from something an attacker can compute.&lt;/strong&gt; A password generated from the date is a password everyone has.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Management interfaces are not meant for the public internet.&lt;/strong&gt; Make the safe setup the default one, and say so in the installation guide.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An update path that still works on the oldest hardware you support.&lt;/strong&gt; Whether a device can still be updated at all is decided years earlier, at design time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every release rebuildable.&lt;/strong&gt; Seal the toolchain at release time and keep the lock next to the image. "Reproducible from now on" and "identical to the image we shipped in 2019" are different claims. The first one becomes routine. The second needs the original toolchain version, which is exactly the information that tends to get lost. So the best time to seal a build is the release you are about to ship.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;We built this as Firmwerk, part of the BreakPilot platform. Docs: &lt;a href="https://docs.breakpilot.com/en/firmwerk/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=d1" rel="noopener noreferrer"&gt;Firmwerk Docs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you build connected controllers and want to find out whether your oldest supported release still builds, write to &lt;a href="mailto:kontakt@breakpilot.com"&gt;kontakt@breakpilot.com&lt;/a&gt;. We are also at SPS in Nuremberg from 24 to 26 November, hall 6, stand 6-253.3.&lt;/p&gt;

&lt;p&gt;Have you had to rebuild an old firmware release, or patch a device that was never meant to be patched? We would like to hear how it went in the comments.&lt;/p&gt;

</description>
      <category>security</category>
      <category>iot</category>
      <category>embedded</category>
      <category>firmware</category>
    </item>
  </channel>
</rss>
