HackTool - SharPersist Execution

 Original Source: [Sigma source]
Title: HackTool - SharPersist Execution
Status: test
Description:Detects the execution of the hacktool SharPersist - used to deploy various different kinds of persistence mechanisms
References:
  -https://www.mandiant.com/resources/blog/sharpersist-windows-persistence-toolkit
  -https://github.com/mandiant/SharPersist
Author: Florian Roth (Nextron Systems)
Date: 2022-09-15
modified:2023-02-04
Tags:
  • -'attack.privilege-escalation'
  • -'attack.execution'
  • -'attack.persistence'
  • -'attack.t1053'
Logsource:
  • category: process_creation
  • product: windows
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_*
Falsepositives:
  -Unknown
Level: high