cscli scenarios install sigmahq/proc_creation_win_susp_non_priv_reg_or_ps1type: trigger2name: sigmahq/proc_creation_win_susp_non_priv_reg_or_ps3description: |4 Search for usage of reg or Powershell by non-privileged users to modify service configuration in registry5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && ((evt.Parsed.CommandLine contains 'reg ' && evt.Parsed.CommandLine contains 'add' || evt.Parsed.CommandLine contains 'powershell' || evt.Parsed.CommandLine contains 'set-itemproperty' || evt.Parsed.CommandLine contains ' sp ' || evt.Parsed.CommandLine contains 'new-itemproperty') && evt.Parsed.IntegrityLevel == 'Medium' && evt.Parsed.CommandLine contains 'ControlSet' && evt.Parsed.CommandLine contains 'Services' && (evt.Parsed.CommandLine contains 'ImagePath' || evt.Parsed.CommandLine contains 'FailureCommand' || evt.Parsed.CommandLine contains 'ServiceDLL'))7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:14 - attack.t11121516 label: "Non-privileged Usage of Reg or Powershell"17 behavior : "windows:audit"18 remediation: false1920scope:21 type: ParentProcessId22 expression: evt.Parsed.ParentProcessId2324