Detection rules › Sigma

Shadow Copies Creation Using Operating Systems Utilities

Status
test
Severity
medium
Log source
product windows, category process_creation
Author
Teymur Kheirkhabarov, Daniil Yugoslavskiy, oscd.community
Source
github.com/SigmaHQ/sigma

Shadow Copies creation using operating systems utilities, possible credential access

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Shadow Copies Creation Using Operating Systems Utilities
id: b17ea6f7-6e90-447e-a799-e6c0a493d6ce
status: test
description: Shadow Copies creation using operating systems utilities, possible credential access
references:
    - https://www.slideshare.net/heirhabarov/hunting-for-credentials-dumping-in-windows-environment
    - https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/tutorial-for-ntds-goodness-vssadmin-wmis-ntdsdit-system/
author: Teymur Kheirkhabarov, Daniil Yugoslavskiy, oscd.community
date: 2019-10-22
modified: 2022-11-10
tags:
    - attack.credential-access
    - attack.t1003
    - attack.t1003.002
    - attack.t1003.003
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\powershell.exe'
              - '\pwsh.exe'
              - '\wmic.exe'
              - '\vssadmin.exe'
        - OriginalFileName:
              - 'PowerShell.EXE'
              - 'pwsh.dll'
              - 'wmic.exe'
              - 'VSSADMIN.EXE'
    selection_cli:
        CommandLine|contains|all:
            - 'shadow'
            - 'create'
    condition: all of selection_*
falsepositives:
    - Legitimate administrator working with shadow copies, access for backup purposes
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith:
          - '\powershell.exe'
          - '\pwsh.exe'
          - '\wmic.exe'
          - '\vssadmin.exe'
    - OriginalFileName:
          - 'PowerShell.EXE'
          - 'pwsh.dll'
          - 'wmic.exe'
          - 'VSSADMIN.EXE'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - 'shadow'
        - 'create'

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
  • create corpus 24 (sigma 17, splunk 7)
  • shadow corpus 7 (sigma 3, splunk 2, elastic 1, kusto 1)
Imageends_with
  • \powershell.exe corpus 182 (sigma 182)
  • \pwsh.exe corpus 168 (sigma 168)
  • \vssadmin.exe corpus 6 (sigma 6)
  • \wmic.exe corpus 60 (sigma 60)
OriginalFileNameeq
  • PowerShell.EXE corpus 120 (sigma 84, splunk 30, elastic 6)
  • VSSADMIN.EXE corpus 4 (sigma 3, elastic 1)
  • pwsh.dll corpus 112 (sigma 79, splunk 30, elastic 3)
  • wmic.exe corpus 61 (sigma 36, splunk 18, elastic 7)