Detection rules › Sigma
macOS Screen Sharing Session
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.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Lateral Movement | T1021.005 Remote Services: VNC, T1563 Remote Service Session Hijacking |
Rule body yaml
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_detachStage 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
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.
| Field | Kind | Values |
|---|---|---|
esf.event_type | eq |
|
event.action | eq |
|