LoFP LoFP / legitimate usage of chflags by administrators and users.

Techniques

Sample rules

Hidden Flag Set On File/Directory Via Chflags - MacOS

Description

Detects the execution of the “chflags” utility with the “hidden” flag, in order to hide files on MacOS. When a file or directory has this hidden flag set, it becomes invisible to the default file listing commands and in graphical file browsers.

Detection logic

condition: selection
selection:
  CommandLine|contains: 'hidden '
  Image|endswith: /chflags