Sigma rule: PowerShell Set-Acl On Windows Folder
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-3c0eb8a75781, updated 2022-10-18T00:00:00.000Z.
Rule
- Title
- PowerShell Set-Acl On Windows Folder
- Status
- test
- Level
- high
- Author
- Nasreddine Bencherchali (Nextron Systems)
- Date
- 2022-10-18
- File
- rules/windows/process_creation/proc_creation_win_powershell_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
- process_creation
Detection
selection_img:
- OriginalFileName:
- 'PowerShell.EXE'
- 'pwsh.dll'
- Image|endswith:
- '\powershell.exe'
- '\pwsh.exe'
selection_cmdlet:
CommandLine|contains|all:
- 'Set-Acl '
- '-AclObject '
selection_paths:
# Note: Add more suspicious paths
CommandLine|contains:
- '-Path "C:\Windows'
- "-Path 'C:\\Windows"
- '-Path %windir%'
- '-Path $env:windir'
selection_permissions:
# Note: Add more suspicious permissions
CommandLine|contains:
- 'FullControl'
- 'Allow'
condition: all of selection_*False positives (as the rule lists them)
- Unknown
Tags
- attack.stealth
Related rules
- cae80281-ef23-44c5-873b-fd48d2666f49 (derived)
- bdeb2cff-af74-4094-8426-724dc937f20a (derived)
- 3bf1d859-3a7e-44cb-8809-a99e066d3478 (derived)
References
- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-acl?view=powershell-5.1
- https://github.com/redcanaryco/atomic-red-team/blob/74438b0237d141ee9c99747976447dc884cb1a39/atomics/T1505.005/T1505.005.md
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/process_creation/proc_creation_win_powershell_set_acl_susp_location.yml
Sources and licences
SigmaHQ
"PowerShell Set-Acl On Windows Folder" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_powershell_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",
entity page, dataset version ref-3c0eb8a75781, updated 2022-10-18T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/0944e002-e3f6-4eb5-bf69-3a3067b53d73 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 0944e002-e3f6-4eb5-bf69-3a3067b53d73, 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.