SigmaHQ/wazuh/rules/sigma_powershell_clear_powershell_history.yml
joker2013 50379800f2 123
2020-12-03 01:43:30 +03:00

16 lines
515 B
YAML

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