Detection rules › Sigma

HackTool - HandleKatz LSASS Dumper Execution

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

Detects the use of HandleKatz, a tool that demonstrates the usage of cloned handles to Lsass in order to create an obfuscated memory dump of the same

MITRE ATT&CK coverage

TacticTechniques
Credential AccessT1003.001 OS Credential Dumping: LSASS Memory

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: HackTool - HandleKatz LSASS Dumper Execution
id: ca621ba5-54ab-4035-9942-d378e6fcde3c
status: test
description: Detects the use of HandleKatz, a tool that demonstrates the usage of cloned handles to Lsass in order to create an obfuscated memory dump of the same
references:
    - https://github.com/codewhitesec/HandleKatz
author: Florian Roth (Nextron Systems)
date: 2022-08-18
modified: 2024-11-23
tags:
    - attack.credential-access
    - attack.t1003.001
logsource:
    category: process_creation
    product: windows
detection:
    selection_loader_img:
        Image|endswith: '\loader.exe'
        CommandLine|contains: '--pid:'
    selection_loader_imphash:
        Hashes|contains:
            - 'IMPHASH=38D9E015591BBFD4929E0D0F47FA0055'
            - 'IMPHASH=0E2216679CA6E1094D63322E3412D650'
    selection_flags:
        CommandLine|contains|all:
            - '--pid:'
            - '--outfile:'
        CommandLine|contains:
            - '.dmp'
            - 'lsass'
            - '.obf'
            - 'dump'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_loader_img

selection_loader_img:
    Image|endswith: '\loader.exe'
    CommandLine|contains: '--pid:'

Stage 2: selection_loader_imphash

selection_loader_imphash:
    Hashes|contains:
        - 'IMPHASH=38D9E015591BBFD4929E0D0F47FA0055'
        - 'IMPHASH=0E2216679CA6E1094D63322E3412D650'

Stage 3: selection_flags

selection_flags:
    CommandLine|contains|all:
        - '--pid:'
        - '--outfile:'
    CommandLine|contains:
        - '.dmp'
        - 'lsass'
        - '.obf'
        - 'dump'

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
  • --outfile:
  • --pid:
  • .dmp corpus 10 (sigma 8, chronicle 2)
  • .obf
  • dump
  • lsass corpus 9 (sigma 6, kusto 2, chronicle 1)
Hashesmatch
  • IMPHASH=0E2216679CA6E1094D63322E3412D650 corpus 3 (sigma 3)
  • IMPHASH=38D9E015591BBFD4929E0D0F47FA0055 corpus 3 (sigma 3)
Imageends_with
  • \loader.exe