PowerShell Console History Access via Script Block
Last updated on:
In this page
About the rule
Rule Type
Standard
Rule Description
Detects PowerShell script execution accessing the console history file through script block logging.
Severity
Trouble
Rule Requirement
Criteria
Action1:
actionname = "PowerShell Script Block Logged" AND (SCRIPTEXECUTED contains "ConsoleHost_history.txt" AND SCRIPTEXECUTED contains "PSReadLine" AND SCRIPTEXECUTED contains "Get-Content,gc,cat,type,Copy-Item,cp,Move-Item,mv")
select Action1.HOSTNAME,Action1.MESSAGE,Action1.SCRIPTEXECUTED,Action1.DOMAIN,Action1.PATH,Action1.USERNAME
Detection
Execution Mode
realtime
Log Sources
Windows


