| ID | Name |
|---|---|
| T1543.001 | Launch Agent |
| T1543.002 | Systemd Service |
| T1543.003 | Windows Service |
| T1543.004 | Launch Daemon |
| T1543.005 | Container Service |
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.[1][2][3]
Adversaries may install a Launch Daemon configured to execute at startup by using the RunAtLoad parameter set to true and the Program parameter set to the malicious executable path. The daemon name may be disguised by using a name from a related operating system or benign software (i.e. Masquerading). When the Launch Daemon is executed, the program inherits administrative permissions.[4][5]
Additionally, system configuration changes (such as the installation of third party package managing software) may cause folders such as usr/local/bin to become globally writeable. So, it is possible for poor configurations to allow an adversary to modify executables referenced by current Launch Daemon's plist files.[6][7]
| ID | Name | Description |
|---|---|---|
| C0057 | 3CX Supply Chain Attack |
During the 3CX Supply Chain Attack, AppleJeus installs a Launch Daemon to execute the POOLRAT macOS backdoor software.[8] |
| S0584 | AppleJeus |
AppleJeus has placed a plist file within the |
| S0482 | Bundlore | |
| S1105 | COATHANGER |
COATHANGER will create a daemon for timed check-ins with command and control infrastructure.[12] |
| S0497 | Dacls |
Dacls can establish persistence via a Launch Daemon.[13][14] |
| S0690 | Green Lambert |
Green Lambert can add a plist file in the |
| S0451 | LoudMiner |
LoudMiner adds plist files with the naming format |
| S0352 | OSX_OCEANLOTUS.D |
If running with |
| S1219 | REPTILE | |
| S0595 | ThiefQuest |
When running with root privileges after a Launch Agent is installed, ThiefQuest installs a plist file to the |
| S0658 | XCSSET |
XCSSET uses the ssh launchdaemon to elevate privileges, bypass system controls, and enable remote access to the victim.[22] |
| ID | Mitigation | Description |
|---|---|---|
| M1047 | Audit |
Use auditing tools capable of detecting folder permissions abuse opportunities on systems, especially reviewing changes made to folders by third-party software. |
| M1018 | User Account Management |
Limit privileges of user accounts and remediate Privilege Escalation vectors so only authorized administrators can create new Launch Daemons. |
| ID | Name | Analytic ID | Analytic Description |
|---|---|---|---|
| DET0401 | Detection Strategy for Launch Daemon Creation or Modification (macOS) | AN1126 |
Creation or modification of |