cscli scenarios install sigmahq/proc_creation_win_powershell_set_acl_susp_location
1type: trigger2name: sigmahq/proc_creation_win_powershell_set_acl_susp_location3description: |4 Detects PowerShell scripts to set the ACL to a file in the Windows 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 "C:\\Windows' || evt.Parsed.CommandLine contains '-Path \'C:\\Windows' || evt.Parsed.CommandLine contains '-Path %windir%' || evt.Parsed.CommandLine contains '-Path $env:windir') && (evt.Parsed.CommandLine contains 'FullControl' || evt.Parsed.CommandLine contains 'Allow'))7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:1415 label: "PowerShell Set-Acl On Windows Folder"16 behavior : "windows:audit"17 remediation: false1819scope:20 type: ParentProcessId21 expression: evt.Parsed.ParentProcessId2223