File Hidden via SetFile


Description

Detects when SetFile is used to modify the file attributes of a file in order to make that file invisible. Malware on macOS has been observed using this technique in order to hide their payload from users.

Query · eql

process where event.type == "start" and event.action == "exec" and process.name == "SetFile" and 
 process.args == "-a" and 
 process.args == "V"
Raw source File Hidden via SetFile · Elastic TOML
Esc
Published by elastic/protections-artifacts ↗, licensed under Elastic License 2.0 ↗. Reproduced here unmodified.
[rule]
description = """
Detects when SetFile is used to modify the file attributes of a file in order to make that file invisible. Malware on
macOS has been observed using this technique in order to hide their payload from users.
"""
id = "2ed9c6bf-025e-4edf-a9ec-1493d0bb4f81"
license = "Elastic License v2"
name = "File Hidden via SetFile"
os_list = ["macos"]
reference = [
    "https://www.virustotal.com/gui/file/d64e2688344c685c4156819156bdb15630d1168314b21c919eee5540b1beb54a",
]
version = "1.0.3"

query = '''
process where event.type == "start" and event.action == "exec" and process.name == "SetFile" and 
 process.args == "-a" and 
 process.args == "V"
'''

min_endpoint_version = "8.11.0"
optional_actions = []
[[actions]]
action = "kill_process"
field = "process.entity_id"
state = 0

[[actions]]
action = "kill_process"
field = "process.parent.entity_id"
state = 0

[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1564"
name = "Hide Artifacts"
reference = "https://attack.mitre.org/techniques/T1564/"
[[threat.technique.subtechnique]]
id = "T1564.001"
name = "Hidden Files and Directories"
reference = "https://attack.mitre.org/techniques/T1564/001/"



[threat.tactic]
id = "TA0005"
name = "Defense Evasion"
reference = "https://attack.mitre.org/tactics/TA0005/"

[internal]
min_endpoint_version = "8.11.0"

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.