{"id":"f99276ad-d122-4989-a09a-d00904a5f9d2","title":"Clear PowerShell History - PowerShell Module","description":"Detects keywords that could indicate clearing PowerShell history","author":"Ilyas Ochkov, Jonhnathan Ribeiro, Daniil Yugoslavskiy, oscd.community","status":"test","level":"medium","date":"2019-10-25","modified":"2022-12-02","tags":["attack.stealth","attack.t1070.003"],"technique_ids":["T1070.003"],"logsource":{"product":"windows","category":"ps_module","definition":"0ad03ef1-f21b-4a79-8ce8-e6900c54b65b"},"falsepositives":["Legitimate PowerShell scripts"],"references":["https://gist.github.com/hook-s3c/7363a856c3cdbadeb71085147f042c1a"],"source_path":"rules/windows/powershell/powershell_module/posh_pm_clear_powershell_history.yml","source_sha256":"d027913c7f804e7b32f824740b7c53b8185dc0affb1500254e7e71531a2a92ea","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_module/posh_pm_clear_powershell_history.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Clear PowerShell History - PowerShell Module\nid: f99276ad-d122-4989-a09a-d00904a5f9d2\nrelated:\n    - id: dfba4ce1-e0ea-495f-986e-97140f31af2d\n      type: derived\nstatus: test\ndescription: Detects keywords that could indicate clearing PowerShell history\nreferences:\n    - https://gist.github.com/hook-s3c/7363a856c3cdbadeb71085147f042c1a\nauthor: Ilyas Ochkov, Jonhnathan Ribeiro, Daniil Yugoslavskiy, oscd.community\ndate: 2019-10-25\nmodified: 2022-12-02\ntags:\n    - attack.stealth\n    - attack.t1070.003\nlogsource:\n    product: windows\n    category: ps_module\n    definition: 0ad03ef1-f21b-4a79-8ce8-e6900c54b65b\ndetection:\n    selection_1a_payload:\n        Payload|contains:\n            - 'del'\n            - 'Remove-Item'\n            - 'rm'\n    selection_1b_payload:\n        Payload|contains: '(Get-PSReadlineOption).HistorySavePath'\n    selection_payload_2:\n        Payload|contains|all:\n            - 'Set-PSReadlineOption'\n            - '–HistorySaveStyle'  # not sure if the homoglyph –/- is intended, just checking for both\n            - 'SaveNothing'\n    selection_payload_3:\n        Payload|contains|all:\n            - 'Set-PSReadlineOption'\n            - '-HistorySaveStyle'\n            - 'SaveNothing'\n    condition: 1 of selection_payload_* or all of selection_1*\nfalsepositives:\n    - Legitimate PowerShell scripts\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1070.003","id":"T1070.003","name":"Clear Command History","page":"techniques/enterprise/T1070.003/"}],"data_path":"data/detection-rules/f99276ad-d122-4989-a09a-d00904a5f9d2.json","kind":"sigma"}
