Windows SharpLdapWhoami Execution via LDAP Whoami Methods

Flags execution of SharpLdapWhoami on Windows using LDAP-related whoami alternative method parameters.

FreeReviewedSigma · High · v2
Product
windows
Category
process_creation
Author
Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-08-29
Updated
2026-07-31
title: Windows SharpLdapWhoami Execution via LDAP Whoami Methods
id: 2d5e0eb5-903f-4fdc-9ec8-9ebdd767dd8e
status: test
description: This rule flags execution of SharpLdapWhoami on Windows when the process image or metadata indicates the tool. It further matches command lines using LDAP/NTLM/Kerberos negotiation methods such as /method:{ntlm,kerb,nego} and /m:{ntlm,kerb,nego}. This matters because the tool can be used to discover identity context by querying LDAP against a domain controller. Telemetry required includes Windows process creation data with image path, file name/product metadata, and full command-line arguments.
references:
  - https://github.com/bugch3ck/SharpLdapWhoami
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_hktl_sharpldapwhoami.yml
author: Florian Roth (Nextron Systems), Huntrule Team
date: 2022-08-29
modified: 2023-02-04
tags:
  - attack.discovery
  - attack.t1033
  - car.2016-03-001
logsource:
  category: process_creation
  product: windows
detection:
  selection_name:
    Image|endswith: \SharpLdapWhoami.exe
  selection_pe:
    - 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*
falsepositives:
  - Programs that use the same command line flags
level: high
license: DRL-1.1
related:
  - id: d9367cbb-c2e0-47ce-bdc0-128cb6da898d
    type: derived