Inter-Process Communication: XPC Services
- ID
- T1559.003
- Tactics
- TA0002 Execution
- Sub-technique of
- T1559 Inter-Process Communication
- Platforms
- macOS
- Data sources
- Process Access, Process Creation, Named Pipe Metadata
- Source
- attack.mitre.org
- MITRE last modified
- 16 Apr 2025
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.[1][2]
Adversaries can abuse XPC services to execute malicious content. Requests for malicious execution can be passed through the application's XPC Services handler.[3][4] This may also include identifying and abusing improper XPC client validation and/or poor sanitization of input parameters to conduct Exploitation for Privilege Escalation.
Detection
- DET0335 Detect Abuse of XPC Services (T1559.003)
Data components: Process Access, Process Creation, Named Pipe Metadata
Mitigations (1)
- M1013 Application Developer Guidance
Enable the Hardened Runtime capability when developing applications. Do not include the
com.apple.security.get-task-allowentitlement with the value set to any variation of true.
