cscli scenarios install sigmahq/proc_creation_win_powershell_set_acl
1type: trigger2name: sigmahq/proc_creation_win_powershell_set_acl3description: |4 Detects PowerShell execution to set the ACL of a file or a folder5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && ((evt.Parsed.OriginalFileName in ['PowerShell.EXE', 'pwsh.dll'] || evt.Parsed.Image endsWith '\\powershell.exe' || evt.Parsed.Image endsWith '\\pwsh.exe') && evt.Parsed.CommandLine contains 'Set-Acl ' && evt.Parsed.CommandLine contains '-AclObject ' && evt.Parsed.CommandLine contains '-Path ')7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:1415 label: "PowerShell Script Change Permission Via Set-Acl"16 behavior : "windows:audit"17 remediation: false1819scope:20 type: ParentProcessId21 expression: evt.Parsed.ParentProcessId2223