Detection rules › Sigma

HackTool - Potential Remote Credential Dumping Activity Via CrackMapExec Or Impacket-Secretsdump

Status
test
Severity
high
Log source
category file_event, product windows
Author
SecurityAura
Source
github.com/SigmaHQ/sigma

Detects default filenames output from the execution of CrackMapExec and Impacket-secretsdump against an endpoint.

MITRE ATT&CK coverage

TacticTechniques
Credential Access

Telemetry coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule body

title: HackTool - Potential Remote Credential Dumping Activity Via CrackMapExec Or Impacket-Secretsdump
id: 6e2a900a-ced9-4e4a-a9c2-13e706f9518a
status: test
description: Detects default filenames output from the execution of CrackMapExec and Impacket-secretsdump against an endpoint.
references:
    - https://github.com/Porchetta-Industries/CrackMapExec
    - https://github.com/fortra/impacket/blob/ff8c200fd040b04d3b5ff05449646737f836235d/examples/secretsdump.py
author: SecurityAura
date: 2022-11-16
modified: 2024-06-27
tags:
    - attack.credential-access
    - attack.t1003
logsource:
    product: windows
    category: file_event
detection:
    selection:
        Image|endswith: '\svchost.exe'
        # CommandLine|contains: 'RemoteRegistry' # Uncomment this line if you collect CommandLine data for files events from more accuracy
        TargetFilename|re: '\\Windows\\System32\\[a-zA-Z0-9]{8}\.tmp$'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\svchost.exe'
    TargetFilename|re: '\\Windows\\System32\\[a-zA-Z0-9]{8}\.tmp$'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \svchost.exe corpus 23 (sigma 22, kusto 1)
field:"Image" kind:ends_with value:"\svchost.exe"
TargetFilenameregex_match
  • \Windows\System32\[a-zA-Z0-9]{8}.tmp$
field:"TargetFilename" kind:regex_match value:"\Windows\System32\[a-zA-Z0-9]{8}.tmp$"