Execution via Electron Child Process Node.js Module
Identifies attempts to execute a child process from within the context of an Electron application using the child_process Node.js module. Adversaries may abuse this technique to inherit permissions from parent processes.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2020/01/07"
3integration = ["endpoint"]
4maturity = "production"
5min_stack_comments = "New fields added: required_fields, related_integrations, setup"
6min_stack_version = "8.3.0"
7updated_date = "2023/02/22"
8
9[rule]
10author = ["Elastic"]
11description = """
12Identifies attempts to execute a child process from within the context of an Electron application using the
13child_process Node.js module. Adversaries may abuse this technique to inherit permissions from parent processes.
14"""
15from = "now-9m"
16index = ["auditbeat-*", "logs-endpoint.events.*"]
17language = "kuery"
18license = "Elastic License v2"
19name = "Execution via Electron Child Process Node.js Module"
20references = [
21 "https://www.matthewslipper.com/2019/09/22/everything-you-wanted-electron-child-process.html",
22 "https://www.trustedsec.com/blog/macos-injection-via-third-party-frameworks/",
23 "https://nodejs.org/api/child_process.html",
24]
25risk_score = 47
26rule_id = "35330ba2-c859-4c98-8b7f-c19159ea0e58"
27severity = "medium"
28tags = ["Elastic", "Host", "macOS", "Threat Detection", "Defense Evasion", "Execution"]
29timestamp_override = "event.ingested"
30type = "query"
31
32query = '''
33event.category:process and host.os.type:macos and event.type:(start or process_started) and process.args:("-e" and const*require*child_process*)
34'''
35
36
37[[rule.threat]]
38framework = "MITRE ATT&CK"
39[[rule.threat.technique]]
40id = "T1059"
41name = "Command and Scripting Interpreter"
42reference = "https://attack.mitre.org/techniques/T1059/"
43
44
45[rule.threat.tactic]
46id = "TA0002"
47name = "Execution"
48reference = "https://attack.mitre.org/tactics/TA0002/"
49[[rule.threat]]
50framework = "MITRE ATT&CK"
51[[rule.threat.technique]]
52id = "T1548"
53name = "Abuse Elevation Control Mechanism"
54reference = "https://attack.mitre.org/techniques/T1548/"
55
56
57[rule.threat.tactic]
58id = "TA0005"
59name = "Defense Evasion"
60reference = "https://attack.mitre.org/tactics/TA0005/"