Detection rules › Sigma

XPC Connection from Unusual Location

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 service connections initiated from unusual file system locations

MITRE ATT&CK coverage

TacticTechniques
ExecutionT1559 Inter-Process Communication

Rule body yaml

title: XPC Connection from Unusual Location
id: 4fdd0c51-2354-414b-b74d-45b634d0fcb4
status: experimental
description: Detects XPC service connections initiated from unusual file system locations
references:
- https://attack.mitre.org/techniques/T1559/
author: Eric Brown - Nebulock, Inc.
date: 2025/10/29
tags:
- attack.execution
- attack.t1559
logsource:
  product: macos
  service: endpointsecurity
  category: xpc_connection
detection:
  selection:
    esf.event_type: 65
    event.action: xpc_connect
    Image|startswith:
    - /tmp/
    - /var/tmp/
    - /private/tmp/
    - /Users/Shared/
    - /dev/shm/
  condition: selection
falsepositives:
- Installers running from temporary locations
- User scripts
level: medium
modified: 2025/01/15

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  esf.event_type: 65
  event.action: xpc_connect
  Image|startswith:
  - /tmp/
  - /var/tmp/
  - /private/tmp/
  - /Users/Shared/
  - /dev/shm/

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
Imagestarts_with
  • /Users/Shared/
  • /dev/shm/
  • /private/tmp/
  • /tmp/
  • /var/tmp/
esf.event_typeeq
  • 65
event.actioneq
  • xpc_connect