binarly-io / fwhunt-scan

Tools for analyzing UEFI firmware and checking UEFI modules with FwHunt rules
GNU General Public License v3.0
212 stars 30 forks source link

Not easy to get the metadata out of UefiRule #16

Closed hughsie closed 3 years ago

hughsie commented 3 years ago

At the moment I'm using it like this:

            uefi_rule = UefiRule(rule_fn)
            uefi_rule_name = uefi_rule._uefi_rule['meta']['name']
            uefi_rule_description = uefi_rule._uefi_rule['meta']['description']

This is a bit cumbersome. Perhaps we could have some nice property helpers like uefi_rule.name?