Detection rules › Elastic
System Binary Proxy Execution via ScriptRunner
Identifies the execution of a command or binary via the Windows Script Runner utility. Adversaries may bypass process and signature-based defenses by proxying execution of malicious content with signed, or otherwise trusted, binaries.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Stealth |
Rule body
[rule]
description = """
Identifies the execution of a command or binary via the Windows Script Runner utility. Adversaries may bypass process
and signature-based defenses by proxying execution of malicious content with signed, or otherwise trusted, binaries.
"""
id = "06773783-0083-429d-863e-a85719a6cb05"
license = "Elastic License v2"
name = "System Binary Proxy Execution via ScriptRunner"
os_list = ["windows"]
reference = ["https://lolbas-project.github.io/lolbas/Binaries/Scriptrunner/"]
version = "1.0.4"
query = '''
process where event.action == "start" and
(process.parent.name : "ScriptRunner.exe" and process.parent.args : "-appvscript") and
not (process.executable : "?:\\Windows\\Sys*\\conhost.exe" and process.args : "0xffffffff")
'''
min_endpoint_version = "7.15.0"
[[actions]]
action = "kill_process"
field = "process.entity_id"
state = 0
[[optional_actions]]
action = "rollback"
field = "process.entity_id"
state = 0
[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1218"
name = "System Binary Proxy Execution"
reference = "https://attack.mitre.org/techniques/T1218/"
[threat.tactic]
id = "TA0005"
name = "Defense Evasion"
reference = "https://attack.mitre.org/tactics/TA0005/"
[internal]
min_endpoint_version = "7.15.0"
Stages and Predicates
Stage 1: process
process where event.action == "start" and
(process.parent.name : "ScriptRunner.exe" and process.parent.args : "-appvscript") and
not (process.executable : "?:\\Windows\\Sys*\\conhost.exe" and process.args : "0xffffffff")
Exclusions
The rule actively suppresses these predicates.
| Field | Kind | Excluded values | Search |
|---|---|---|---|
process.args | eq | 0xffffffff | excludes:process.args field:"process.args" value:"0xffffffff" |
process.executable | wildcard | ?:\Windows\Sys*\conhost.exe | excludes:process.executable field:"process.executable" value:"?:\Windows\Sys*\conhost.exe" |
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
event.action | eq |
| field:"EventType" kind:eq value:"start" |
process.parent.args | wildcard |
| field:"process.parent.args" kind:wildcard value:"-appvscript" |
process.parent.name | wildcard |
| field:"parent_process_name" kind:wildcard value:"ScriptRunner.exe" |