Pre-OS Boot T1542

Tactics: Stealth, Persistence

Adversaries may abuse Pre-OS Boot mechanisms as a way to establish persistence on a system. During the booting process of a computer, firmware and various startup services are loaded before the operating system. These programs control flow of execution before the operating system takes control.

Events covered

5 catalog events are tagged with this technique by at least one rule.

Authoring guide

Patterns shared across the 17 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (17 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
event.type6eq 6start, creation
host.os.type6eq 6
process_name6eq 4, in 2cp, dracut, grub-mkconfig, grub2-mkconfig, mountvol.exe
TargetFilename5contains 1, ends_with 1, eq 1, in 1, starts_with 1, wildcard 1*\\efi\\boot\\bootmgfw.efi, *\\efi\\boot\\bootx64.efi, .dat, /boot/efi/efi/*/grub.cfg, /boot/grub/grub.cfg
EventType4in 4exec, ProcessRollup2, exec_event, start
Image4is_not_null 2, ends_with 1, eq 1\bcdedit.exe, c:\windows\system32\wpbbin.exe
CommandLine3contains 1, in 1, ne 1* /S*, *-S*, delete, deletevalue, import
ParentImage3is_not_null 3
DestinationPort2eq 1, ne 10, 21, 22, 69
OriginalFileName2eq 2bcdedit.exe, mountvol.exe
All_Traffic.dest_category1ne 1common_software_repo_destination
All_Traffic.src_category1eq 1network, router, switch
All_Traffic.transport1eq 1tcp, udp
Details1is_not_null 1
process.args1starts_with 1/boot/

Top indicator values (55 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
EventTypein
exec
4171
EventTypein
start
4134
EventTypein
ProcessRollup2
3117
EventTypein
exec_event
3139
EventTypein
executed
188
event.typeeq
start
4606
event.typeeq
creation
245
All_Traffic.dest_categoryne
common_software_repo_destination
1
All_Traffic.src_categoryeq
network
1
All_Traffic.src_categoryeq
router
1
All_Traffic.src_categoryeq
switch
1
All_Traffic.transporteq
tcp
14
All_Traffic.transporteq
udp
1
CommandLinecontains
delete
123
CommandLinecontains
deletevalue
1
CommandLinecontains
import
14
CommandLinecontains
network
13
CommandLinecontains
safeboot
13
CommandLinein
* /S*
1
CommandLinein
*-S*
1
CommandLinene
unknown
13
DestinationPorteq
21
13
DestinationPorteq
22
1
DestinationPorteq
69
1
DestinationPortne
0
17
Imageends_with
\bcdedit.exe
15
Imageeq
c:\windows\system32\wpbbin.exe
1
OriginalFileNameeq
bcdedit.exe
14
OriginalFileNameeq
mountvol.exe
1
TargetFilenamecontains
\\efi\\boot\\
1

Exclusions (184 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
parent_process_namein
sudo
3
Imagein
./usr/bin/podman
2
Imagein
/bin/autossl_check
2
Imagein
/bin/chef-client
2
Imagein
/bin/dnf
2
Imagein
/bin/dnf-automatic
2
Imagein
/bin/dockerd
2
Imagein
/bin/dpkg
2
Imagein
/bin/dpkg-divert
2
Imagein
/bin/install
2
Imagein
/bin/microdnf
2
Imagein
/bin/pacman
2
Imagein
/bin/pamac-daemon
2
Imagein
/bin/podman
2
Imagein
/bin/puppet
2

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Platform (all)
Domain (all)

Sigma 3 rules

Elastic 7 rules

Splunk 7 rules