Detection rules › Sigma
macOS ESF Deletion In Sensitive Directories
Detect unlink (delete) operations in sensitive directories such as LaunchAgents/Daemons or system configs.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Stealth | T1070.004 Indicator Removal: File Deletion |
Rule body yaml
title: macOS ESF Deletion In Sensitive Directories
id: 52b5612d-3c9e-4a4a-9b7a-1b6f94b6a0aa
status: experimental
description: Detect unlink (delete) operations in sensitive directories such as LaunchAgents/Daemons
or system configs.
author: Eric Brown - Nebulock, Inc.
date: 2025-10-29
logsource:
product: macos
service: endpointsecurity
level: medium
detection:
selection_evt:
esf.event_type: 19
event.action: unlink
selection_path:
TargetFilename|startswith:
- /Library/LaunchDaemons/
- /Library/LaunchAgents/
- /System/Library/LaunchDaemons/
- /etc/
condition: selection_evt and selection_path
falsepositives:
- legitimate maintenance or upgrades
modified: 2025/01/15
Stages and Predicates
Stage 0: condition
selection_evt and selection_pathStage 1: selection_evt
selection_evt:
esf.event_type: 19
event.action: unlink
Stage 2: selection_path
selection_path:
TargetFilename|startswith:
- /Library/LaunchDaemons/
- /Library/LaunchAgents/
- /System/Library/LaunchDaemons/
- /etc/
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 |
|