XPC Services

T1559.003

Sub-technique of T1559 Inter-Process Communication.View on attack.mitre.org

About this technique

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.

Detection rules0

Rules on DetectionCode tagged with T1559.003.

Sigma0

No Sigma rules are mapped to this technique yet.

Splunk0

No Splunk rules are mapped to this technique yet.

Groups0

None recorded.

Software0

None recorded.

Campaigns0

None recorded.

Procedure examples0

No procedure examples are recorded for this technique.

References4

  1. CVMServer Vuln Open source
    Mickey Jin. (2021, June 3). CVE-2021-30724: CVMServer Vulnerability in macOS and iOS. Retrieved October 12, 2021.
  2. Designing Daemons Apple Dev Open source
    Apple. (n.d.). Retrieved October 12, 2021.
  3. Learn XPC Exploitation Open source
    Wojciech Reguła. (2020, June 29). Learn XPC exploitation. Retrieved October 12, 2021.
  4. creatingXPCservices Open source
    Apple. (2016, September 9). Creating XPC Services. Retrieved April 19, 2022.

Data from MITRE ATT&CK® (Enterprise). ATT&CK® is a registered trademark of The MITRE Corporation.