cscli scenarios install sigmahq/proc_creation_win_susp_nteventlogfile_usage
1type: trigger2name: sigmahq/proc_creation_win_susp_nteventlogfile_usage3description: |4 Detects usage of the WMI class "Win32_NTEventlogFile" in a potentially suspicious way (delete, backup, change permissions, etc.) from a PowerShell script5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && (evt.Parsed.CommandLine contains 'Win32_NTEventlogFile' && (evt.Parsed.CommandLine contains '.BackupEventlog(' || evt.Parsed.CommandLine contains '.ChangeSecurityPermissions(' || evt.Parsed.CommandLine contains '.ChangeSecurityPermissionsEx(' || evt.Parsed.CommandLine contains '.ClearEventLog(' || evt.Parsed.CommandLine contains '.Delete(' || evt.Parsed.CommandLine contains '.DeleteEx(' || evt.Parsed.CommandLine contains '.Rename(' || evt.Parsed.CommandLine contains '.TakeOwnerShip(' || evt.Parsed.CommandLine contains '.TakeOwnerShipEx('))7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:1415 label: "Potentially Suspicious Call To Win32_NTEventlogFile Class"16 behavior : "windows:audit"17 remediation: false1819scope:20 type: ParentProcessId21 expression: evt.Parsed.ParentProcessId2223