Earlier Macs had the possibility to check the EFI firmware or even create a complete dump of it from within the OS:
www.macrumors.com
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?

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...


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.

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?