Probably this should be put into a design spec in a github repo. If that is is sufficient, just using the slight adjustments you began to make (and completing them) are enough and supply fairly some safety. If this satisfies your necessities then stop studying here. I’m curious when you have any ideas on this as it seems to be associated to the multiple partition construction that Balena OS makes use of. I will attempt it once more and verify the contents extra carefully.

Since the boot file-system for the firmware is now in a signed disk picture the OS can’t write to this. Due To This Fact, any adjustments to cmdline.txt have to be made before the boot.img file is signed. Hello, we are on the stage in our product growth where we need to lock down the the CM4 to protect firm IP.
- The function of threat modeling is to offer defenders with a systematic evaluation of what controls or defenses must be included, given the character of the system, the probable attacker’s profile, the most probably assault vectors, and the assets most desired by an attacker.
- Initially it was stripping out the sixty four bit kernel as a end result of the instance was for a Pi4 and it wasn’t apparent that I must specify -a sixty four.
- One ought to likely only burn the OTP fuses when the CM4 goes into production use.
- The initrd, which must be packaged with the kernel, takes care of that and at this point I see no apparent cause for it not to work in safe boot mode.
- I am now getting considerably additional into the boot course of now however working right into a filesystem error now.
Set The Kernel Root System
![]()
If all units share the identical, single boot-loader signing key, the compromise of that key makes all units weak for modifications and compromising your IP. I am going to put in writing more followup solutions, I just needed to get began from the foundation. I am now getting considerably additional into the boot process now however working into a filesystem error now. Our secure boot efforts are presently centered on x86 gadget sorts. As Soon As that’s completed, we are prone to look into RPi 4 and CM4 however at this second it isn’t actively being worked on.
Excursion Into Efi Land
My gut tells me all of the recordsdata are current but one thing isn’t pointing it to the proper information. I’m assuming I’m not the one one which needs to make use of the secure boot performance of the CM4 alongside Balena OS so I’m curious if anybody else has already accomplished this and gotten it to work. IMHO, the word “protect” is not very properly defined, and as far as I can inform, it really depends on the category of adversaries you wish to shield against. I might be incorrect as I don’t have a lot of experience around how linux boots and hundreds the kernel but their example hundreds the FS into RAM and then boots from there.

The initrd, which ought to be packaged with the kernel, takes care of that and at this level I see no apparent purpose for it not to work in secure boot mode. Due To This Fact, for the later stages of a safe boot, I guess it good to make use of another key which you’ll changed, up to date and/or revoke for the purpose of transferring the proper to sign a BalenaOS kernel from one user to another and/or revoking that right when needed. Based Mostly on the Safe boot Quickstart implementation, the BCM2711 seems to have only one set of fuses for one boot-loader key. As Soon As the fuses are burnt, a bootloader key can no longer be changed or revoked. One ought to probably only burn the OTP fuses when the CM4 goes into manufacturing use.
Non-bootloader Keys For Kernel And Rootfs Deployment, With Revocation
E.g. in case your gadgets talk to Balena Cloud or your personal OpenBalena server(s), then also the security of those have to be thought of in a menace model. Threat modeling is a process by which potential threats, such as structural vulnerabilities or the absence of applicable safeguards, can be identified and enumerated, and countermeasures prioritized. The function of threat modeling is to supply defenders with a systematic evaluation of what controls or defenses need to be included, given the character of the system, the probable attacker’s profile, the more than likely assault vectors, and the belongings most desired by an attacker. The bullets from “Set the kernel root device” do not https://eurodialogue.org/nato/Smart-defence-or-optimisation-of-security-according-to-NATO apply to balenaOS – we don’t specify the root gadget on the command line because the basis system is decided dynamically between rootA and rootB.
The official RPi usbboot repo has a great tutorial on the method to enable and run safe boot. It might only comprise a copy of boot.scr, extendend with a signature check if you want of check the signature of the kernel (and so on…), and never run scan_dev_for_extlinux earlier than, to not leave any door open where safe boot could be circumvented. Of course how far you want to go (and in turn how massively you’d have to alter BalenaOS into an OS capable of absolutely verified boot) is determined by the risk you might have at hand. Initially it was stripping out the sixty four bit kernel as a result of the example was for a Pi4 and it wasn’t apparent that I need to specify -a 64. As Quickly As I worked via that downside the contents of the boot.img appeared to match the resin-boot partition. I observed that the Balena cmdline.txt doesn’t have a root specified.
Step The Place Kyle’s Safe Boot Try Fails To Boot (and The Place No Signature Is Checked):
Dm-crypt and the safe boot functionality should get us there if I’m not mistaken. As far as protecting company IP we’re properly conscious we need to secure the system while running (ssh, console, etc). This exercise is excited about preventing somebody from pulling the CM4 or EEMC from the CM4 to gain entry to the knowledge on it. @anujdeshpande It would be helpful to see what the Balena group member who’s engaged on secure boot for EFI on x86 has come up with so far. I would have split this into extra elements, but the boards restricted me to 3 answers.
