Sigma rule: Renamed Visual Studio Code Tunnel Execution
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-cd0e919ec6f8, updated 2025-10-29T00:00:00.000Z.
Rule
- Title
- Renamed Visual Studio Code Tunnel Execution
- Status
- test
- Level
- high
- Author
- Nasreddine Bencherchali (Nextron Systems)
- Date
- 2023-09-28
- Modified
- 2025-10-29
- File
- rules/windows/process_creation/proc_creation_win_vscode_tunnel_renamed_execution.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects renamed Visual Studio Code tunnel execution. Attackers can abuse this functionality to establish a C2 channel
Log source
- product
- windows
- category
- process_creation
Detection
selection_image_only_tunnel:
OriginalFileName: null
CommandLine|endswith: '.exe tunnel'
selection_image_tunnel_args:
CommandLine|contains|all:
- '.exe tunnel'
- '--accept-server-license-terms'
selection_image_tunnel_service:
CommandLine|contains|all:
- 'tunnel '
- 'service'
- 'internal-run'
- 'tunnel-service.log'
selection_parent_tunnel:
ParentCommandLine|endswith: ' tunnel'
Image|endswith: '\cmd.exe'
CommandLine|contains|all:
- '/d /c '
- '\servers\Stable-'
- 'code-server.cmd'
filter_main_parent_code:
ParentImage|endswith:
- '\code-tunnel.exe'
- '\code.exe'
filter_main_image_code:
Image|endswith:
- '\code-tunnel.exe'
- '\code.exe'
condition: (1 of selection_image_* and not 1 of filter_main_image_*) or (selection_parent_tunnel and not 1 of filter_main_parent_*)False positives (as the rule lists them)
- Unknown
Tags
- attack.command-and-control
- attack.t1071.001
- attack.t1219
MITRE ATT&CK ids this rule names
References
- https://ipfyx.fr/post/visual-studio-code-tunnel/
- https://badoption.eu/blog/2023/01/31/code_c2.html
- https://code.visualstudio.com/docs/remote/tunnels
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_vscode_tunnel_renamed_execution.yml
Sources and licences
SigmaHQ
"Renamed Visual Studio Code Tunnel Execution" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_vscode_tunnel_renamed_execution.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Renamed Visual Studio Code Tunnel Execution",
entity page, dataset version ref-cd0e919ec6f8, updated 2025-10-29T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/2cf29f11-e356-4f61-98c0-1bdb9393d6da (accessed 2026-11-03).
Underlying source: SigmaHQ rule 2cf29f11-e356-4f61-98c0-1bdb9393d6da, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.