#uefi #validation #command-line-tool #github #cli #parser #sbat

app sbat-tool

UEFI Secure Boot Advanced Targeting (SBAT) command-line tool

8 releases (4 breaking)

0.5.1 Mar 18, 2024
0.5.0 Aug 7, 2023
0.4.0 Jul 8, 2023
0.3.2 Jul 1, 2023
0.1.0 Apr 14, 2023

#974 in Command line utilities

Download history 1/week @ 2024-02-22 12/week @ 2024-02-29 120/week @ 2024-03-07 132/week @ 2024-03-14 23/week @ 2024-03-21 8/week @ 2024-03-28 1/week @ 2024-04-04

165 downloads per month

MIT/Apache

66KB
1K SLoC

sbat-tool

Crates.io

This is a tool for working with SBAT. It supports extracting the .sbat section of a PE executable and either printing it directly, or validating that it parses correctly and pretty-printing it.

Install with:

cargo install sbat-tool

Example

$ sbat-tool validate /boot/efi/boot/bootx64.EFI
+-------------+-----+--------------------+---------+-------------+------------------------------------------------------+
| component   | gen | vendor             | package | version     | url                                                  |
+-------------+-----+--------------------+---------+-------------+------------------------------------------------------+
| sbat        | 1   | SBAT Version       | sbat    | 1           | https://github.com/rhboot/shim/blob/main/SBAT.md     |
+-------------+-----+--------------------+---------+-------------+------------------------------------------------------+
| shim        | 1   | UEFI shim          | shim    | 1           | https://github.com/rhboot/shim                       |
+-------------+-----+--------------------+---------+-------------+------------------------------------------------------+
| shim.redhat | 1   | The Fedora Project | shim    | 15.4-5.fc33 | https://src.fedoraproject.org/rpms/shim-unsigned-x64 |
+-------------+-----+--------------------+---------+-------------+------------------------------------------------------+

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Disclaimer

This project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.

Dependencies

~6MB
~115K SLoC