SigmaHQ/wazuh/rules/sigma_powershell_clear_powershell_history.yml

16 lines
515 B
YAML
Raw Normal View History

2020-12-02 22:43:30 +00:00
alert:
- debug
description: Detects keywords that could indicate clearing PowerShell history
filter:
- query:
query_string:
query: "\\*.keyword:(*del\\ \\(Get\\-PSReadlineOption\\).HistorySavePath* OR *Set\\-PSReadlineOption\\ \u2013HistorySaveStyle\\ SaveNothing* OR *Remove\\-Item\\ \\(Get\\-PSReadlineOption\\).HistorySavePath* OR *rm\\ \\(Get\\-PSReadlineOption\\).HistorySavePath*)"
index: wazuh-alerts-3.x-*
name: dfba4ce1-e0ea-495f-986e-97140f31af2d_0
priority: 3
realert:
minutes: 0
type: any