Create or Modify System Process: Launch Daemon T1543.004

Tactics: Persistence, Privilege Escalation

Adversaries may create or modify Launch Daemons to execute malicious payloads as part of persistence. Launch Daemons are plist files used to interact with Launchd, the service management framework used by macOS. Launch Daemons require elevated privileges to install, are executed for every user on a system prior to login, and run in the background without the need for user interaction. During the macOS initialization startup, the launchd process loads the parameters for launch-on-demand system-level daemons from plist files found in /System/Library/LaunchDaemons/ and /Library/LaunchDaemons/. Required Launch Daemons parameters include a Label to identify the task, Program to provide a path to the executable, and RunAtLoad to specify when the task is run. Launch Daemons are often used to provide access to shared resources, updates to software, or conduct automation tasks.

Events covered

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

Authoring guide

Patterns shared across the 9 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 (13 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
host.os.type5eq 5
process_name5starts_with 2, eq 1, in 1, wildcard 1bash, ., csh, curl, dash
EventType4eq 4launch_daemon, exec
Image4ends_with 3, starts_with 1/curl, /launchctl, /library/fonts/, /library/graphics/, /library/webserver/
event.type4in 2, eq 1, ne 1start, process_started, deletion
CommandLine2contains 2launchagents, launchdaemons, load, runatload, start
TargetFilename2ends_with 1, eq 1, starts_with 1, wildcard 1.helper, /library/launchagents/*, /library/launchdaemons/*, /library/launchdaemons/com.finder.helper.plist, /system/library/launchagents/*
process.args2contains 1, eq 1, in 1, wildcard 1* /dev/shm/* , * /home/*, * /run/*, load
Persistence.name1starts_with 1.
container.id1starts_with 1?
file.extension1eq 1plist
parent_process_name1eq 1launchd
process.interactive1eq 1true

Top indicator values (101 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
EventTypeeq
launch_daemon
33
EventTypeeq
exec
1171
event.typein
process_started
240
event.typein
start
242
CommandLinecontains
launchagents
12
CommandLinecontains
launchdaemons
1
CommandLinecontains
load
1
CommandLinecontains
runatload
12
CommandLinecontains
start
113
CommandLinecontains
submit
1
CommandLinecontains
true
13
Imageends_with
/curl
122
Imageends_with
/launchctl
12
Imageends_with
/plistbuddy
12
Imagestarts_with
/library/fonts/
1
Imagestarts_with
/library/graphics/
1
Imagestarts_with
/library/webserver/
1
Imagestarts_with
/private/tmp/
14
Imagestarts_with
/private/var/root/library/
1
Imagestarts_with
/tmp/
125
Imagestarts_with
/users/shared/
14
Imagestarts_with
/var/folders/
12
Imagestarts_with
/var/root/
12
Imagestarts_with
/var/tmp/
124
Persistence.namestarts_with
.
1
TargetFilenameends_with
.helper
1
TargetFilenameeq
/library/launchdaemons/com.finder.helper.plist
1
TargetFilenamestarts_with
/users/
12
TargetFilenamewildcard
/library/launchagents/*
1
TargetFilenamewildcard
/library/launchdaemons/*
1

Exclusions (11 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
Imagestarts_with
/library/privilegedhelpertools/
1
Imagestarts_with
/system/
1
process.code_signature.signing_idin
com.apple.cat
1
process.code_signature.signing_idin
com.apple.cfprefsd
1
process.code_signature.signing_idin
com.apple.ditto
1
process.code_signature.signing_idin
com.apple.pico
1
process.code_signature.signing_idin
com.apple.shove
1
process.code_signature.signing_idin
com.apple.vim
1
process.code_signature.signing_idin
com.jetbrains.toolbox
1
process.code_signature.signing_idin
com.sublimetext.4
1
process.code_signature.trustedeq
true
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 3 rules

Elastic 6 rules