Detection rules › Sigma

MITRE BZAR Indicators for Execution

Status
test
Severity
medium
Log source
product zeek, service dce_rpc
Author
@neu5ron, SOC Prime
Source
github.com/SigmaHQ/sigma

Windows DCE-RPC functions which indicate an execution techniques on the remote system. All credit for the Zeek mapping of the suspicious endpoint/operation field goes to MITRE

MITRE ATT&CK coverage

Rule body yaml

title: MITRE BZAR Indicators for Execution
id: b640c0b8-87f8-4daa-aef8-95a24261dd1d
status: test
description: 'Windows DCE-RPC functions which indicate an execution techniques on the remote system. All credit for the Zeek mapping of the suspicious endpoint/operation field goes to MITRE'
references:
    - https://github.com/mitre-attack/bzar#indicators-for-attck-execution
author: '@neu5ron, SOC Prime'
date: 2020-03-19
modified: 2021-11-27
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.execution
    - attack.t1047
    - attack.t1053.002
    - attack.t1569.002
logsource:
    product: zeek
    service: dce_rpc
detection:
    op1:
        endpoint: 'JobAdd'
        operation: 'atsvc'
    op2:
        endpoint: 'ITaskSchedulerService'
        operation: 'SchRpcEnableTask'
    op3:
        endpoint: 'ITaskSchedulerService'
        operation: 'SchRpcRegisterTask'
    op4:
        endpoint: 'ITaskSchedulerService'
        operation: 'SchRpcRun'
    op5:
        endpoint: 'IWbemServices'
        operation: 'ExecMethod'
    op6:
        endpoint: 'IWbemServices'
        operation: 'ExecMethodAsync'
    op7:
        endpoint: 'svcctl'
        operation: 'CreateServiceA'
    op8:
        endpoint: 'svcctl'
        operation: 'CreateServiceW'
    op9:
        endpoint: 'svcctl'
        operation: 'StartServiceA'
    op10:
        endpoint: 'svcctl'
        operation: 'StartServiceW'
    condition: 1 of op*
falsepositives:
    - Windows administrator tasks or troubleshooting
    - Windows management scripts or software
level: medium

Stages and Predicates

Stage 0: condition

1 of op*

Stage 1: op1

op1:
    endpoint: 'JobAdd'
    operation: 'atsvc'

Stage 2: op2

op2:
    endpoint: 'ITaskSchedulerService'
    operation: 'SchRpcEnableTask'

Stage 3: op3

op3:
    endpoint: 'ITaskSchedulerService'
    operation: 'SchRpcRegisterTask'

Stage 4: op4

op4:
    endpoint: 'ITaskSchedulerService'
    operation: 'SchRpcRun'

Stage 5: op5

op5:
    endpoint: 'IWbemServices'
    operation: 'ExecMethod'

Stage 6: op6

op6:
    endpoint: 'IWbemServices'
    operation: 'ExecMethodAsync'

Stage 7: op7

op7:
    endpoint: 'svcctl'
    operation: 'CreateServiceA'

Stage 8: op8

op8:
    endpoint: 'svcctl'
    operation: 'CreateServiceW'

Stage 9: op9

op9:
    endpoint: 'svcctl'
    operation: 'StartServiceA'

Stage 10: op10

op10:
    endpoint: 'svcctl'
    operation: 'StartServiceW'

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
endpointeq
  • ITaskSchedulerService
  • IWbemServices
  • JobAdd
  • svcctl
operationeq
  • CreateServiceA
  • CreateServiceW
  • ExecMethod
  • ExecMethodAsync
  • SchRpcEnableTask
  • SchRpcRegisterTask
  • SchRpcRun
  • StartServiceA
  • StartServiceW
  • atsvc