In August 2026 I started as a Product Security Intern at ABB in Bengaluru. Until then this blog was about digital forensics: deleted files, Sysmon logs, a water utility’s breach. This post is about the change, what the work is, and how the first months have gone.
What I do
Industrial devices, such as the equipment that protects and controls electrical networks, sit in substations and plants for decades, and they receive firmware updates over that whole life. If a device cannot tell its manufacturer’s firmware from an attacker’s, every other security control on it can be switched off by whoever replaces the firmware.
My work is on secure boot for embedded devices. Secure boot is a chain of checks at power-up, and each link starts the next one only if it trusts it.
The first link is not ours. When power comes on, the chip runs a small program that the chip maker wrote into its ROM (read-only memory) at the factory. This ROM bootloader is hard-coded in the chip. Nobody can change it, not even the device maker. It reads the chip’s boot settings and jumps to the address where the device maker’s own first-stage bootloader sits in flash.
That first-stage bootloader is where our work starts. Its flash area is locked before the device ships, so it cannot be rewritten either. On some chips the ROM bootloader also checks a signature on it. On others the lock alone protects it. Before our bootloader starts the main firmware, it checks a digital signature on that firmware. If the signature does not match the manufacturer’s public key, the firmware does not run.
sequenceDiagram
participant ROM as ROM bootloader<br/>(hard-coded in the chip)
participant BL as First-stage bootloader<br/>(ours, in locked flash)
participant FW as Firmware<br/>(updatable flash)
Note over ROM: Power on
ROM->>ROM: read the chip's boot settings
ROM->>BL: jump to the bootloader's start address
BL->>FW: read the firmware image
BL->>BL: hash the image and check its signature<br/>with the public key the bootloader carries
alt signature matches
BL->>FW: start the firmware
else no match
BL->>BL: refuse to start it
endThe work touches three areas:
- Standards to mechanisms. IEC 62443 is the main security standard for industrial automation. Part 4-2 sets out requirements for components, including that a device should verify the authenticity of software before running it. The work is to map each relevant requirement to a concrete mechanism that meets it, and to a test that shows it does.
- The first-stage bootloader. Many modern microcontrollers can split the chip into a secure side and a non-secure side in hardware. In a typical secure boot design, the bootloader lives on the secure side and the application runs on the other.
- Building and signing. In a mature setup, production firmware is built by a controlled build system and signed with a key held in protected hardware, so that nobody can copy it. Fitting new firmware into a process like that is a project of its own.
Why it matters now
Until recently, secure boot in industrial devices was good practice. In the EU it is becoming a condition of sale.
The law: the Cyber Resilience Act
The Cyber Resilience Act (Regulation (EU) 2024/2847) covers almost every product with software in it that is sold in the EU, industrial equipment included. It is in force already, and its obligations arrive in stages:
| Date | What applies | Where in the Act |
|---|---|---|
| 10 December 2024 | The Act enters into force | Article 71(1) |
| 11 June 2026 | Rules for the bodies that assess conformity | Article 71(2), Chapter IV |
| 11 September 2026 | Manufacturers must report actively exploited vulnerabilities and severe incidents, for products already on the market too | Article 71(2), Article 14 |
| 11 December 2027 | Everything else. A new product must meet Annex I to be sold in the EU | Article 71(2), Article 6 |
The last date is the one that matters for firmware. From 11 December 2027, a product can be made available on the EU market only if it meets the essential cybersecurity requirements in Annex I. This is Article 6:

One of those requirements, Annex I, Part I, point 2(f), is about integrity. Firmware is a program, so it is covered:

And Article 71 sets the dates:

Screenshots: Regulation (EU) 2024/2847, Official Journal of the European Union, L series, 20.11.2024, from EUR-Lex. Highlighting added. © European Union, https://eur-lex.europa.eu, reused with acknowledgement of the source as the EUR-Lex legal notice allows.
The standard: IEC 62443-4-2 and security level 2
The Act does not name secure boot. It says what must be true, not how. Industrial automation already has a standard that gets down to mechanisms: IEC 62443. Part 4-2 sorts its requirements into security levels. At SL 1, a device must resist casual or accidental manipulation. At SL 2, it must resist manipulation “by someone using simple means with low resources, generic skills and low motivation”.
For embedded devices, requirement EDR 3.14, “Integrity of the boot process”, says the device shall check the integrity of its firmware, software and configuration before using them. It has one enhancement, and the security level decides whether it applies:
| Security level | What EDR 3.14 asks for, in short | Is a checksum enough? |
|---|---|---|
| SL 1 | Check the integrity of the boot firmware, software and configuration before use | Yes. Accidental corruption is the threat |
| SL 2 | The above, plus enhancement (1): use the manufacturer’s roots of trust to check they are authentic | No. Anyone can recompute a checksum. Only the manufacturer can produce a valid signature |
| SL 3 and SL 4 | The same as SL 2 | No |
Summarised from IEC 62443-4-2:2019, section 13.9. The standard itself is copyrighted by the IEC and sold through national standards bodies, so it is paraphrased here rather than reproduced.
In plain terms, at SL 2 the device must check a signature that only the manufacturer can produce. That is secure boot.
flowchart LR
CRA["Cyber Resilience Act<br/>WHAT must be true:<br/>programs protected against<br/>unauthorised modification"] --> STD["IEC 62443-4-2, SL 2<br/>HOW to show it:<br/>EDR 3.14 (1), authenticity<br/>of the boot process"]
STD --> SB["Secure boot<br/>THE MECHANISM:<br/>a signature check<br/>before the firmware runs"]The two are being brought together. European versions of IEC 62443 parts 4-1 and 4-2 are being prepared so that meeting them can count as evidence of meeting the Act. They had not been published when I wrote this, so for now IEC 62443 is the obvious route to the Act’s requirements, not yet a formal one.
The limits
Two limits are worth stating. The Act covers products placed on the market from December 2027. Devices sold before then are covered only if they are substantially modified afterwards (Article 69). The reporting duty of Article 14 is the exception: it applies to products already on the market too. And the Act applies to the EU market only, although a manufacturer that sells worldwide may not want a separate product for Europe.

How it has gone so far
Slower than I expected in some places, faster in others.
The first weeks were reading. Reference manuals for modern microcontrollers can run to thousands of pages. I learnt to read them the way I read a disk image: go to the structure first, then to the exact bytes that matter, and never trust a summary over the source.
One of the most satisfying moments so far was watching a bootloader check the signature on a test application and start it. But that check turns out to be the small part. Most of the work is everything around it: how the application gets the hardware it needs once the bootloader hands over, how firmware images are built, and why signing keys belong in a protected signing service rather than on a developer’s laptop.
Learning how such a signing service works changed how I thought about it. The service never needs to see the firmware. The build computes a short fingerprint of the image, a 32-byte hash, and sends only that. The service signs the hash inside its protected hardware and sends the signature back. The build then places the signature into the image where the bootloader will look for it. The key never leaves the service, and the image never leaves the build.
sequenceDiagram
participant Build as Build server
participant HSM as Signing service (key in hardware)
participant Dev as First-stage bootloader (on the device)
Build->>Build: SHA-256 of the firmware image (32 bytes)
Build->>HSM: the 32-byte hash only
HSM-->>Build: signature
Build->>Build: put the signature into the image
Build->>Dev: signed image, at update time
Dev->>Dev: hash the image again, check the signature with the public keyThat also showed me a trap. A signing tool that hashes whatever it is given will happily hash a hash. Hand it a fingerprint, and it signs the fingerprint of the fingerprint, which no bootloader will ever accept. Nothing fails at signing time. The mistake only shows when the device refuses the image.
You can see it with OpenSSL and a throwaway test key. digest.bin holds the 32-byte SHA-256 of firmware.bin:
# Right: sign the 32 bytes as a digest
openssl pkeyutl -sign -inkey key.pem -in digest.bin -out sig-right.der
# Trap: a "sign this file" command hashes its input first,
# so it signs SHA-256(digest), not the digest
openssl dgst -sha256 -sign key.pem -out sig-trap.der digest.bin
# The device checks the signature against the image itself
openssl dgst -sha256 -verify pub.pem -signature sig-right.der firmware.bin
openssl dgst -sha256 -verify pub.pem -signature sig-trap.der firmware.bin
Verified OK
Verification failure
Both commands succeeded when signing. Only the check against the image tells them apart. So the first question to ask of any signing tool is where the hash is made.
What surprised me
Most failures are silent. In forensics, when something is missing, there is usually a trace of it going missing. On a microcontroller with a secure/non-secure split, a setting written from the wrong side can simply be ignored. No error, no crash. The code carries on as if the write had worked, and the symptom shows up somewhere else entirely. I now read back every register I care about, the way I would hash an image before and after acquisition.
The cryptography is the easy part. Verifying a signature is a few library calls. The hard questions are around it. What happens if power fails during an update? What if a correctly signed image is also a broken one? What if an attacker installs an older version that was signed for real? Each needs its own answer, and most of those answers are design decisions, not code.
The right answer can look like a wrong one. A test note I had written said a bootloader would print a particular value while checking a signature. The board printed a value one higher, and for a moment that looked like a failure. It was not. The value is the signature’s length. This kind of signature (ECDSA, stored in a format called DER) comes out at 70, 71 or 72 bytes, depending on the numbers inside it. My note had been written from one signature that happened to be 71 bytes. The board was right. The note was too narrow.
A change made is not a change arrived. Before code goes up for review, I compared what was actually pushed with my own working copy. A clean-up I had done earlier was not in it. The clean-up was real, but it had been done in an older copy of the code and never carried across. Since then I check the copy that will be reviewed, and nothing else.
Check what was built, not what you pushed. A build server builds whatever is newest on a branch when the job starts. Once, a build failed for a reason that had nothing to do with my change. Someone had added a commit after mine, and the server built that one. The first lines of a build log say exactly which version was checked out. I now read those before I read the error, and compare them with what I think I pushed:
git fetch origin
git rev-parse origin/my-branch # the commit the server has now
git log --oneline -3 origin/my-branch
Two files can look the same and still differ. A change I had prepared would not apply to a file that looked identical on screen. One copy had Windows line endings, an invisible extra character at the end of every line. To the tool, and to a hash, they were different files:
printf 'enable_secure_boot = 1\n' > lf.txt
printf 'enable_secure_boot = 1\r\n' > crlf.txt
cat lf.txt crlf.txt
shasum -a 256 lf.txt crlf.txt
file crlf.txt
enable_secure_boot = 1
enable_secure_boot = 1
80b9654327dbbdd1cb26b7fd43b2d8040d498cc44d6e51728501d88e12043e69 lf.txt
ff4f517b0a426eb595599008579aa6b70544c034c20f1dc4d16260c0144025f6 crlf.txt
crlf.txt: ASCII text, with CRLF line terminators
Forensics teaches the same thing: compare hashes, not appearances.
A requirement is not a test. A standard says what must be true. It does not say how to show it. Turning a requirement like “verify software authenticity” into something you can run on a board and watch fail is where most of the thinking goes.
Checking work I did not write. I use the company’s approved AI coding assistant for mechanical tasks, and I read and test what it produces before it goes anywhere. I wrote about why in an earlier post, about a tool whose main check had never checked a file. The same habit applies here, with higher stakes.
How forensics carries over
More than I expected. A forensic examiner and a secure boot chain ask the same question: is this really what it claims to be? The examiner answers it with hashes, timestamps and the raw bytes. The bootloader answers it with a signature. In both, the answer is only as good as the thing you are checking against, and in both, an attacker’s best move is usually not to break the check but to go around it.
I still study forensics, and it will stay the main subject here.
What comes next
One question I keep returning to is updates. A device in the field needs new firmware over its life, and an update can be cut off halfway by a power failure. If there is room for only one copy of the firmware, a half-written image fails the signature check, and the device has nothing it is allowed to start. Keeping two copies, and replacing the old one only after the new one has been checked, avoids that. It costs space, though. And if the bootloader itself can never be changed, the choice has to be made before it ships.
With one copy of the firmware:
flowchart LR
A1["Old firmware"] -->|"update starts:<br/>erase"| A2["Half-written image"]
A2 -->|"power fails"| A3["Signature check fails.<br/>Nothing to start"]With two copies:
flowchart LR
B1["Old firmware<br/>in copy A"] -->|"update starts"| B2["New image written<br/>into copy B"]
B2 -->|"power fails"| B3["Copy A<br/>still starts"]
B2 -->|"copy B checked,<br/>passes"| B4["Switch to<br/>copy B"]I will write about the ideas behind this kind of work using public tools, public documentation and my own test files. The first will be a post on what a signature check actually protects against, such as tampered images, wrong keys and rollback to old versions, and what it does not. Anything about ABB’s products, projects and code stays inside ABB.
If you work on secure boot or IEC 62443 and see something I have got wrong, I would like to hear it.
Sources
- Regulation (EU) 2024/2847 (Cyber Resilience Act), Articles 6, 14, 69 and 71, and Annex I: EUR-Lex
- European Commission, CRA reporting obligations
- IEC 62443-4-2:2019, Security for industrial automation and control systems, Part 4-2: Technical security requirements for IACS components, section 13.9 (EDR 3.14)
The views in this post are my own and do not represent ABB.