Suspicious Visual Studio Code Tunnel Service Deployment (via process_creation)

This rule detects the installation of VsCode tunnel (code-tunnel) as a service.

SigmamediumWindowsv1
sigma
title: Suspicious Visual Studio Code Tunnel Service Deployment (via process_creation)
id: 8d99f7e0-72b5-5075-bb87-a1e2ae9d9c9d
status: stable
description: This rule detects the installation of VsCode tunnel (code-tunnel) as a service.
references:
    - https://attack.mitre.org/techniques/T1071/001/
    - 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
author: Huntrule Team
date: 2026-02-05
tags:
    - attack.command-and-control
    - attack.t1071.001
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains|all:
            - 'tunnel '
            - 'service'
            - 'internal-run'
            - 'tunnel-service.log'
    condition: selection
falsepositives:
    - Unknown
level: medium

Known false positives

  • Unknown

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