Detection rules › Sigma

macOS Screen Sharing Session

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

Detects screen sharing session attachment and detachment events. Screen sharing can be used for legitimate remote administration or by attackers for initial access and lateral movement. Monitor for unexpected or unauthorized sessions.

Known false positives

  • Legitimate IT support and remote administration
  • User-initiated screen sharing for collaboration
  • Automated management tools

MITRE ATT&CK coverage

Rule body

title: macOS Screen Sharing Session
id: 1684f3e3-d701-477f-be1b-7169dba38f91
status: experimental
description: 'Detects screen sharing session attachment and detachment events. Screen
  sharing

  can be used for legitimate remote administration or by attackers for initial

  access and lateral movement. Monitor for unexpected or unauthorized sessions.

  '
author: Eric Brown - Nebulock, Inc.
date: 2025/10/31
modified: 2025/10/31
references:
- https://attack.mitre.org/techniques/T1021/005/
- https://attack.mitre.org/techniques/T1563/
logsource:
  product: macos
  service: endpointsecurity
detection:
  selection_attach:
    esf.event_type: 135
    event.action: screensharing_attach
  selection_detach:
    esf.event_type: 136
    event.action: screensharing_detach
  condition: selection_attach or selection_detach
falsepositives:
- Legitimate IT support and remote administration
- User-initiated screen sharing for collaboration
- Automated management tools
fields:
- event_type
- event_name
- User
- source_ip
- session_id
tags:
- attack.initial_access
- attack.t1021.005
- attack.lateral_movement
- attack.t1563
level: medium

Stages and Predicates

Stage 0: condition

selection_attach or selection_detach

Stage 1: selection_attach

selection_attach:
  esf.event_type: 135
  event.action: screensharing_attach

Stage 2: selection_detach

selection_detach:
  esf.event_type: 136
  event.action: screensharing_detach

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
esf.event_typeeq
  • 135
  • 136
field:"esf.event_type" kind:eq
event.actioneq
  • screensharing_attach
  • screensharing_detach
field:"EventType" kind:eq