Detection rules › Elastic

Suspicious Automator Workflows Execution

Time window
30s
Source
github.com/elastic/protections-artifacts

Identifies the execution of the Automator Workflows process followed by a network connection from the XPC service. Adversaries may drop a custom workflow template that hosts malicious JavaScript for Automation (JXA) code as an alternative to using osascript.

MITRE ATT&CK coverage

Telemetry coverage

Rule body

[rule]
description = """
Identifies the execution of the Automator Workflows process followed by a network connection from the XPC service.
Adversaries may drop a custom workflow template that hosts malicious JavaScript for Automation (JXA) code as an
alternative to using osascript.
"""
id = "e390d36d-c739-43ee-9e3d-5a76fa853bd5"
license = "Elastic License v2"
name = "Suspicious Automator Workflows Execution"
os_list = ["macos"]
reference = ["https://posts.specterops.io/persistent-jxa-66e1c3cd1cf5"]
version = "1.0.31"

query = '''
sequence with maxspan=30s
 [process where event.action == "exec" and process.name == "automator"]
 [network where process.name == "com.apple.automator.runner"]
'''

min_endpoint_version = "8.16.0"
optional_actions = []
[[actions]]
action = "kill_process"
field = "process.entity_id"
state = 1

[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1059"
name = "Command and Scripting Interpreter"
reference = "https://attack.mitre.org/techniques/T1059/"
[[threat.technique.subtechnique]]
id = "T1059.007"
name = "JavaScript"
reference = "https://attack.mitre.org/techniques/T1059/007/"



[threat.tactic]
id = "TA0002"
name = "Execution"
reference = "https://attack.mitre.org/tactics/TA0002/"

[internal]
min_endpoint_version = "8.16.0"

Stages and Predicates

Stage 1: process

[process where event.action == "exec" and process.name == "automator"]

Stage 2: network

[network where process.name == "com.apple.automator.runner"]

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
event.actioneq
  • exec
field:"EventType" kind:eq value:"exec"
process.nameeq
  • automator
  • com.apple.automator.runner
field:"process_name" kind:eq