VeriKQL by Kaushik Saha

T1219.001 IDE Tunneling

Command and Controlon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0133 IDE Tunneling Detection via Process, File, and Network Behaviors

AN0375 Windows

Detection of the creation of VSCode or JetBrains CLI tunneling profiles followed by persistent remote access via IDE-integrated tunnels, potentially authenticated via GitHub or JetBrains accounts.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SysmonEventCode=1
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (1)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (1)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

WinEventLog:SysmonEventCode=11
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (11)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (11)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

NSM:FlowOutbound connection to *.tunnels.api.visualstudio.com or *.devtunnels.msNot mapped to Sentinel yet.

AN0376 Linux

Creation of VSCode tunnel configuration file combined with interactive remote session via code CLI or ssh with JetBrains gateway.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLexecve on code or jetbrains-gateway with remote flagsNot mapped to Sentinel yet.
auditd:SYSCALLopen: Write to ~/.vscode-cli/code_tunnel.jsonNot mapped to Sentinel yet.
NSM:FlowConnections to *.devtunnels.ms or tunnels.api.visualstudio.comNot mapped to Sentinel yet.

AN0377 macOS

Detection of JetBrains or VSCode tunnel profile creation followed by unusual persistent SSH or IDE-based tunnel communications to devtunnel APIs.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogprocess: code or jetbrains-gateway launching with --tunnel or --remoteNot mapped to Sentinel yet.
macos:unifiedlogcreation of ~/.vscode-cli/code_tunnel.jsonNot mapped to Sentinel yet.
NSM:FlowHTTPs connection to tunnels.api.visualstudio.comNot mapped to Sentinel yet.

Content Hub rules tagged with it (0)

No Content Hub rule is tagged with this technique.

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

In Sigma rules

No SigmaHQ rule names it in their tags outright.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.