Detection rules › Sigma
macOS ESF Sensitive File Access
Detect access to sensitive system files via ESF OPEN notifications. More suspicious when non-root users access these files.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Discovery | No specific technique |
Rule body yaml
title: macOS ESF Sensitive File Access
id: 3c9e1ec5-6f6c-4c9d-bb3a-1b7cf0b9a1df
status: experimental
description: Detect access to sensitive system files via ESF OPEN notifications. More suspicious when non-root users access these files.
author: Eric Brown - Nebulock, Inc.
date: 2025-10-29
logsource:
product: macos
service: endpointsecurity
level: high
detection:
selection_event:
esf.event_type: 10
event.action: open
selection_path:
TargetFilename|startswith:
- /etc/hosts
- /etc/sudoers
- /Library/Preferences/com.apple.TCC.plist
selection_root:
UserId: 0
condition: selection_event and selection_path and not selection_root
falsepositives:
- legitimate administrative tasks (e.g., configuration management)
- root user administrative access
tags:
- attack.discovery
modified: 2025/01/15
Stages and Predicates
Stage 0: condition
selection_event and selection_path and not selection_rootStage 1: selection_event
selection_event:
esf.event_type: 10
event.action: open
Stage 2: selection_path
selection_path:
TargetFilename|startswith:
- /etc/hosts
- /etc/sudoers
- /Library/Preferences/com.apple.TCC.plist
Stage 3: not selection_root
selection_root:
UserId: 0
Exclusions
Top-level NOT(...) conjuncts: predicates this rule actively suppresses.
| Field | Kind | Excluded values |
|---|---|---|
UserId | eq | 0 |
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 |
|---|---|---|
TargetFilename | starts_with |
|
esf.event_type | eq |
|
event.action | eq |
|