{"id":"3a9fa2ec-30bc-4ebd-b49e-7c9cff225502","title":"VsCode Powershell Profile Modification","description":"Detects the creation or modification of a vscode related powershell profile which could indicate suspicious activity as the profile can be used as a mean of persistence","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"medium","date":"2022-08-24","modified":"2023-01-06","tags":["attack.persistence","attack.privilege-escalation","attack.t1546.013"],"technique_ids":["T1546.013"],"logsource":{"product":"windows","category":"file_event"},"falsepositives":["Legitimate use of the profile by developers or administrators"],"references":["https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-7.2"],"source_path":"rules/windows/file/file_event/file_event_win_susp_vscode_powershell_profile.yml","source_sha256":"76c2a4435f0a782ae3993ca3af10eaa45c7bc8fa7f6c98c935c5315d0e671761","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/file/file_event/file_event_win_susp_vscode_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: VsCode Powershell Profile Modification\nid: 3a9fa2ec-30bc-4ebd-b49e-7c9cff225502\nrelated:\n    - id: b5b78988-486d-4a80-b991-930eff3ff8bf\n      type: similar\nstatus: test\ndescription: Detects the creation or modification of a vscode related powershell profile which could indicate suspicious activity as the profile can be used as a mean of persistence\nreferences:\n    - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-7.2\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2022-08-24\nmodified: 2023-01-06\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: '\\Microsoft.VSCode_profile.ps1'\n    condition: selection\nfalsepositives:\n    - Legitimate use of the profile by developers or administrators\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/3a9fa2ec-30bc-4ebd-b49e-7c9cff225502.json","kind":"sigma"}
