Detectionhightest

HackTool - SharpLdapWhoami Execution

Detects SharpLdapWhoami, a whoami alternative that queries the LDAP service on a domain controller

Open in Detection LabConvert ruleBuild Package
Florian Roth (Nextron Systems)Created 2022-08-29Updated 2023-02-04d9367cbb-c2e0-47ce-bdc0-128cb6da898dwindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic3 selectors
detection:
    selection_name:
        Image|endswith: '\SharpLdapWhoami.exe'
    selection_pe: # in case the file has been renamed after compilation
        - OriginalFileName|contains: 'SharpLdapWhoami'
        - Product: 'SharpLdapWhoami'
    selection_flags1:
        CommandLine|endswith:
            - ' /method:ntlm'
            - ' /method:kerb'
            - ' /method:nego'
            - ' /m:nego'
            - ' /m:ntlm'
            - ' /m:kerb'
    condition: 1 of selection*
False Positives

Programs that use the same command line flags

MITRE ATT&CK

CAR Analytics

2016-03-001 · CAR 2016-03-001
Rule Metadata
Rule ID
d9367cbb-c2e0-47ce-bdc0-128cb6da898d
Status
test
Level
high
Type
Detection
Created
2022-08-29
Modified
2023-02-04
Path
rules/windows/process_creation/proc_creation_win_hktl_sharpldapwhoami.yml
Raw Tags
attack.discoveryattack.t1033car.2016-03-001
View on GitHub