← Back to Explore
sigmahighHunting
Disable Powershell Command History
Detects scripts or commands that disabled the Powershell command history by removing psreadline module
Detection Query
selection:
ScriptBlockText|contains|all:
- Remove-Module
- psreadline
condition: selection
Author
Ali Alwashali
Created
2022-08-21
Data Sources
windowsps_script
Platforms
windows
Tags
attack.defense-evasionattack.t1070.003
Raw Content
title: Disable Powershell Command History
id: 602f5669-6927-4688-84db-0d4b7afb2150
status: test
description: Detects scripts or commands that disabled the Powershell command history by removing psreadline module
references:
- https://twitter.com/DissectMalware/status/1062879286749773824
author: Ali Alwashali
date: 2022-08-21
tags:
- attack.defense-evasion
- attack.t1070.003
logsource:
product: windows
category: ps_script
definition: 'Requirements: Script Block Logging must be enabled'
detection:
selection:
ScriptBlockText|contains|all:
- Remove-Module
- psreadline
condition: selection
falsepositives:
- Legitimate script that disables the command history
level: high