Detection rules › Sigma

Use of Scriptrunner.exe

Status
test
Severity
medium
Log source
category process_creation, product windows
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

The "ScriptRunner.exe" binary can be abused to proxy execution through it and bypass possible whitelisting

Known false positives

  • Legitimate use when App-v is deployed

MITRE ATT&CK coverage

Telemetry coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule body

title: Use of Scriptrunner.exe
id: 64760eef-87f7-4ed3-93fd-655668ea9420
status: test
description: The "ScriptRunner.exe" binary can be abused to proxy execution through it and bypass possible whitelisting
references:
    - https://lolbas-project.github.io/lolbas/Binaries/Scriptrunner/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-07-01
tags:
    - attack.execution
    - attack.stealth
    - attack.t1218
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\ScriptRunner.exe'
        - OriginalFileName: 'ScriptRunner.exe'
    selection_cli:
        CommandLine|contains: ' -appvscript '
    condition: all of selection*
falsepositives:
    - Legitimate use when App-v is deployed
level: medium

Stages and Predicates

Stage 0: condition

all of selection*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\ScriptRunner.exe'
    - OriginalFileName: 'ScriptRunner.exe'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains: ' -appvscript '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -appvscript
field:"CommandLine" kind:match value:" -appvscript "
Imageends_with
  • \ScriptRunner.exe corpus 12 (sigma 12)
field:"Image" kind:ends_with value:"\ScriptRunner.exe"
OriginalFileNameeq
  • ScriptRunner.exe corpus 6 (sigma 3, elastic 3)
field:"OriginalFileName" kind:eq value:"ScriptRunner.exe"