T1542 Pre-OS Boot
PersistenceStealthon attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0278 Detection Strategy for T1542 Pre-OS Boot
AN0774 Windows
Unusual modification of boot records (MBR, VBR) or EFI partitions not associated with legitimate patch cycles or OS upgrades. Registry or WMI events associated with firmware update tools executed from unexpected parent processes. API calls (e.g., DeviceIoControl) writing directly to raw disk sectors. Subsequent abnormal boot configuration changes followed by unsigned driver loads.
| MITRE log source | In Microsoft Sentinel |
|---|---|
WinEventLog:SecurityEventCode=4688 |
The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only. |
WinEventLog:SysmonEventCode=11 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
WinEventLog:SysmonEventCode=9 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
AN0775 Linux
Detection of writes to /boot or EFI directories outside of expected package manager updates. Monitoring kernel log and auditd events for attempts to overwrite bootloader binaries (e.g., grub, shim). Unexpected execution of efibootmgr or dd writing to /dev/sdX devices followed by boot parameter changes.
| MITRE log source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLopen, write: Modification of /boot/grub/* or /boot/efi/* | Not mapped to Sentinel yet. |
auditd:EXECVEexec: Execution of dd, efibootmgr, or flashrom modifying firmware/boot partitions | Not mapped to Sentinel yet. |
AN0776 macOS
Abnormal modification of EFI firmware binaries in /System/Library/CoreServices/ or NVRAM parameters not associated with OS updates. Unified logs capturing calls to bless or nvram commands executed from untrusted parent processes. Sudden unsigned kext loads after EFI variable tampering.
| MITRE log source | In Microsoft Sentinel |
|---|---|
macos:unifiedlogExecution of bless or nvram modifying boot parameters | Not mapped to Sentinel yet. |
macos:unifiedlogModification of /System/Library/CoreServices/boot.efi | Not mapped to Sentinel yet. |
AN0777 Network Devices
Unexpected firmware image uploads via TFTP/FTP/SCP. Configuration changes modifying boot image pointers. Logs showing boot variable redirection to non-standard images. Anomalous reboots immediately following firmware changes not tied to patch schedules.
| MITRE log source | In Microsoft Sentinel |
|---|---|
networkdevice:configBoot variable modified to point to non-standard or unsigned image | Not mapped to Sentinel yet. |
networkdevice:firmwareUnexpected firmware image upload events via TFTP/FTP/SCP | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (0)
No Content Hub rule is tagged with this technique.
In Sigma rules
3 SigmaHQ community rules name it or one of its sub-techniques in their tags.
- UEFI Persistence Via Wpbbin - FileCreation
- UEFI Persistence Via Wpbbin - ProcessCreation
- Potential Ransomware or Unauthorized MBR Tampering Via Bcdedit.EXE
Mitigations
M1026Privileged Account ManagementM1035Limit Access to Resource Over NetworkM1046Boot IntegrityM1047AuditM1051Update Software
Sub-techniques
T1542.001System FirmwareT1542.002Component FirmwareT1542.003BootkitT1542.004ROMMONkitT1542.005TFTP Boot
MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.