Visual Studio Code Tunnel Service Installation

 Original Source: [Sigma source]
Title: Visual Studio Code Tunnel Service Installation
Status: test
Description:Detects the installation of VsCode tunnel (code-tunnel) as a service.
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
Author: Nasreddine Bencherchali (Nextron Systems)
Date: 2023-10-25
modified:None
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:
  -Legitimate installation of code-tunnel as a service
Level: medium