Suspicious VsCode Powershell Profile Change (via file_event)

This rule detects the creation or modification of a vscode related powershell profile which could indicate anomalous behavior as the profile can be used as a mean of persistence

SigmamediumWindowsv1
sigma
title: Suspicious VsCode Powershell Profile Change (via file_event)
id: 2be03771-0a1d-56e4-98bf-777602500139
status: stable
description: This rule detects the creation or modification of a vscode related powershell profile which could indicate anomalous behavior as the profile can be used as a mean of persistence
references:
    - https://attack.mitre.org/techniques/T1546/013/
    - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-7.2
author: Huntrule Team
date: 2026-02-25
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1546.013
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename|endswith: '\Microsoft.VSCode_profile.ps1'
    condition: selection
falsepositives:
    - Unknown
level: medium

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.