Sigma rule: HackTool - SharpLdapWhoami Execution

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-d5a993417804, updated 2023-02-04T00:00:00.000Z.

Rule

Title
HackTool - SharpLdapWhoami Execution
Status
test
Level
high
Author
Florian Roth (Nextron Systems)
Date
2022-08-29
Modified
2023-02-04
File
rules/windows/process_creation/proc_creation_win_hktl_sharpldapwhoami.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

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

Log source

product
windows
category
process_creation

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 (as the rule lists them)

  • Programs that use the same command line flags

Tags

  • attack.discovery
  • attack.t1033
  • car.2016-03-001

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_hktl_sharpldapwhoami.yml

Sources and licences

  • SigmaHQ

    "HackTool - SharpLdapWhoami Execution" by Florian Roth (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_hktl_sharpldapwhoami.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: HackTool - SharpLdapWhoami Execution",
entity page, dataset version ref-d5a993417804, updated 2023-02-04T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/d9367cbb-c2e0-47ce-bdc0-128cb6da898d (accessed 2026-11-03).
Underlying source: SigmaHQ rule d9367cbb-c2e0-47ce-bdc0-128cb6da898d, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.