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
- cae80281-ef23-44c5-873b-fd48d2666f49 (derived)
- 0944e002-e3f6-4eb5-bf69-3a3067b53d73 (derived)
- bdeb2cff-af74-4094-8426-724dc937f20a (derived)
References
- https://github.com/redcanaryco/atomic-red-team/blob/74438b0237d141ee9c99747976447dc884cb1a39/atomics/T1505.005/T1505.005.md
- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-acl?view=powershell-5.1
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
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.