Detection rules › Sigma

HackTool - SharPersist Execution

Severity
high
Author
Florian Roth (Nextron Systems)
Source
upstream

Detects the execution of the hacktool SharPersist - used to deploy various different kinds of persistence mechanisms

MITRE ATT&CK coverage

TacticTechniques
ExecutionT1053 Scheduled Task/Job
PersistenceT1053 Scheduled Task/Job
Privilege EscalationT1053 Scheduled Task/Job

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation

Stages and Predicates

Stage 1: 1 of selection_img

or:
Image|endswith: '\SharPersist.exe'
Product: SharPersist

Stage 2: 1 of selection_cli_1

or:
CommandLine|contains: ' -t schtask -c '
CommandLine|contains: ' -t startupfolder -c '

Stage 3: 1 of selection_cli_2

CommandLine|contains: ' -m add'
CommandLine|contains: ' -t reg -c '

Stage 4: 1 of selection_cli_3

CommandLine|contains: ' -m add'
CommandLine|contains: ' -t service -c '

Stage 5: 1 of selection_cli_4

CommandLine|contains: ' -m add'
CommandLine|contains: ' -t schtask -c '

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • -m add
  • -t reg -c
  • -t schtask -c
  • -t service -c
  • -t startupfolder -c
Imageends_with
  • \SharPersist.exe corpus 2 (sigma 2)
Producteq
  • SharPersist