Abuse Elevation Control Mechanism: Sudo and Sudo Caching T1548.003

Tactic: Privilege Escalation

Adversaries may perform sudo caching and/or use the sudoers file to elevate privileges. Adversaries may do this to execute commands as other users or spawn processes with higher privileges.

Events covered

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

ProviderEventTitle
Sysmon-for-LinuxEvent ID 1Process Create
Sysmon-for-LinuxEvent ID 11File created

Authoring guide

Patterns shared across the 58 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 (38 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
CommandLine28contains 27, eq 10, wildcard 1sudo, --eval, -e, -wrapper, exec
event.type14eq 11, ne 2, in 1start, change, deletion, creation
process_name14eq 8, in 7, starts_with 2sudo, bash, ., bsd-write, bun
EventType13in 7, eq 6exec, ProcessRollup2, exec_event, creation, rename
host.os.type13eq 12, in 1
TargetFilename9starts_with 3, wildcard 3, eq 2, contains 1, ends_with 1, in 1/etc/doas.conf, /bin/sudo, /boot/efi/efi/*/grub.cfg, /boot/grub/grub.cfg, /boot/grub2/grub.cfg
process.args8eq 4, in 4, wildcard 3, contains 1, ends_with 1, ne 1* /dev/shm/* , * /home/*, * /run/*, *NOPASSWD*ALL*, --
sourcetype5eq 5auditd
parent_process_name4in 4, wildcard 2bash, .*, bun, csh, dash
Image3ends_with 1, starts_with 1, wildcard 1/dev/shm/*, /home/*/*, /run/user/*, /usr/bin/dpkg, process.command_line
process.group.id3eq 3, ne 10
process.user.id3eq 3, ne 10
type3eq 3CWD, PATH, SYSCALL
ParentImage2wildcard 2./*, /dev/shm/*, /home/*/*
container.id2starts_with 2?

Top indicator values (563 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
CommandLinecontains
sudo
2223
CommandLinecontains
--eval
33
CommandLinecontains
-e
23
CommandLinecontains
-wrapper
23
CommandLinecontains
exec
24
CommandLinecontains
system
27
event.typeeq
start
11606
sourcetypeeq
auditd
556
EventTypeeq
exec
4171
EventTypein
ProcessRollup2
4117
EventTypein
exec
4171
EventTypein
exec_event
4139
EventTypein
start
4134
EventTypein
creation
323
EventTypein
executed
388
EventTypein
process_started
374
EventTypein
rename
218
process_nameeq
sudo
44
process_namein
sudo
411
parent_process_namein
bash
330
parent_process_namein
csh
326
parent_process_namein
dash
327
parent_process_namein
fish
326
parent_process_namein
ksh
326
parent_process_namein
sh
330
parent_process_namein
tcsh
326
parent_process_namein
zsh
329
process.group.ideq
0
35
process.user.ideq
0
35
ParentImagewildcard
./*
22

Exclusions (106 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
Imagein
./usr/bin/podman
2
Imagein
/usr/bin/dockerd
2
Imagein
/usr/bin/microdnf
2
Imagein
/usr/bin/podman
2
Imagein
/usr/bin/rpm
2
Imagein
/usr/local/bin/dockerd
2
Imagein
/usr/sbin/dockerd
2
Imagein
./usr/lib/snapd/snap-update-ns
1
Imagein
./usr/libexec/snapd/snap-update-ns
1
Imagein
/bin/dnf
1
Imagein
/bin/dnf-automatic
1
Imagein
/bin/dockerd
1
Imagein
/bin/dpkg
1
Imagewildcard
./snap/snapd/*/usr/lib/snapd/snap-update-ns
2
Imageends_with
/usr/bin/dpkg
1

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 5 rules

Elastic 17 rules

Splunk 35 rules

Panther 1 rule