Detectionhightest
HackTool - SharpImpersonation Execution
Detects execution of the SharpImpersonation tool. Which can be used to manipulate tokens on a Windows computers remotely (PsExec/WmiExec) or interactively
Sai Prashanth Pulisetti, Nasreddine BencherchaliCreated 2022-12-27Updated 2023-02-13f89b08d0-77ad-4728-817b-9b16c5a69c7awindows
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 Logic2 selectors
detection:
selection_img:
- Image|endswith: '\SharpImpersonation.exe'
- OriginalFileName: 'SharpImpersonation.exe'
selection_cli:
- CommandLine|contains|all:
- ' user:'
- ' binary:'
- CommandLine|contains|all:
- ' user:'
- ' shellcode:'
- CommandLine|contains:
- ' technique:CreateProcessAsUserW'
- ' technique:ImpersonateLoggedOnuser'
condition: 1 of selection_*False Positives
Unknown
False positive likelihood has not been assessed. Additional context may be needed during triage.
MITRE ATT&CK
Rule Metadata
Rule ID
f89b08d0-77ad-4728-817b-9b16c5a69c7a
Status
test
Level
high
Type
Detection
Created
2022-12-27
Modified
2023-02-13
Path
rules/windows/process_creation/proc_creation_win_hktl_sharp_impersonation.yml
Raw Tags
attack.privilege-escalationattack.stealthattack.t1134.001attack.t1134.003