VOOZH about

URL: https://thenewstack.io/honey-i-secured-your-boot-edge-trusted-boot-with-kairos/

⇱ Trusted Boot: What to Know About Securing Devices at the Edge - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2024-03-14 07:15:34
Trusted Boot: What to Know About Securing Devices at the Edge
sponsor-spectro-cloud,sponsored-post-contributed,
Edge Computing / Security

Trusted Boot: What to Know About Securing Devices at the Edge

Securing the boot process matters more than you think.
Mar 14th, 2024 7:15am by Ettore di Giacinto
👁 Featued image for: Trusted Boot: What to Know About Securing Devices at the Edge
Felix Wong, CC BY 4.0 DEED.
Spectro Cloud sponsored this post.

To protect the vital workloads and data that run on edge compute devices, you must start by securing those devices when they’re at their most vulnerable — the moment they boot up.

If an attacker can physically tamper with your device and modify the boot hardware, firmware, Linux bootloader or operating system (OS), all the security measures you apply later, higher up the stack, are that much weaker. For example, anti-malware and access controls haven’t even loaded at that point.

That’s not such a problem in the data center, where devices are protected by physical security. But many edge computing deployments are installed in unattended or insecure locations, meaning they’re at continual risk of physical attacks or even being stolen and probed at leisure by a determined adversary. Edge devices, including ATMs, point-of-sale systems, medical equipment and Internet of Things (IoT) devices, are on the true front line of cybersecurity battles.

There’s one more factor at play here: Increasingly, edge devices not only hold sensitive data but also valuable intellectual property, such as artificial intelligence (AI) models.

Imagine that malicious actors steal a defense drone. If no security measures are in place, they could reverse-engineer it, open it up and get all the precious data it contains, including how the OS and the model it uses to recognize targets work. The adversary could even alter the device and put it back out into the field.

What Does It Mean to ‘Secure the Boot’?

In these scenarios, you need a mechanism that resists tampering with the device’s critical boot components and verifies their state at the moment of boot, preventing any tampered systems from loading the OS and decrypting any sensitive user data.

The goal is simple but complex to achieve: You must prevent unauthorized access to the software or the data generated by the machine and make it impossible for the machine to execute modified code.

What’s more, the device must be able to verify its “good state” and authorize its own boot and decryption of user partitions without any external input; when you’re talking about thousands of headless edge devices, you can’t require a human user to enter a password, physical key or biometric to OK the boot.

The complex and cutting-edge mechanisms that achieve this goal (in full or in part) are known by terms like secure boot, verified boot and trusted boot, and they’re used in conjunction with full-disk encryption (FDE).

Defining the Terms

There’s a lot of confusion around these terms, and they may be totally new to you — so let’s get things clear.

FDE stands for full-disk encryption. It is a security measure that encrypts the entire contents of a disk drive, including the OS, system files and user data. FDE’s purpose is to protect data stored on the disk from unauthorized access in the event the device is stolen or lost.

Secure boot is a security feature in modern computer systems that ensures only properly signed and authenticated OSes are allowed to run during the boot process. When secure boot is enabled, it helps prevent loading malicious or unauthorized code at the early stages of the system startup, thus helping protect the integrity of the boot process.

Measured boot involves creating a record, or measurements, of each step in the boot process and storing the measurements in specific hardware dedicated to cryptographically secure operations (a trusted platform module, or TPM) or similar secure storage. This allows the system to verify the integrity of each component of the boot process and detect any unauthorized changes. Measured boot provides comprehensive and continuous security checks throughout the boot sequence.

By combining secure boot, measured boot and FDE, you can guarantee a system was not tampered with and the user data is protected against cold attacks. This combination of technologies stacked together is called trusted boot. You can learn more about trusted boot in this detailed blog post by Lennart Poettering (the author of systemd).

How Kairos Implements Trusted Boot

Several organizations are working toward the different elements needed for effective Linux trusted boot, from chipmakers like Intel to a range of open source and commercial teams, such as Canonical with Ubuntu and Talos Linux.

At Kairos, we’ve been working on incorporating trusted boot into our open source codebase, too, and from there into Spectro Cloud’s Palette Edge. This continues the work that we started last year with Secure Edge-Native Architecture (SENA) — a joint project between Spectro Cloud and Intel to deliver edge computing security. Soon you can use our implementation when deploying Linux to your edge devices, the foundation for your edge Kubernetes stacks.

When combined with the other architectural features that make Kairos unique, this trusted boot capability will make Kairos a strong choice for safe and secure edge computing. You’ll be able to customize your system from containers and build out your OS and Kubernetes stack, with the resulting single container images being more secure and easier to manage through atomic A/B upgrades and immutability.

To achieve trusted boot, here’s what we do.

Instead of using a multistage “pivot” to load large file systems, from an initial RAMdisk to a final system, we use unified kernel image (UKI) files. These are small (under 300MB) single binary files that can be verified and contain the kernel and all other elements needed to minimally boot the system and decrypt the other partitions.

The UKI images are stored in the EFI partition; the firmware directly loads the UKI files as standard EFI files. UKI is a file specification tailored to achieve a tamperproof system and encryption of user data bound to the silicon by relying on hardware capabilities. The advantage of using EFI files is they can be signed and verified with the secure boot mechanism and measured as a single file during boot, enhancing the system’s overall security posture.

As part of this re-architecture, instead of the old faithful Grub bootloader, we use the more modern systemd-boot, which has a smaller attack surface and plays well with tools like systemd-measure and ukify that help with trusted boot.

👁 Diagram of systemd-boot-based architecture

Trusted Boot on TPM-Equipped Hardware

When the device boots, several steps happen sequentially.

Many hardware platforms use a Core Root of Trust for Measurements (CRTM), which is the very first thing that boots, even before the firmware. The CRTM gets a hash of the firmware and sends it to the TPM chip, which measures the running software and is a requirement for trusted boot. The TPM chip then loads the firmware/BIOS.

The TPM takes note of the measurement and stores the hash in a bank of multiple platform configuration registers (PCRs). In order to store measurements, the TPM chip extends the banks from the previous values, as these changes to the stack are easy to recognize during the boot.

👁 Diagram of trusted boot on TPM equipped hardware

Next, the BIOS or firmware measures the subsequent stage (bootloader or UKI) and sends it to the TPM; then it loads the UKI and continues booting.

Once the TPM is asked to release an encryption key to unseal the full disk encryption, it will check if the measurements it has are valid. If a bootloader is present, it will have already measured the UKI files, and measurement also happens when initrd starts and when the running system is ready to check eventual manipulations (e.g., kernel boot command line). The process is also bound to the secure boot signatures, so any manipulation of the UKI files would be allowed only by the key holders.

If a malicious attacker tries to load custom software or modify an image in any way, they must extend the PCR value and align it with the value it would have had following an expected boot. The cryptographic robustness of the hash algorithm makes achieving this computationally expensive, thereby helping to support security.

If the firmware or bootloader have been tampered with, the hash values stored in the PCR won’t match expected measurements, and the system will flag an alert and prevent boot from happening — intentionally bricking the host device as a failsafe.

Learn More

Trusted boot is one of many recommended security techniques — but it’s critical to ensuring you can trust the integrity of your device, particularly when it’s deployed in the field.

I’ve just scratched the surface of trusted boot as a concept, how it works and the architectural details of the Kairos implementation that contribute to the overall security posture. If you’d like to learn more:

Check out our CNCF presentation, available on demand.

Attend our panel about special-purpose operating systems at KubeCon Paris on March 22.

Learn more secure edge architectures including trusted boot, by downloading the SENA white paper.

Check out Kairos’ trusted-boot architectural documentation and try it out yourself.

Spectro Cloud uniquely enables organizations to manage Kubernetes in production, at scale. Our Palette management platform gives effortless control of the full Kubernetes lifecycle, across clouds, data centers, bare metal and edge environments.
Learn More
The latest from Spectro Cloud
TRENDING STORIES
Ettore di Giacinto is head of open source at Spectro Cloud. He's spent more than 15 years as a developer focused on contributing to and maintaining open source projects, including Gentoo Linux. Most recently Ettore was staff software engineer at...
Read more from Ettore di Giacinto
Spectro Cloud sponsored this post.
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Root.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.