kevmap

TechniquesT1219.001 › AN0376

AN0376 Analytic 0376

Linux · attack.mitre.org · ATT&CK Enterprise v19.2

<p>Creation of VSCode tunnel configuration file combined with interactive remote session via code CLI or ssh with JetBrains gateway.</p>
Detects
T1219.001 IDE Tunneling
Part of
DET0133 IDE Tunneling Detection via Process, File, and Network Behaviors

Log sources and channels

Exactly as MITRE states them in x_mitre_log_source_references. Where a channel is vague, it is vague in the source; kevmap does not tidy it.

Log sourceChannelData component
auditd:SYSCALLexecve on code or jetbrains-gateway with remote flagsDC0032 Process Creation
auditd:SYSCALLopen: Write to ~/.vscode-cli/code_tunnel.jsonDC0039 File Creation
NSM:FlowConnections to *.devtunnels.ms or tunnels.api.visualstudio.comDC0082 Network Connection Creation

Mutable elements

Parameters MITRE marks as environment-specific. These are the knobs you are expected to tune; they are why an analytic is not a rule.

FieldDescription
PathRegexRegex patterns for user home directory file paths may vary by distro or user.
TunnelCLIFlagsTunnel flags used by CLI tools can be customized or obfuscated by adversaries.
UsernameThe Linux user account associated with tunnel initiation; may vary across developer environments
TunnelArtifactPathThe filepath to the .vscode-cli/code_tunnel.json file may vary by distribution or IDE version
CommandLineFlagsDifferent IDEs or wrapper scripts may launch with different tunnel-related CLI options (e.g., --remote, --host)