Elastic Defend high stable eql

File hidden via Chflags

Detects when the Chflags utility is used with the hidden option in order to hide a file on the filesystem. Threat actors will use this in order to hide their payloads in order to prevent them from being noticed.

View Source

Detection Logic

process where event.type == "start" and event.action == "exec" and process.name == "chflags" and 
 process.command_line like~ "* hidden *" and process.command_line like~ ("* /Users/*", "* /tmp/*") and
 not process.parent.executable like ("/usr/libexec/xpcproxy", "/usr/local/jamf/bin/jamf") and
 not (process.parent.code_signature.team_id == "738UU3Y57V" and process.parent.code_signature.trusted == true) and
 not process.Ext.effective_parent.executable like ("/Applications/Adobe After Effects */Adobe After Effects *.app/Contents/MacOS/After Effects",
                                                   "/Library/Application Support/JAMF/Jamf.app/Contents/MacOS/JamfDaemon.app/Contents/MacOS/JamfDaemon",
                                                   "/Applications/O+Connect.app/Contents/MacOS/O+Connect")

Field Validations

Loading…

Comments (0)

Loading comments...