Sigma rule: PowerShell Set-Acl On Windows Folder - PsScript

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-194533f1de86, updated 2023-07-18T00:00:00.000Z.

Rule

Title
PowerShell Set-Acl On Windows Folder - PsScript
Status
test
Level
high
Author
frack113, Nasreddine Bencherchali (Nextron Systems)
Date
2023-07-18
File
rules/windows/powershell/powershell_script/posh_ps_set_acl_susp_location.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects PowerShell scripts to set the ACL to a file in the Windows folder

Log source

product
windows
category
ps_script
definition
bade5735-5ab0-4aa7-a642-a11be0e40872

Detection

selection_cmdlet:
    ScriptBlockText|contains|all:
        - 'Set-Acl '
        - '-AclObject '
selection_paths:
    # Note: Add more suspicious paths
    ScriptBlockText|contains:
        - '-Path "C:\Windows'
        - '-Path "C:/Windows'
        - "-Path 'C:\\Windows"
        - "-Path 'C:/Windows"
        - '-Path C:\\Windows'
        - '-Path C:/Windows'
        - '-Path $env:windir'
        - '-Path "$env:windir'
        - "-Path '$env:windir"
selection_permissions:
    # Note: Add more suspicious permissions
    ScriptBlockText|contains:
        - 'FullControl'
        - 'Allow'
condition: all of selection_*

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.defense-impairment
  • attack.t1222

MITRE ATT&CK ids this rule names

Related rules

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

Sources and licences

  • SigmaHQ

    "PowerShell Set-Acl On Windows Folder - PsScript" by frack113, Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_set_acl_susp_location.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: PowerShell Set-Acl On Windows Folder - PsScript",
entity page, dataset version ref-194533f1de86, updated 2023-07-18T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/3bf1d859-3a7e-44cb-8809-a99e066d3478 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 3bf1d859-3a7e-44cb-8809-a99e066d3478, 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.