Detection rules › Sigma

Credential Dumping Activity By Python Based Tool

Status
stable
Severity
high
Log source
product windows, category process_access
Author
Bhabesh Raj, Jonhnathan Ribeiro
Source
github.com/SigmaHQ/sigma

Detects LSASS process access for potential credential dumping by a Python-like tool such as LaZagne or Pypykatz.

MITRE ATT&CK coverage

TacticTechniques
Credential AccessT1003.001 OS Credential Dumping: LSASS Memory

Event coverage

ProviderEventTitle
SysmonEvent ID 10ProcessAccess

Rule body yaml

title: Credential Dumping Activity By Python Based Tool
id: f8be3e82-46a3-4e4e-ada5-8e538ae8b9c9
related:
    - id: 4b9a8556-99c4-470b-a40c-9c8d02c77ed0
      type: obsolete
    - id: 7186e989-4ed7-4f4e-a656-4674b9e3e48b
      type: obsolete
status: stable
description: Detects LSASS process access for potential credential dumping by a Python-like tool such as LaZagne or Pypykatz.
references:
    - https://twitter.com/bh4b3sh/status/1303674603819081728
    - https://github.com/skelsec/pypykatz
author: Bhabesh Raj, Jonhnathan Ribeiro
date: 2023-11-27
modified: 2023-11-29
tags:
    - attack.credential-access
    - attack.t1003.001
    - attack.s0349
logsource:
    category: process_access
    product: windows
detection:
    selection:
        TargetImage|endswith: '\lsass.exe'
        CallTrace|contains|all:
            - '_ctypes.pyd+'
            - ':\Windows\System32\KERNELBASE.dll+'
            - ':\Windows\SYSTEM32\ntdll.dll+'
        CallTrace|contains:
            - 'python27.dll+'
            - 'python3*.dll+'
        GrantedAccess: '0x1FFFFF'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetImage|endswith: '\lsass.exe'
    CallTrace|contains|all:
        - '_ctypes.pyd+'
        - ':\Windows\System32\KERNELBASE.dll+'
        - ':\Windows\SYSTEM32\ntdll.dll+'
    CallTrace|contains:
        - 'python27.dll+'
        - 'python3*.dll+'
    GrantedAccess: '0x1FFFFF'

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
CallTracematch
  • :\Windows\SYSTEM32\ntdll.dll+
  • :\Windows\System32\KERNELBASE.dll+
  • _ctypes.pyd+
  • python27.dll+
  • python3*.dll+
GrantedAccesseq
  • 0x1FFFFF corpus 9 (sigma 7, splunk 1, kusto 1)
TargetImageends_with
  • \lsass.exe corpus 16 (sigma 16)