Detectionmediumtest

VsCode Powershell Profile Modification

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

Open in Detection LabConvert ruleBuild Package
Nasreddine BencherchaliCreated 2022-08-24Updated 2023-01-063a9fa2ec-30bc-4ebd-b49e-7c9cff225502windows
Log Source
WindowsFile Event
ProductWindows← raw: windows
CategoryFile Event← raw: file_event

Events for file system activity including creation, modification, and deletion.

Detection Logic
Detection Logic1 selector
detection:
    selection:
        TargetFilename|endswith: '\Microsoft.VSCode_profile.ps1'
    condition: selection
False Positives

Legitimate use of the profile by developers or administrators

Rule Metadata
Rule ID
3a9fa2ec-30bc-4ebd-b49e-7c9cff225502
Status
test
Level
medium
Type
Detection
Created
2022-08-24
Modified
2023-01-06
Path
rules/windows/file/file_event/file_event_win_susp_vscode_powershell_profile.yml
Raw Tags
attack.persistenceattack.privilege-escalationattack.t1546.013
View on GitHub