Detection rules › Sigma

Vault credentials manager accessed

Status
experimental
Severity
high
Log source
product windows, category ['ps_module', 'ps_classic_script', 'ps_script']
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker attempts to access vault credentials.

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Vault credentials manager accessed
description: Detects scenarios where an attacker attempts to access vault credentials.
correlation: correlate ClientProcessId from ID 5382 with Process PID from event ID 4688 to identify the origin of the access.
references:
- https://twitter.com/SBousseaden/status/1573380065714470912
- https://sites.utexas.edu/glenmark/2019/10/21/using-passwordvault-with-powershell/
- https://vimalshekar.github.io/scriptsamples/Getting-Stored-Web-Credentials-using-PowerShell
- https://gist.github.com/Samirbous/c3c4122493ea5076adea9c895d2340ea
tags:
- attack.credential_access
- attack.t1555.004
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category:
    - ps_module
    - ps_classic_script
    - ps_script
detection:
  selection_powershell_native:
    EventID: 800
    EventData|contains|all:
      - 'Windows.Security.Credentials.PasswordVault'
      - 'Retrieve' # can be "RetrievePassword" or "RetrieveAll"

  selection_powershell_modern:
    EventID: 4103
    Payload|contains|all:
      - 'Windows.Security.Credentials.PasswordVault'
      - 'Retrieve' # can be "RetrievePassword" or "RetrieveAll"

  selection_powershell_block:
    EventID: 4104
    ScriptBlockText|contains|all:
      - 'Windows.Security.Credentials.PasswordVault'
      - 'Retrieve' # can be "RetrievePassword" or "RetrieveAll"

  condition: 1 of selection*
falsepositives:
- Unknown
level: high

Stages and Predicates

Stage 0: condition

1 of selection*

Stage 1: selection_powershell_native

selection_powershell_native:
  EventID: 800
  EventData|contains|all:
    - 'Windows.Security.Credentials.PasswordVault'
    - 'Retrieve'

Stage 2: selection_powershell_modern

selection_powershell_modern:
  EventID: 4103
  Payload|contains|all:
    - 'Windows.Security.Credentials.PasswordVault'
    - 'Retrieve'

Stage 3: selection_powershell_block

selection_powershell_block:
  EventID: 4104
  ScriptBlockText|contains|all:
    - 'Windows.Security.Credentials.PasswordVault'
    - 'Retrieve'

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
EventDatamatch
  • Retrieve
  • Windows.Security.Credentials.PasswordVault
Payloadmatch
  • Retrieve
  • Windows.Security.Credentials.PasswordVault
ScriptBlockTextmatch
  • Retrieve
  • Windows.Security.Credentials.PasswordVault corpus 2 (sigma 2)