{"id":"f4ff7323-b5fc-4323-8b52-6b9408e15788","title":"Potential PowerShell Console History Access Attempt via History File","description":"Detects potential access attempts to the PowerShell console history directly via history file (ConsoleHost_history.txt).\nThis can give access to plaintext passwords used in PowerShell commands or used for general reconnaissance.\n","author":"Luc Génaux","status":"experimental","level":"medium","date":"2025-04-03","modified":"","tags":["attack.credential-access","attack.t1552.001"],"technique_ids":["T1552.001"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Legitimate access of the console history file is possible"],"references":["https://0xdf.gitlab.io/2018/11/08/powershell-history-file.html"],"source_path":"rules/windows/process_creation/proc_creation_win_powershell_console_history_file_access.yml","source_sha256":"37e30936d9e4de3099c9502626204928f697d6eaea2a00f6a8e4ee5b2907e348","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_powershell_console_history_file_access.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Potential PowerShell Console History Access Attempt via History File\nid: f4ff7323-b5fc-4323-8b52-6b9408e15788\nstatus: experimental\ndescription: |\n    Detects potential access attempts to the PowerShell console history directly via history file (ConsoleHost_history.txt).\n    This can give access to plaintext passwords used in PowerShell commands or used for general reconnaissance.\nreferences:\n    - https://0xdf.gitlab.io/2018/11/08/powershell-history-file.html\nauthor: Luc Génaux\ndate: 2025-04-03\ntags:\n    - attack.credential-access\n    - attack.t1552.001\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection:\n        CommandLine|contains:\n            - 'ConsoleHost_history.txt'\n            - '(Get-PSReadLineOption).HistorySavePath'\n    condition: selection\nfalsepositives:\n    - Legitimate access of the console history file is possible\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1552.001","id":"T1552.001","name":"Credentials In Files","page":"techniques/enterprise/T1552.001/"}],"data_path":"data/detection-rules/f4ff7323-b5fc-4323-8b52-6b9408e15788.json","kind":"sigma"}
