2019-10-29 00:44:22 +00:00
|
|
|
|
title: Clear PowerShell History
|
2019-12-19 22:56:36 +00:00
|
|
|
|
id: dfba4ce1-e0ea-495f-986e-97140f31af2d
|
2019-10-29 00:44:22 +00:00
|
|
|
|
status: experimental
|
|
|
|
|
description: Detects keywords that could indicate clearing PowerShell history
|
|
|
|
|
date: 2019/10/25
|
|
|
|
|
author: Ilyas Ochkov, oscd.community
|
|
|
|
|
references:
|
|
|
|
|
- https://gist.github.com/hook-s3c/7363a856c3cdbadeb71085147f042c1a
|
|
|
|
|
tags:
|
|
|
|
|
- attack.defense_evasion
|
2020-07-14 15:53:32 +00:00
|
|
|
|
- attack.t1070.003
|
2020-08-24 00:01:50 +00:00
|
|
|
|
- attack.t1146 # an old one
|
2019-10-29 00:44:22 +00:00
|
|
|
|
logsource:
|
|
|
|
|
product: windows
|
|
|
|
|
service: powershell
|
|
|
|
|
detection:
|
|
|
|
|
keywords:
|
|
|
|
|
- 'del (Get-PSReadlineOption).HistorySavePath'
|
|
|
|
|
- 'Set-PSReadlineOption –HistorySaveStyle SaveNothing'
|
|
|
|
|
- 'Remove-Item (Get-PSReadlineOption).HistorySavePath'
|
|
|
|
|
- 'rm (Get-PSReadlineOption).HistorySavePath'
|
|
|
|
|
condition: keywords
|
|
|
|
|
falsepositives:
|
|
|
|
|
- some PS-scripts
|
|
|
|
|
level: medium
|