Detectionmediumtest
Potentially Suspicious Call To Win32_NTEventlogFile Class - PSScript
Detects usage of the WMI class "Win32_NTEventlogFile" in a potentially suspicious way (delete, backup, change permissions, etc.) from a PowerShell script
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Nasreddine Bencherchali (Nextron Systems)Created Thu Jul 13e2812b49-bae0-4b21-b366-7c142eafcde2windows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script
Definition
bade5735-5ab0-4aa7-a642-a11be0e40872
Detection Logic
Detection Logic2 selectors
detection:
selection_class:
ScriptBlockText|contains: 'Win32_NTEventlogFile'
selection_function:
ScriptBlockText|contains:
- '.BackupEventlog('
- '.ChangeSecurityPermissions('
- '.ChangeSecurityPermissionsEx('
- '.ClearEventLog('
- '.Delete('
- '.DeleteEx('
- '.Rename('
- '.TakeOwnerShip('
- '.TakeOwnerShipEx('
condition: all of selection_*False Positives
Legitimate administration and backup scripts
References
MITRE ATT&CK
Tactics
Rule Metadata
Rule ID
e2812b49-bae0-4b21-b366-7c142eafcde2
Status
test
Level
medium
Type
Detection
Created
Thu Jul 13
Path
rules/windows/powershell/powershell_script/posh_ps_win32_nteventlogfile_usage.yml
Raw Tags
attack.defense-evasion