-
Notifications
You must be signed in to change notification settings - Fork 217
Closed
Labels
buildAffects or requires changes in the build systemAffects or requires changes in the build systemsecurityFixing this would improve system securityFixing this would improve system security
Description
The "img/final.fwid" files are a second source of truth and should be eliminated in favor of better tooling. They are present in Hubris archives but not in Bootleby archives.
The hubtools crate should include firmware ID (fwid) calculations from an archive or raw binary file. See rot-fwid and the fwid calculations in hubris build/xtask/src/dist.rs:package().
SoC quirks come into play so that data exfiltration can be detected:
- STM32H753: the full flash bank is padded with 0xff to the end
- LPC55S69: the last SoC-sized flash page of the image is padded with 0xff and the unprogrammed pages to the end of the flash area are not readable and not part of the hash.
Metadata
Metadata
Assignees
Labels
buildAffects or requires changes in the build systemAffects or requires changes in the build systemsecurityFixing this would improve system securityFixing this would improve system security