{"id":"b5b78988-486d-4a80-b991-930eff3ff8bf","title":"PowerShell Profile Modification","description":"Detects the creation or modification of a powershell profile which could indicate suspicious activity as the profile can be used as a mean of persistence","author":"HieuTT35, Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"medium","date":"2019-10-24","modified":"2023-10-23","tags":["attack.persistence","attack.privilege-escalation","attack.t1546.013"],"technique_ids":["T1546.013"],"logsource":{"product":"windows","category":"file_event"},"falsepositives":["System administrator creating Powershell profile manually"],"references":["https://www.welivesecurity.com/2019/05/29/turla-powershell-usage/","https://persistence-info.github.io/Data/powershellprofile.html"],"source_path":"rules/windows/file/file_event/file_event_win_susp_powershell_profile.yml","source_sha256":"eb79c24350fbff0c5586f9c753e7c6f151603617ddf40773dc78bf21d610cb9e","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/file/file_event/file_event_win_susp_powershell_profile.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: PowerShell Profile Modification\nid: b5b78988-486d-4a80-b991-930eff3ff8bf\nstatus: test\ndescription: Detects the creation or modification of a powershell profile which could indicate suspicious activity as the profile can be used as a mean of persistence\nreferences:\n    - https://www.welivesecurity.com/2019/05/29/turla-powershell-usage/\n    - https://persistence-info.github.io/Data/powershellprofile.html\nauthor: HieuTT35, Nasreddine Bencherchali (Nextron Systems)\ndate: 2019-10-24\nmodified: 2023-10-23\ntags:\n    - attack.persistence\n    - attack.privilege-escalation\n    - attack.t1546.013\nlogsource:\n    product: windows\n    category: file_event\ndetection:\n    selection:\n        TargetFilename|endswith:\n            - '\\Microsoft.PowerShell_profile.ps1'\n            - '\\PowerShell\\profile.ps1'\n            - '\\Program Files\\PowerShell\\7-preview\\profile.ps1'\n            - '\\Program Files\\PowerShell\\7\\profile.ps1'\n            - '\\Windows\\System32\\WindowsPowerShell\\v1.0\\profile.ps1'\n            - '\\WindowsPowerShell\\profile.ps1'\n    condition: selection\nfalsepositives:\n    - System administrator creating Powershell profile manually\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1546.013","id":"T1546.013","name":"PowerShell Profile","page":"techniques/enterprise/T1546.013/"}],"data_path":"data/detection-rules/b5b78988-486d-4a80-b991-930eff3ff8bf.json","kind":"sigma"}
