Changing Existing Service ImagePath Value Via Reg.EXE

 Original Source: [Sigma source]
Title: Changing Existing Service ImagePath Value Via Reg.EXE
Status: test
Description:Adversaries may execute their own malicious payloads by hijacking the Registry entries used by services. Adversaries may use flaws in the permissions for registry to redirect from the originally specified executable to one that they control, in order to launch their own code at Service start. Windows stores local service configuration information in the Registry under HKLM\SYSTEM\CurrentControlSet\Services
References:
  -https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1574.011/T1574.011.md#atomic-test-2---service-imagepath-change-with-regexe
Author: frack113
Date: 2021-12-30
modified:2024-03-13
Tags:
  • -'attack.privilege-escalation'
  • -'attack.persistence'
  • -'attack.execution'
  • -'attack.stealth'
  • -'attack.t1574.011'
Logsource:
  • category: process_creation
  • product: windows
Detection:
  selection:
    Image|endswith: '\reg.exe'
    CommandLine|contains|all:
      -'add '
      -'SYSTEM\CurrentControlSet\Services\'
      -' ImagePath '

  selection_value:
    CommandLine|contains|windash: ' -d '
  condition:all of selection*
Falsepositives:
  -Unknown
Level: medium