heroui logo

Hidden Flag Set On File/Directory Via Chflags - MacOS

Sigma Rules

View Source
Summary
This rule aims to detect the invocation of the MacOS command-line utility 'chflags' specifically when the 'hidden' flag is used to hide files and directories. The hidden status of these files prevents them from appearing in typical file listings executed by users and can be leveraged by malicious actors to obscure malicious activities or files on a system. The detection is based on the execution of the 'chflags' command with a command line that contains the word 'hidden'. Given that hiding files can be a legitimate action by administrators, this detection rule will need to be fine-tuned to reduce false positives during normal administrative operations. The potential risk highlights the importance of monitoring for unusual file hiding practices, as they may suggest an attempt to hide malware or unauthorized activities.
Categories
  • macOS
  • Endpoint
Data Sources
  • Process
Created: 2024-08-21