Detection rules › Sigma

macOS ESF Rename To Hidden Dotfile

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

Detect renaming a file to a hidden path (dotfile) which may indicate stealthy behavior.

MITRE ATT&CK coverage

Rule body yaml

title: macOS ESF Rename To Hidden Dotfile
id: 8d7b7c6e-2f7a-4f8d-8f1b-5a3f0e1a2c44
status: experimental
description: Detect renaming a file to a hidden path (dotfile) which may indicate
  stealthy behavior.
author: Eric Brown - Nebulock, Inc.
date: 2025-10-29
logsource:
  product: macos
  service: endpointsecurity
level: medium
detection:
  selection_evt:
    esf.event_type: 21
    event.action: rename
  selection_path:
    DestinationFilename|contains: '/.'
    TargetFilename|contains: '/.'
  condition: selection_evt and (selection_path)
falsepositives:
- developer tools and dotfile managers
modified: 2025/01/15

Stages and Predicates

Stage 0: condition

selection_evt and (selection_path)

Stage 1: selection_evt

selection_evt:
  esf.event_type: 21
  event.action: rename

Stage 2: selection_path

selection_path:
  DestinationFilename|contains: '/.'
  TargetFilename|contains: '/.'

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
DestinationFilenamematch
  • /.
TargetFilenamematch
  • /.
esf.event_typeeq
  • 21
event.actioneq
  • rename