Disable Powershell Command History

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects scripts or commands that disabled the Powershell command history by removing psreadline module

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "PowerShell Script Block Logged" AND SCRIPTEXECUTED contains "Remove-Module" AND SCRIPTEXECUTED contains "psreadline" select Action1.HOSTNAME,Action1.MESSAGE,Action1.SCRIPTEXECUTED

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Ali Alwashali