chflags
Change file or directory flags. tldr-pages
On macOS 1 Sigma rule name it
macOS
Set the hidden flag for a file
chflags hidden path/to/fileIdentifyTrips 1 Sigma rule: mediumHidden Flag Set On File/Directory Via Chflags - MacOS by Omar Khaled (@beacon_exe)
Unset the hidden flag for a file
chflags nohidden path/to/fileIdentifyTrips 1 Sigma rule: mediumHidden Flag Set On File/Directory Via Chflags - MacOS by Omar Khaled (@beacon_exe)
Recursively set the uchg flag for a directory
chflags -R uchg path/to/directoryIdentifyRecursively unset the uchg flag for a directory
chflags -R nouchg path/to/directoryIdentify