Join our Newsletter — 33% off our NHI Course
Home› Glossary› Architecture & Implementation› Visual Studio Code Tunnels
Architecture & Implementation

Visual Studio Code Tunnels

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Architecture & Implementation

Visual Studio Code Tunnels is a feature that exposes a local development environment through a secure tunnel so it can be reached from another device or network. It forwards connections to the remote editor session, often for debugging or browser testing, without opening an inbound port on the host.

What Visual Studio Code Tunnels Do

Visual Studio Code Tunnels let a developer reach a local VS Code session from another device or network through a tunnel service instead of opening a direct inbound port. That makes remote editing, debugging, and browser testing possible while keeping the host less exposed to unsolicited network access.

In practice, the feature is an access path, not a security control by itself. The security posture depends on who can create the tunnel, who can connect to it, how the session is authenticated, and whether the exposed development environment contains sensitive code, secrets, or live cloud credentials.

Why Tunnels Are Useful for Development

Tunnels are designed for convenience in workflows where a developer needs to work on a machine that is not physically in front of them. They are especially useful for cross-device development, remote troubleshooting, and testing a local web app in a browser on a different endpoint.

Compared with exposing a service on an inbound port, a tunnel can simplify reachability and reduce friction in constrained environments. It also fits modern remote-development patterns where the editor session is effectively a remote workspace, even if the code and tools remain on the developer’s machine.

What the Tunnel Exposes

A VS Code Tunnel does more than forward pixels or a text editor window. It can provide reach into the local development context, including files, integrated terminals, extensions, debug sessions, and any environment variables or credentials available to the user session.

That matters because local development environments often sit closer to production-adjacent assets than people assume. If the tunnel is reachable by an unintended party, the exposure is not just editor access, but potential access to source code, build artifacts, tokens, and internal services that the workstation can reach.

For teams trying to understand how remote-access tooling gets abused, the pattern is similar to broader MITRE ATT&CK T1219 Remote Access Tools abuse, where legitimate remote utilities become a persistence or access channel. It also overlaps with the wider behaviour described in MirrorFace Threat Actor Profile Guide, which discusses VS Code tunnel abuse in the context of intrusion tradecraft.

Security Considerations for VS Code Tunnels

Because the tunnel extends a development session beyond the local machine, the main security question is trust boundary management. The most important risks are overexposure of the session, weak access governance, and accidental inclusion of sensitive material in a developer workspace that was meant to be temporary.

A tunnel also changes how defenders think about discovery and monitoring. Traffic may not look like a classic inbound server exposure, so organisations need to account for developer tooling, cloud relay paths, and remote access features in their asset and detection posture. The broader control ideas are consistent with NIST Cybersecurity Framework 2.0 and NIST Privacy Framework where visibility, access governance, and data handling boundaries matter.

Extensions and developer tooling can add further risk if the remote session is already exposed. As a result, tunnel use should be understood together with extension trust and runtime hardening, not as a standalone feature choice. That is why the same operational questions that apply to MITRE ATT&CK T1176 Software Extensions can become relevant in a VS Code environment that is reachable through a tunnel.

How to Evaluate and Use Tunnels Safely

Practitioners should treat each tunnel as a deliberate exposure of a real developer session, not as a harmless convenience feature. The practical judgment is whether the session contains anything that should not be reachable from another device, another network, or a shared troubleshooting context.

That usually means verifying which identities can initiate the tunnel, whether the access path is expected, and whether the development machine holds secrets, tokens, or privileged access to internal systems. If those conditions are present, the tunnel deserves the same review mindset used for other remote-access and developer-workstation exposure paths, including standard logging, least-privilege use, and session hygiene.

For detection and response work, it is useful to know the difference between an authorised developer workflow and an unexpected tunnel session. Where abuse is suspected, review the remote session owner, connected endpoints, and any unusual file, terminal, or extension activity before assuming the tunnel itself is benign. That is the same defensive logic that also underpins Warlock Ransomware Profile Guide when remote tooling and stolen access are part of the attack chain.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack and risk surface, while NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1219 — Remote Access SoftwareVS Code tunnels are a remote access tool that can be abused for remote interactive access.
T1176 — Software ExtensionsVS Code tunnel sessions often coexist with extension-based persistence and abuse paths.
Recommendation — Monitor tunnel creation and connections as remote access software activity in your detection pipeline. Review IDE extension trust and remove unapproved extensions that expand tunnel session risk.
NIST CSF 2.0PR.AA-05 — Identity Management, Authentication and Access EnforcementTunnels depend on controlled session access and authenticated reachability to the dev environment.
DE.CM-01 — Networks and network services are monitored to detect potential cybersecurity eventsTunnel traffic and session use should be monitored because exposure may not appear as a normal inbound port.
Recommendation — Enforce authenticated, least-privilege access for tunnel-enabled development sessions. Monitor tunnel-related network activity and alert on unexpected remote session reachability.
NIST SP 800-53 Rev 5AC-17 — Remote AccessVS Code Tunnels are a remote access mechanism that needs controlled use and monitoring.
Recommendation — Apply remote-access controls to govern who may use tunnel-based development access.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org