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
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Nasreddine Bencherchali (Nextron Systems)Created Wed Aug 24Updated Fri Jan 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
Wed Aug 24
Modified
Fri Jan 06
Path
rules/windows/file/file_event/file_event_win_susp_vscode_powershell_profile.yml
Raw Tags
attack.persistenceattack.privilege-escalationattack.t1546.013