CmdID

CmdID / Techniques / T1543

T1543.004 Create or Modify System Process: Launch Daemon

Adversaries may create or modify Launch Daemons to execute malicious payloads as part of persistence. MITRE ATT&CK

2 Sigma rules T1543.004 on attack.mitre.org

Part of

MITRE ATT&CK
T1543Create or Modify System Process

Sigma rules tagged with it

process creation, the highest levels first
highPotential Persistence Via PlistBuddySohan G (D4rkCiph3r) · macOS
mediumLaunch Agent/Daemon Execution Via LaunchctlPratinav Chandra · macOS

Command lines CmdID reads as it

everyday examples from tldr-pages, CC BY 4.0

Activate a user-specific agent to be loaded into launchd whenever the user logs in on the page for launchctl

launchctl load ~/Library/LaunchAgents/my_script.plistIdentify

Activate an agent which requires root privileges to run and/or should be loaded whenever any user logs in (note the absence of ~ in the path) on the page for launchctl

sudo launchctl load /Library/LaunchAgents/root_script.plistIdentify

Activate a system-wide daemon to be loaded whenever the system boots up (even if no user logs in) on the page for launchctl

sudo launchctl load /Library/LaunchDaemons/system_daemon.plistIdentify

Unload a currently loaded agent, e.g. to make changes (Note: The plist file is automatically loaded into launchd after a reboot and/or logging in) on the page for launchctl

launchctl unload ~/Library/LaunchAgents/my_script.plistIdentify

Manually run a known (loaded) agent/daemon, even if it is not the right time (Note: This command uses the agent's label, rather than the filename) on the page for launchctl

launchctl start script_fileIdentify

An example is here when CmdID’s reading of it names T1543.004: a Sigma rule it trips is tagged with it, or its abuse is documented as it.