Create or Modify System Process: Systemd Service T1543.002

Tactics: Persistence, Privilege Escalation

Adversaries may create or modify systemd services to repeatedly execute malicious payloads as part of persistence. Systemd is a system and service manager commonly used for managing background daemon processes (also known as services) and other system resources. Systemd is the default initialization (init) system on many Linux distributions replacing legacy init systems, including SysVinit and Upstart, while remaining backwards compatible.

Events covered

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

ProviderEventTitle
Linux-AuditdEvent ID 1302PATH
Linux-AuditdEvent ID 1309EXECVE
Sysmon-for-LinuxEvent ID 1Process Create
Sysmon-for-LinuxEvent ID 11File created

Authoring guide

Patterns shared across the 14 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 (23 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
EventType9in 5, eq 4creation, rename, exec, file_create_event, already_running
host.os.type8eq 8
TargetFilename6wildcard 4, starts_with 2, ends_with 1/.config/sysmon/sysmon.py, /.config/systemd/user/sysmon.service, /boot/efi/efi/*/grub.cfg, /boot/grub/grub.cfg, /boot/grub2/grub.cfg
Image5contains 2, ends_with 1, eq 1, ne 1, wildcard 1/python3, /curl, /tar, /tmp/newroot/bin/curl, /usr/bin/systemctl
event.type5eq 4, ne 1start, creation, deletion, info
file.extension3eq 2, in 1service, swp, timer
file.name2eq 1, in 1.bash_aliases, .bash_login, .bash_logout, aliyun.service, apache4.service
parent_process_name2eq 2systemd
process.args2contains 1, eq 1, in 1, wildcard 1*/bin/*sh*, *import*pty*spawn*, *import*subprocess*call*, enable, reenable
process_name2in 2, eq 1, starts_with 1awk, bash, busybox, csh, fish
type2eq 2EXECVE, PATH
CommandLine1contains 1--user, exec(base64.b64decode('aw1wb3j0, ki2nf9tq1jjufqgpsaiyv
ParentCommandLine1eq 1/sbin/init
ParentImage1contains 1/python3
a01contains 1service, systemctl

Top indicator values (336 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
creation
523
EventTypein
rename
318
EventTypein
file_create_event
29
TargetFilenamewildcard
/etc/systemd/system/*
34
TargetFilenamewildcard
/home/*/.config/systemd/user/*
34
TargetFilenamewildcard
/home/*/.local/share/systemd/user/*
34
TargetFilenamewildcard
/lib/systemd/system/*
34
TargetFilenamewildcard
/root/.config/systemd/user/*
34
TargetFilenamewildcard
/root/.local/share/systemd/user/*
34
TargetFilenamewildcard
/usr/lib/systemd/system/*
34
TargetFilenamewildcard
/usr/local/lib/systemd/system/*
34
TargetFilenamewildcard
/etc/cron.allow
23
TargetFilenamewildcard
/etc/cron.d/*
23
TargetFilenamewildcard
/etc/cron.daily/*
23
TargetFilenamewildcard
/etc/cron.deny
23
TargetFilenamewildcard
/etc/cron.hourly/*
23
TargetFilenamewildcard
/etc/cron.monthly/*
23
TargetFilenamewildcard
/etc/cron.weekly/*
23
TargetFilenamewildcard
/etc/crontab
23
TargetFilenamewildcard
/etc/systemd/user/*
23
TargetFilenamewildcard
/usr/lib/systemd/user/*
23
TargetFilenamewildcard
/var/spool/anacron/*
23
TargetFilenamewildcard
/var/spool/cron/atjobs/*
22
TargetFilenamewildcard
/var/spool/cron/crontabs/*
23
EventTypeeq
exec
2171
Imagecontains
/python3
22
event.typeeq
start
2606
parent_process_nameeq
systemd
22
CommandLinecontains
--user
1
CommandLinecontains
exec(base64.b64decode('aw1wb3j0
1

Exclusions (193 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
file.extensionin
dpkg-remove
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/microdnf
2
Imagein
/bin/pamac-daemon
2
Imagein
/bin/podman
2
Imagein
/bin/puppet
2
Imagein
/bin/rpm
2
Imagein
/bin/snapd
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 4 rules

Elastic 10 rules