Visual Studio Code Tunnel Execution
Description
Detects Visual Studio Code tunnel execution. Attackers can abuse this functionality to establish a C2 channel
Query · sigma
selection_only_tunnel: OriginalFileName: null CommandLine|endswith: .exe tunnel selection_tunnel_args: CommandLine|contains|all: - .exe tunnel - --accept-server-license-terms selection_parent_tunnel: ParentCommandLine|endswith: ' tunnel' Image|endswith: \cmd.exe CommandLine|contains|all: - '/d /c ' - \servers\Stable- - code-server.cmd condition: 1 of selection_*
Known false positives
- Legitimate use of Visual Studio Code tunnel