Detection rules › Sigma

HackTool - Rubeus Execution - ScriptBlock

Status
test
Severity
high
Log source
product windows, category ps_script
Author
Christian Burkard (Nextron Systems), Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the execution of the hacktool Rubeus using specific command line flags

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: HackTool - Rubeus Execution - ScriptBlock
id: 3245cd30-e015-40ff-a31d-5cadd5f377ec
related:
    - id: 7ec2c172-dceb-4c10-92c9-87c1881b7e18
      type: similar
status: test
description: Detects the execution of the hacktool Rubeus using specific command line flags
references:
    - https://blog.harmj0y.net/redteaming/from-kekeo-to-rubeus
    - https://m0chan.github.io/2019/07/31/How-To-Attack-Kerberos-101.html
    - https://github.com/GhostPack/Rubeus
author: Christian Burkard (Nextron Systems), Florian Roth (Nextron Systems)
date: 2023-04-27
tags:
    - attack.credential-access
    - attack.t1003
    - attack.t1558.003
    - attack.lateral-movement
    - attack.t1550.003
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains:
            - 'asreproast '
            - 'dump /service:krbtgt '
            - 'dump /luid:0x'
            - 'kerberoast '
            - 'createnetonly /program:'
            - 'ptt /ticket:'
            - '/impersonateuser:'
            - 'renew /ticket:'
            - 'asktgt /user:'
            - 'harvest /interval:'
            - 's4u /user:'
            - 's4u /ticket:'
            - 'hash /password:'
            - 'golden /aes256:'
            - 'silver /user:'
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ScriptBlockText|contains:
        - 'asreproast '
        - 'dump /service:krbtgt '
        - 'dump /luid:0x'
        - 'kerberoast '
        - 'createnetonly /program:'
        - 'ptt /ticket:'
        - '/impersonateuser:'
        - 'renew /ticket:'
        - 'asktgt /user:'
        - 'harvest /interval:'
        - 's4u /user:'
        - 's4u /ticket:'
        - 'hash /password:'
        - 'golden /aes256:'
        - 'silver /user:'

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
ScriptBlockTextmatch
  • /impersonateuser:
  • asktgt /user:
  • asreproast
  • createnetonly /program:
  • dump /luid:0x
  • dump /service:krbtgt
  • golden /aes256:
  • harvest /interval:
  • hash /password:
  • kerberoast
  • ptt /ticket:
  • renew /ticket:
  • s4u /ticket:
  • s4u /user:
  • silver /user: