Clear PowerShell History - PowerShell Module
Description
Detects keywords that could indicate clearing PowerShell history
Query · sigma
selection_1a_payload: Payload|contains: - del - Remove-Item - rm selection_1b_payload: Payload|contains: (Get-PSReadlineOption).HistorySavePath selection_payload_2: Payload|contains|all: - Set-PSReadlineOption - –HistorySaveStyle - SaveNothing selection_payload_3: Payload|contains|all: - Set-PSReadlineOption - -HistorySaveStyle - SaveNothing condition: 1 of selection_payload_* or all of selection_1*
Known false positives
- Legitimate PowerShell scripts