Detectionhightest
HackTool - SharPersist Execution
Detects the execution of the hacktool SharPersist - used to deploy various different kinds of persistence mechanisms
Florian Roth (Nextron Systems)Created 2022-09-15Updated 2023-02-0426488ad0-f9fd-4536-876f-52fea846a2e4windows
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 Logic5 selectors
detection:
selection_img:
- Image|endswith: '\SharPersist.exe'
- Product: 'SharPersist'
selection_cli_1:
CommandLine|contains:
- ' -t schtask -c '
- ' -t startupfolder -c '
selection_cli_2:
CommandLine|contains|all:
- ' -t reg -c '
- ' -m add'
selection_cli_3:
CommandLine|contains|all:
- ' -t service -c '
- ' -m add'
selection_cli_4:
CommandLine|contains|all:
- ' -t schtask -c '
- ' -m add'
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
26488ad0-f9fd-4536-876f-52fea846a2e4
Status
test
Level
high
Type
Detection
Created
2022-09-15
Modified
2023-02-04
Path
rules/windows/process_creation/proc_creation_win_hktl_sharpersist.yml
Raw Tags
attack.privilege-escalationattack.executionattack.persistenceattack.t1053