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
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: selectionFalse Positives
Legitimate use of the profile by developers or administrators
References
MITRE ATT&CK
Sub-techniques
Rule Metadata
Rule ID
3a9fa2ec-30bc-4ebd-b49e-7c9cff225502
Status
test
Level
medium
Type
Detection
Created
2022-08-24
Modified
2023-01-06
Author
Path
rules/windows/file/file_event/file_event_win_susp_vscode_powershell_profile.yml
Raw Tags
attack.persistenceattack.privilege-escalationattack.t1546.013