Windows Process Creation: VS Code Tunnel (code-tunnel) Installed as a Service

Alerts on Windows process command lines consistent with installing VS Code tunnel (code-tunnel) as a service.

FreeReviewedSigma · Medium · v1
Product
windows
Category
process_creation
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2023-10-25
Updated
2026-07-30

ATT&CK techniques

C2
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. Exfiltration

  13. Impact

What it detects

This rule flags Windows process executions whose command line contains the tunnel/service combination and internal-run logging, indicating installation of the VS Code tunnel (code-tunnel) as a Windows service. Attackers can use this tunneling capability to establish remote connectivity and blend it into normal tooling. The detection relies on process creation telemetry, specifically the full command line containing 'tunnel ', 'service', 'internal-run', and 'tunnel-service.log'.

Related detections9 linkedT1071.001 — drag to rearrange
Malicious Agent Tesla Loader Malformed User-Agent in HTTP Traffic (via proxy)
Malicious Interlock RAT FileFix Download-Cradle via PowerShell WebClient with PowerShell User-Agent (via ps_script)
Suspicious Cobalt Strike Malleable Profile Beaconing via Legacy MSIE9 User-Agent and IE Compatibility URIs (via proxy)
Malicious Cobalt Strike Default Named Pipe Activity
Malicious VoidLink Kernel Rootkit C2 Endpoints via HTTP (via proxy)
Malicious EtherRAT C2 Exfiltration Endpoints via HTTP (via proxy)
Possible PlugX and NPS Proxy Command and Control Domain Lookup
Possible Backdoor Mistic Command and Control Domain Lookup
Suspicious Weaver Ant In-Memory Web Shell Marker in Web Request (via webserver)
Windows Process Creation: VS Code Tunnel (code-tunnel) Installed as a Service
Pivot detection · T1071.001 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.