Earlier Macs had the possibility to check the EFI firmware or even create a complete dump of it from within the OS:
This was discontinued with T2 Macs:
Anyone knows the situation in case of the Arm Macs?
Is there a /usr/libexec/firmwarecheckers/eficheck/eficheck and does it work?
Can the firmware maybe be checked/dumped from DFU mode?
macOS High Sierra Automatically Performs Security Check on EFI Firmware Each Week
Mac users who upgrade to macOS High Sierra will benefit from a significant new security feature that works in the background. macOS High Sierra...
www.macrumors.com
How High Sierra checks your EFI firmware
When did your Mac last check its firmware? Probably only a few days ago. How eficheck keeps our Macs stable and safe.
eclecticlight.co
This was discontinued with T2 Macs:
Anyone knows the situation in case of the Arm Macs?
Is there a /usr/libexec/firmwarecheckers/eficheck/eficheck and does it work?
Can the firmware maybe be checked/dumped from DFU mode?