T1546.014 Emond
Adversaries may gain persistence and elevate privileges by executing malicious content triggered by the Event Monitor Daemon (emond). Emond is a Launch Daemon that accepts events from various services, runs them through a simple rules engine, and takes action. The emond binary at /sbin/emond
will load any rules from the /etc/emond.d/rules/
directory and take action once an explicitly defined event takes place.
The rule files are in the plist format and define the name, event type, and action to take. Some examples of event types include system startup and user authentication. Examples of actions are to run a system command or send an email. The emond service will not launch if there is no file present in the QueueDirectories path /private/var/db/emondClients
, specified in the Launch Daemon configuration file at/System/Library/LaunchDaemons/com.apple.emond.plist
.213
Adversaries may abuse this service by writing a rule to execute commands when a defined event occurs, such as system start up or user authentication.213 Adversaries may also be able to escalate privileges from administrator to root as the emond service is executed with root privileges by the Launch Daemon service.
Item | Value |
---|---|
ID | T1546.014 |
Sub-techniques | T1546.001, T1546.002, T1546.003, T1546.004, T1546.005, T1546.006, T1546.007, T1546.008, T1546.009, T1546.010, T1546.011, T1546.012, T1546.013, T1546.014, T1546.015 |
Tactics | TA0004, TA0003 |
Platforms | macOS |
Permissions required | Administrator |
Version | 1.0 |
Created | 24 January 2020 |
Last Modified | 20 April 2022 |
Mitigations
ID | Mitigation | Description |
---|---|---|
M1042 | Disable or Remove Feature or Program | Consider disabling emond by removing the Launch Daemon plist file. |
Detection
ID | Data Source | Data Component |
---|---|---|
DS0017 | Command | Command Execution |
DS0022 | File | File Creation |
DS0009 | Process | Process Creation |