Cross-source coverage
T1559.003 / ATT&CK
Inter-Process Communication: XPC Services
4 rules across 1 source.
From MITRE ATT&CK 19.2
Adversaries can provide malicious content to an XPC service daemon for local code execution. macOS uses XPC services for basic inter-process communication between various processes, such as between the XPC Service daemon and third-party application privileged helper tools. Applications can send messages to the XPC Service daemon, which runs as root, using the low-level XPC Service C API or the high level NSXPCConnection API in order to handle tasks that require elevated privileges (such as network connections). Applications are responsible for providing the protocol definition which serves as a blueprint of the XPC services. Developers typically use XPC Services to provide applications stability and privilege separation between the application client and the daemon.
Adversaries can abuse XPC services to execute malicious content. Requests for malicious execution can be passed through the application's XPC Services handler. This may also include identifying and abusing improper XPC client validation and/or poor sanitization of input parameters to conduct Exploitation for Privilege Escalation.
- Tactics
- Execution
- Platforms
- macOS
- Telemetry
-
macos:unifiedlog
How MITRE says to detect it DET0335
Detect Abuse of XPC Services (T1559.003)
macOS Analytic 0948
Detects anomalous use of macOS XPC services for code execution. Monitors for processes invoking privileged XPC daemons with abnormal parameters, unexpected binaries communicating over NSXPCConnection, or helper tools executing code outside of their expected parent process lineage. Correlates process access attempts to system-level daemons, privilege escalations via XPC misconfigurations, and injection of malicious payloads through inter-process communication.
macos:unifiedlogUnexpected NSXPCConnection calls by non-Apple-signed or abnormal binariesmacos:unifiedlogexecve: Helper tools invoked through XPC executing unexpected binariesmacos:unifiedlogXPC messages requesting privileged actions from untrusted or unsigned clients
elastic/protections-artifacts
4 rules| Detection | Severity | Format |
|---|---|---|
| Suspicious Installer Remote Plugin Service Child Process | Undefined | Elastic TOML |
| Suspicious XPC Service Child Process | Undefined | Elastic TOML |
| Unsigned or Untrusted Application Launch via XPC | Undefined | Elastic TOML |
| Unsigned or Untrusted Binary Execution via XPC call | Undefined | Elastic TOML |