PowerShell Script Change Permission Via Set-Acl

Detects PowerShell execution to set the ACL of a file or a folder

Sigma rule (View on GitHub)

 1title: PowerShell Script Change Permission Via Set-Acl
 2id: bdeb2cff-af74-4094-8426-724dc937f20a
 3related:
 4    - id: cae80281-ef23-44c5-873b-fd48d2666f49 # PsScript Low
 5      type: derived
 6    - id: 0944e002-e3f6-4eb5-bf69-3a3067b53d73 # ProcCreation Susp
 7      type: derived
 8    - id: 3bf1d859-3a7e-44cb-8809-a99e066d3478 # PsScript High
 9      type: derived
10status: test
11description: Detects PowerShell execution to set the ACL of a file or a folder
12references:
13    - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-acl?view=powershell-5.1
14    - https://github.com/redcanaryco/atomic-red-team/blob/74438b0237d141ee9c99747976447dc884cb1a39/atomics/T1505.005/T1505.005.md
15author: Nasreddine Bencherchali (Nextron Systems)
16date: 2022/10/18
17tags:
18    - attack.defense_evasion
19logsource:
20    category: process_creation
21    product: windows
22detection:
23    selection_img:
24        - OriginalFileName:
25              - 'PowerShell.EXE'
26              - 'pwsh.dll'
27        - Image|endswith:
28              - '\powershell.exe'
29              - '\pwsh.exe'
30    selection_cmdlet:
31        CommandLine|contains|all:
32            - 'Set-Acl '
33            - '-AclObject '
34            - '-Path '
35    condition: all of selection_*
36falsepositives:
37    - Unknown
38level: high

References

Related rules

to-top