Potentially Suspicious Call To Win32_NTEventlogFile Class - PSScript

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects usage of the WMI class "Win32_NTEventlogFile" in a potentially suspicious way (delete, backup, change permissions, etc.) from a PowerShell script

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "PowerShell Script Block Logged" AND SCRIPTEXECUTED contains "Win32_NTEventlogFile" AND SCRIPTEXECUTED contains ".BackupEventlog(,.ChangeSecurityPermissions(,.ChangeSecurityPermissionsEx(,.ClearEventLog(,.Delete(,.DeleteEx(,.Rename(,.TakeOwnerShip(,.TakeOwnerShipEx(" select Action1.HOSTNAME,Action1.MESSAGE,Action1.SCRIPTEXECUTED

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Nasreddine Bencherchali (Nextron Systems)