Potentially Suspicious Child Process Of VsCode

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects uncommon or suspicious child processes spawning from a VsCode "code.exe" process. This could indicate an attempt of persistence via VsCode tasks or terminal profiles.

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Process started" AND PARENTPROCESSNAME endswith "\code.exe" AND (PROCESSNAME endswith "\calc.exe,\regsvr32.exe,\rundll32.exe,\cscript.exe,\wscript.exe" OR (PROCESSNAME endswith "\powershell.exe,\pwsh.exe,\cmd.exe" AND COMMANDLINE contains "Invoke-Expressions,IEX,Invoke-Command,ICM,DownloadString,rundll32,regsvr32,wscript,cscript") OR PROCESSNAME contains ":\Users\Public\,:\Windows\Temp\,:\Temp") select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Nasreddine Bencherchali (Nextron Systems)