Detection rules › Sigma

XPC Privilege Escalation Attempt

Status
experimental
Severity
medium
Log source
product macos, category xpc_connection, service endpointsecurity
Author
Eric Brown - Nebulock, Inc.
Source
github.com/Nebulock-Inc/macos-coresigma

Detects XPC connections from low-privileged processes to high-privileged services which may indicate privilege escalation

MITRE ATT&CK coverage

TacticTechniques
Privilege EscalationT1068 Exploitation for Privilege Escalation

Rule body yaml

title: XPC Privilege Escalation Attempt
id: 3d9194fd-230e-40ad-9610-6b15c0ba78c9
status: experimental
description: Detects XPC connections from low-privileged processes to high-privileged
  services which may indicate privilege escalation
references:
- https://attack.mitre.org/techniques/T1068/
- https://wojciechregula.blog/post/learn-xpc-exploitation-part-2-say-no-to-the-dump/
author: Eric Brown - Nebulock, Inc.
date: 2025/10/29
tags:
- attack.privilege_escalation
- attack.t1068
logsource:
  product: macos
  service: endpointsecurity
  category: xpc_connection
detection:
  selection_event:
    esf.event_type: 65
    event.action: xpc_connect
  selection_user:
    UserId: 501-65535
  selection_service:
    XpcServiceName|contains:
    - com.apple.xpc.privileged
    - com.apple.security
    - com.apple.admin
  condition: selection_event and selection_user and selection_service
falsepositives:
- System utilities
- Administrative tools
level: medium
modified: 2025/01/15

Stages and Predicates

Stage 0: condition

selection_event and selection_user and selection_service

Stage 1: selection_event

selection_event:
  esf.event_type: 65
  event.action: xpc_connect

Stage 2: selection_user

selection_user:
  UserId: 501-65535

Stage 3: selection_service

selection_service:
  XpcServiceName|contains:
  - com.apple.xpc.privileged
  - com.apple.security
  - com.apple.admin

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
UserIdeq
  • 501-65535
XpcServiceNamematch
  • com.apple.admin
  • com.apple.security
  • com.apple.xpc.privileged
esf.event_typeeq
  • 65
event.actioneq
  • xpc_connect