Sigma rule: Service Registry Permissions Weakness Check

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-227c121255a3, updated 2021-12-30T00:00:00.000Z.

Rule

Title
Service Registry Permissions Weakness Check
Status
test
Level
medium
Author
frack113
Date
2021-12-30
File
rules/windows/powershell/powershell_script/posh_ps_get_acl_service.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

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

Log source

product
windows
category
ps_script
definition
Requirements: Script Block Logging must be enabled

Detection

selection:
    ScriptBlockText|contains|all:
        - 'get-acl'
        - 'REGISTRY::HKLM\SYSTEM\CurrentControlSet\Services\'
condition: selection

False positives (as the rule lists them)

  • Legitimate administrative script

Tags

  • attack.privilege-escalation
  • attack.persistence
  • attack.execution
  • attack.stealth
  • attack.t1574.011
  • stp.2a

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_get_acl_service.yml

Sources and licences

  • SigmaHQ

    "Service Registry Permissions Weakness Check" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_get_acl_service.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Service Registry Permissions Weakness Check",
entity page, dataset version ref-227c121255a3, updated 2021-12-30T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/95afc12e-3cbb-40c3-9340-84a032e596a3 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 95afc12e-3cbb-40c3-9340-84a032e596a3, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.