macOS chflags Hidden Flag Set via chflags hidden parameter

Alerts when chflags is run with the hidden flag on macOS to make files or directories less visible.

FreeReviewedSigma · Medium · v2
Product
macos
Category
process_creation
Author
Omar Khaled (@beacon_exe) (SigmaHQ), DRL 1.1
Published
2024-08-21
Updated
2026-07-31

ATT&CK techniques

Defense Evasion → C2
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. Exfiltration

  11. Impact

What it detects

This rule flags process executions of the chflags utility where the command line contains the hidden flag argument. Setting the hidden file system flag can make files or directories less visible in standard listings and file browsers, supporting attacker stealth. It relies on macOS process creation telemetry including the process image path/name and the command line.

Related detections9 linkedT1105 — drag to rearrange
Windows findstr.exe Subfolder and Case-Insensitive Search Flags
Suspicious File Download via certutil urlcache
Windows File Events: Legitimate Applications Writing Executables to Uncommon Locations
Windows Process Access: Suspicious WebDAV target execution via iediagcmd.exe or CustomShellHost.exe (CVE-2025-33053)
Windows Process Creation: Possible CVE-2025-33053 WebDAV RCE via utility search-order manipulation
Windows Scheduled Task Creation via schtasks.exe with curl and PowerShell Command Line Indicators
Windows Process Execution: Suspicious cmd.exe Command-Line Combinations (Pikabot-like)
Windows: Detect Ldifde.exe LDAP import (-i -f) usage
Windows: PrintBrm.exe ZIP extraction or creation via command-line parameters
macOS chflags Hidden Flag Set via chflags hidden parameter
Pivot detection · T1105 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.