Detection rules › Sigma

Potential Manage-bde.wsf Abuse To Proxy Execution

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

Detects potential abuse of the "manage-bde.wsf" script as a LOLBIN to proxy execution

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Potential Manage-bde.wsf Abuse To Proxy Execution
id: c363385c-f75d-4753-a108-c1a8e28bdbda
status: test
description: Detects potential abuse of the "manage-bde.wsf" script as a LOLBIN to proxy execution
references:
    - https://lolbas-project.github.io/lolbas/Scripts/Manage-bde/
    - https://gist.github.com/bohops/735edb7494fe1bd1010d67823842b712
    - https://twitter.com/bohops/status/980659399495741441
    - https://twitter.com/JohnLaTwC/status/1223292479270600706
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1216/T1216.md
author: oscd.community, Natalia Shornikova, Nasreddine Bencherchali (Nextron Systems)
date: 2020-10-13
modified: 2023-02-03
tags:
    - attack.stealth
    - attack.t1216
logsource:
    category: process_creation
    product: windows
detection:
    selection_wscript_img:
        - Image|endswith: '\wscript.exe'
        - OriginalFileName: 'wscript.exe'
    selection_wscript_cli:
        CommandLine|contains: 'manage-bde.wsf'
    selection_parent:
        ParentImage|endswith:
            - '\cscript.exe'
            - '\wscript.exe'
        ParentCommandLine|contains: 'manage-bde.wsf'
    selection_filter_cmd:
        Image|endswith: '\cmd.exe'
    condition: all of selection_wscript_* or (selection_parent and not selection_filter_cmd)
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

all of selection_wscript_* or (selection_parent and not selection_filter_cmd)

Stage 1: selection_wscript_img

selection_wscript_img:
    - Image|endswith: '\wscript.exe'
    - OriginalFileName: 'wscript.exe'

Stage 2: selection_wscript_cli

selection_wscript_cli:
    CommandLine|contains: 'manage-bde.wsf'

Stage 3: selection_parent

selection_parent:
    ParentImage|endswith:
        - '\cscript.exe'
        - '\wscript.exe'
    ParentCommandLine|contains: 'manage-bde.wsf'

Stage 4: not selection_filter_cmd

selection_filter_cmd:
    Image|endswith: '\cmd.exe'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
Imageends_with\cmd.exe

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • manage-bde.wsf
Imageends_with
  • \wscript.exe corpus 75 (sigma 75)
OriginalFileNameeq
  • wscript.exe corpus 20 (sigma 17, elastic 3)
ParentCommandLinematch
  • manage-bde.wsf
ParentImageends_with
  • \cscript.exe corpus 17 (sigma 17)
  • \wscript.exe corpus 19 (sigma 19)