Possible PowerShell Script Change Permission Through Set-Acl - PsScript (via ps_script)

This rule detects PowerShell scripts set ACL to of a file or a folder

SigmalowWindowsv1
sigma
title: Possible PowerShell Script Change Permission Through Set-Acl - PsScript (via ps_script)
id: b58e6bc2-e730-5cb3-8ef2-b7a50d7dcd02
status: stable
description: This rule detects PowerShell scripts set ACL to of a file or a folder
references:
    - https://attack.mitre.org/techniques/T1222/
    - https://github.com/redcanaryco/atomic-red-team/blob/74438b0237d141ee9c99747976447dc884cb1a39/atomics/T1505.005/T1505.005.md
author: Huntrule Team
date: 2026-02-11
tags:
    - attack.defense-impairment
    - attack.t1222
logsource:
    product: windows
    category: ps_script
    definition: bade5735-5ab0-4aa7-a642-a11be0e40872
detection:
    selection:
        ScriptBlockText|contains|all:
            - 'Set-Acl '
            - '-AclObject '
            - '-Path '
    condition: selection
falsepositives:
    - Unknown
level: low

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.