Sigma rule: Potential Persistence Via Security Descriptors - ScriptBlock

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-91286f4506f5, updated 2023-01-05T00:00:00.000Z.

Rule

Title
Potential Persistence Via Security Descriptors - ScriptBlock
Status
test
Level
high
Author
Nasreddine Bencherchali (Nextron Systems)
Date
2023-01-05
File
rules/windows/powershell/powershell_script/posh_ps_susp_ace_tampering.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects usage of certain functions and keywords that are used to manipulate security descriptors in order to potentially set a backdoor. As seen used in the DAMP project.

Log source

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

Detection

selection:
    ScriptBlockText|contains|all:
        - 'win32_Trustee'
        - 'win32_Ace'
        - '.AccessMask'
        - '.AceType'
        - '.SetSecurityDescriptor'
    ScriptBlockText|contains:
        - '\Lsa\JD'
        - '\Lsa\Skew1'
        - '\Lsa\Data'
        - '\Lsa\GBG'
condition: selection

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.persistence
  • attack.privilege-escalation
  • attack.defense-impairment

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_susp_ace_tampering.yml

Sources and licences

  • SigmaHQ

    "Potential Persistence Via Security Descriptors - ScriptBlock" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_susp_ace_tampering.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: Potential Persistence Via Security Descriptors - ScriptBlock",
entity page, dataset version ref-91286f4506f5, updated 2023-01-05T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/2f77047c-e6e9-4c11-b088-a3de399524cd (accessed 2026-11-03).
Underlying source: SigmaHQ rule 2f77047c-e6e9-4c11-b088-a3de399524cd, 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.