Malicious VS Code extensions and workspace tasks: hunting them with Tanium

Malicious VS Code extensions and workspace tasks: hunting them with Tanium

On September 18, 2026, government agencies in Japan, the United States, Australia, and Germany jointly attributed the Contagious Interview campaign to North Korea's WaterPlum group, and put its reach at 30,000 or more infected devices in over 100 countries between December 2025 and July 2026 (joint advisory, FBI IC3). One of the malware families the advisory names, StoatWaffle, runs through a VS Code configuration file that executes when the victim opens the project folder and trusts it. Two weeks earlier, Kaspersky documented an Iranian group's remote access trojan installing a fake VS Code extension called "GitHub Copilot Helper" so that it relaunches every time the editor starts (Securelist).

This walkthrough treats the code editor as an execution host. It finds the extensions an editor loads and the workspace task files it can run with Tanium Index, finds what they launched with Trace, and ends by collecting the extension code itself for review. It assumes you build questions in Interact and read Trace output daily, so it explains only the regex behavior and parameter choices that change your answer.

Key takeaways

  • VS Code runs extensions in an extension host that has the editor's own permissions: files, network, and child processes. A malicious extension runs every time the editor launches (T1176.002, IDE Extensions).

  • Two routes into a developer's editor recur across 2026 reporting: an extension that persists, whether counterfeit or planted by an implant, and a workspace .vscode/tasks.json that runs a shell command when a trusted folder opens.

  • Attackers borrow names you already trust. Mirage Kitten's implant labels its extension "GitHub Copilot Helper", and the Open VSX "evil twin" wave republished 77 real Marketplace extension names, almost all at version 0.0.1.

  • VS Code forks such as Cursor, and Linux hosts running the VS Code Server, keep their own extension folders. An inventory scoped to .vscode\extensions never sees them.

  • The task-file loaders hide JavaScript in files named like dictionaries, fonts, and images, then hand those files to node.

  • Index returns each installed extension as a directory record, so one question inventories every extension and version across Windows, Linux, and macOS.

  • Index also hashes each extension's entry point, so an extension version whose extension.js differs on one endpoint from every other copy stands out from a single question.

  • Trace keeps process history, so a Marketplace install shows up as the editor spawning its signature verifier with the package name on the command line.

  • Trace separates node running a .dict or .woff2 file from ordinary node server.js, which is the WaterPlum loader's tell.

Before you start

Requirement

Detail

Modules

Tanium Threat Response (Trace sensors with Recorder process-event collection enabled, plus Live Response for Step 8) and Tanium Index.

Platform

Tanium Cloud, content as of September 2026.

Endpoints

Windows, Linux, and macOS. Index - File Details and Trace Executed Processes implement all three. The editor-parent pattern in Steps 3 and 6 names the Windows and Linux editor binaries.

RBAC

READ_SENSOR, plus access to the Threat Response and Index content sets.

Not covered: Git hook persistence, tunnel network traffic, and dynamic analysis of extension code. See "What this hunt does and does not establish."

How malicious extensions and workspace tasks run

An extension is a JavaScript package the editor loads into its extension host, and Microsoft's documentation is plain that the extension host has the same permissions as VS Code itself: it can read and write files, make network requests, and run external processes (Extension runtime security). ATT&CK tracks this as T1176.002, Software Extensions: IDE Extensions, under Persistence, because trust is granted once at install and the extension runs on every launch after that.

The group Kaspersky tracks as Mirage Kitten used an extension purely for persistence. Its NodeRabbit RAT reaches developers through trojanized coding challenges sent by fake recruiters on LinkedIn and other job platforms. The third NodeRabbit variant has a command that writes a fake extension displayed as "GitHub Copilot Helper", described as an "AI coding assistant helper service", set to activate on onStartupFinished. Its extension.js starts the implant as a detached Node.js process. It borrows a trusted publisher name from local extension metadata, and the same handler tries to disable Workspace Trust (Securelist, September 1, 2026). The implant creates the extension itself rather than installing it through the editor.

CrowdStrike, Google, and the Shadowserver Foundation took down the GlassWorm botnet on May 26, 2026. Its operators, whom CrowdStrike assesses are likely based in Russia, had published trojanized extensions to the Open VSX marketplace, disguised as time trackers and code formatters, that targeted VS Code, Cursor, Positron, Windsurf, and VSCodium (CrowdStrike). Between July 26 and August 1, 2026, Manifold Security found 77 more Open VSX extensions that republished the names and descriptions of real Marketplace extensions from accounts that did not own them, almost always at version 0.0.1. Nineteen of them sent the open repository's git remote and CI project identifiers to a newly registered domain (Manifold Security). Manifold found no spawned shell in any of them.

Workspace tasks: code that runs when a folder opens

A workspace can carry its own .vscode/tasks.json, and a task whose runOptions set runOn to folderOpen runs automatically when the folder opens. The victim has to trust the workspace once. After that, the prompt never returns, and newly pulled tasks run without asking again (Abstract Security). The joint advisory's mitigations follow directly from this: open unknown projects in Restricted Mode by answering "No" to the trust prompt, and read any .vscode/tasks.json before trusting the folder (FBI IC3).

The Contagious Interview task files typically pipe a fetched script to a shell, then run a local file with node that is named to pass a glance. One repository's task ran node .vscode/spellright.dict, borrowing the dictionary format of the legitimate SpellRight extension. Others ran node webfonts/fa-brands-regular.woff2 or node src/assets/card4.jpeg. Node.js executes JavaScript regardless of file extension (Abstract Security). A real SpellRight dictionary is a plain word list. The malicious one was over 6KB of obfuscated JavaScript that opened with const _0x, and it staged a second-stage main.js in a hidden Programs_X64 folder under the user's home directory (OpenSourceMalware).

Choosing which extensions and paths to look at

Start from paths. Every editor in this family keeps extensions in its own folder under the user profile. The inventory question in Step 1 names .vscode, .vscode-insiders, .vscode-server, and .cursor, and also carries .vscode-oss and .windsurf. Confirm the folder name each fork uses on one developer machine before you rely on the alternation, and add any fork your developers run that is missing. .vscode-server is where the VS Code Server keeps extensions on Linux hosts that developers edit remotely, so a server with no editor installed can still carry them.

Then add real identifiers from reporting. Manifold published all 77 evil-twin extension IDs with their versions and VSIX hashes. marketplace.visualstudio, taskfile.vscode-task, and amd.gaia-vscode are three of them. Match on the ID and the version together, because each ID also belongs to a legitimate extension on Microsoft's Marketplace, and only the low-version republications are the counterfeits (Manifold Security). Mirage Kitten's implant uses a display name rather than a published ID, so it surfaces through the inventory's outliers and the install-history gap in Step 3, not through a name match.

Step 1: Inventory extensions across VS Code, its forks, and remote hosts

List every entry directly inside each editor's extensions folder, on every platform.

Get "Index - File Details"["100","^.*[\\/]\.(vscode|vscode-server|vscode-insiders|vscode-oss|cursor|windsurf)[\\/]extensions$","*","*","*","*","*","*","*","1","1","Directory Path","Ascending"] from all machines

Every question here needs the platform READ_SENSOR privilege, and content-set scoping means you may see fewer endpoints than your fleet holds.

Each installed extension comes back as a row with Object Type of directory and a File Name of publisher.name-version, so you get one row per extension version rather than one per file. extensions.json and a .obsolete file sit alongside as file rows. The parameters that change the answer:

Position

Parameter

Value here

Why

1

Row Limit

100

The maximum. A heavy extension user can exceed it; split the question per editor folder if rows look cut off.

2

Directory Path

regex

Must match the folder exactly, so child files of each extension stay out.

10

Treat Inputs as Regular Expressions

1

Positions 2 and 3 are regexes.

11

Show Exact Timestamps

1

Returns real Created times instead of rounded ones like "<1 week ago". Step 3 needs the real time.

Write the path separator class as [\\/], a backslash and a forward slash. A class written [\/] matches only the forward slash: the question completes, returns your Linux and macOS rows, and silently drops every Windows path.

Expect several version folders of the same extension on hosts that auto-update, which is why the parser below separates publisher.name from the version. macOS paths arrive under /System/Volumes/Data/, which the leading ^.* absorbs. Index answers from its own database, so the question covers the paths your Index configuration includes, and user profile directories need to be among them. The sensor result caches for 900 seconds.

Export the results and split each folder name into its parts. Extension versions are major.minor.patch only, and platform-specific builds add a target after the version: win32-x64, win32-arm64, linux-x64, linux-arm64, linux-armhf, alpine-x64, alpine-arm64, darwin-x64, darwin-arm64, or web (Publishing Extensions). A parser that expects the version last reads publisher.name-1.2.3-win32-x64 as a name with no version, and a pandas groupby on that column drops the row without a word. This one strips the target first.

import re import pandas as pd # Platform-specific builds carry a target after the version, e.g. publisher.name-1.2.3-win32-x64 TARGETS = ('win32-x64', 'win32-arm64', 'linux-x64', 'linux-arm64', 'linux-armhf', 'alpine-x64', 'alpine-arm64', 'darwin-x64', 'darwin-arm64', 'web') TARGET_SUFFIX = re.compile(r'-(' + '|'.join(map(re.escape, TARGETS)) + r')$') def parse_vscode_extension_dir(dirname): """ Parse VSCode extension directory name into publisher, name, version, and target. Handles names with dashes in the extension name and platform-specific builds. """ if '.' not in dirname: return None, None, None, None publisher, rest = dirname.split('.', 1) target = None match = TARGET_SUFFIX.search(rest) if match: target = match.group(1) rest = rest[:match.start()] if '-' in rest: name, version = rest.rsplit('-', 1) # Only treat as version if it looks like a version (digits and dots) if re.match(r'^\d+(\.\d+)*$', version): return publisher, name, version, target return publisher, rest, None, target df = pd.read_csv('extensions_inventory.csv') # Step 1 results, exported from Interact # Keep extension folders only; extensions.json and .obsolete sit alongside them df = df[df['Object Type'] == 'directory'].copy() df[['Publisher', 'Name', 'Version', 'Target']] = df['File Name'].apply( lambda x: pd.Series(parse_vscode_extension_dir(x)) ) df['Extension ID'] = df['Publisher'].str.cat(df['Name'], sep='.') # If the export includes a Count column (merged rows), weight by it df['Rows'] = pd.to_numeric(df['Count'], errors='coerce').fillna(1) if 'Count' in df.columns else 1 # Count occurrences (prevalence) per extension and version. dropna=False keeps # folder names that did not parse, which deserve a look rather than a silent drop. extension_summary = ( df.groupby(['Extension ID', 'Version'], dropna=False)['Rows'] .sum() .reset_index(name='count') .sort_values('count', ascending=True) # Low prevalence first )

The summary lists the rarest extension versions first. Extension ID is the publisher.name form that Manifold's list and the extensions.allowed setting both use, so you can match on it directly. A row with an empty Extension ID or Version is a folder that does not follow the naming scheme, so read those before the rest.

Step 2: Hash each extension's entry point and manifest

List every package.json and extension.js at the top of an extension folder or in its out or dist subfolder, with sizes and hashes.

Get "Index - File Details"["100","^.*[\\/]\.(vscode|vscode-server|vscode-insiders|vscode-oss|cursor|windsurf)[\\/]extensions[\\/][^\\/]+([\\/](out|dist))?$","^(package\.json|extension\.js)$","*","*","*","*","*","*","1","1","Directory Path","Ascending"] from all machines

Returns Directory Path, File Name, Size (Bytes), Magic Number (First 4 bytes), the MD5, SHA1, and SHA256 hashes, and Last Hashed next to the usual timestamps. Each extension contributes up to two rows, so the 100-row limit covers roughly 50 extensions per endpoint; split the question by editor folder for heavier users. The question looks for entry points named extension.js in the three usual places. An entry point with another name or location is still named in the extension's package.json under main, which Step 8 reads.

Every endpoint that installs the same version of an extension unpacks the same entry point, so extension.js should hash the same everywhere that version appears. Two exceptions shape the comparison. Platform-specific builds ship different files per target, so compare within one target. VS Code also writes its own install metadata into each installed copy's package.json (microsoft/vscode #68156), so manifests legitimately differ between installs; compare entry points only. A version whose entry point disagrees with itself has been edited on at least one endpoint, and the rarer hash is the copy to collect.

Export the results and compare them, with parse_vscode_extension_dir from Step 1 already defined:

import re import pandas as pd files = pd.read_csv('extension_files.csv') # Step 2 results, exported from Interact # Compare entry points only: VS Code writes its own install metadata into each copy's package.json entry_points = files[(files['Object Type'] == 'file') & (files['File Name'] == 'extension.js')].copy() def extension_folder(directory_path): """Return the extension folder name, stepping out of an out or dist subfolder.""" parts = [p for p in re.split(r'[\\/]', directory_path) if p] return parts[-2] if parts[-1] in ('out', 'dist') else parts[-1] entry_points['Folder'] = entry_points['Directory Path'].apply(extension_folder) entry_points[['Publisher', 'Name', 'Version', 'Target']] = entry_points['Folder'].apply( lambda x: pd.Series(parse_vscode_extension_dir(x)) ) entry_points['Extension ID'] = entry_points['Publisher'].str.cat(entry_points['Name'], sep='.') if 'Count' in entry_points.columns: entry_points['Rows'] = pd.to_numeric(entry_points['Count'], errors='coerce').fillna(1) else: entry_points['Rows'] = 1 # The same extension, version, and platform target should carry the same entry point everywhere keys = ['Extension ID', 'Version', 'Target'] per_hash = ( entry_points.groupby(keys + ['SHA256 Hash'], dropna=False)['Rows'] .sum() .reset_index(name='copies') ) disagreeing = per_hash.groupby(keys, dropna=False)['SHA256 Hash'].transform('nunique') > 1 # Rarest copy first: when a version disagrees with itself, the odd one out is the lead hash_outliers = per_hash[disagreeing].sort_values(keys + ['copies'])

hash_outliers lists only the versions that disagree with themselves, rarest copy first, so an empty result is the normal one.

Step 3: Establish what the editor spawns, and read install history from it

Stack every process the editor itself launched in the past week.

Get "Trace Executed Processes"["1 week","","1","0","100","1","","(?i)[\\/](code|code-insiders|cursor|windsurf|codium)(\.exe)?$","","","",""] from all machines

The Trace parameters that matter for every question in this post:

Position

Parameter

Value here

Why

3

TreatInputAsRegEx

1

Filters are regexes.

5

MaxResultsPerHost

100

Returns up to 100 events per endpoint; the default returns one.

6

MakeStackable

1 here, 0 in later steps

1 strips endpoint name, user, and timestamps to show prevalence. 0 keeps them for investigation.

7, 8, 9

ProcessPath, ParentProcessPath, CommandLine

varies

Case-sensitive regex filters, so each pattern starts with (?i).

Trace regex filters search within the field rather than matching the whole value, so the $ at the end of a path pattern is what stops it matching longer paths that merely contain the name.

With stacking on, rows stay separate wherever command lines differ. On Windows, the baseline you should expect is Code.exe launching vsce-sign.exe verify --package against a path in CachedExtensionVSIXs that ends in publisher.name-version. That is the signature check Microsoft describes: the Marketplace signs every extension it publishes, and VS Code verifies the signature at install (Extension runtime security). This question therefore doubles as extension install and update history for as long as your Recorder retains process events.

Put this step beside Step 1. Rerun this question with MakeStackable at 0 to get endpoint names and times. An extension folder from Step 1 whose Created time falls inside your Recorder window, with no matching verify event, is the first one to open. Mirage Kitten's implant creates its extension itself, so no Marketplace install happens for it. We have not established which local install paths skip verification, so treat a missing verify event as a lead, not a verdict.

The parent pattern names Code.exe, the Linux code binary, and the fork binaries. On macOS, check the parent path your own Trace data records for the editor before relying on the pattern.

Step 4: Find extensions installed from a local VSIX

Find any process whose command line installed an extension from a .vsix file, whoever launched it.

Get "Trace Executed Processes"["1 week","","1","0","100","0","","","(?i)--install-extension +[^ ]*\.vsix","","",""] from all machines

Returns per-host rows with Parent Process Path, Process Path, Command Line, Username, and Start Time. The parent tells you whether a person at a shell, a provisioning script, or something unexpected did the install. Microsoft's documentation notes that installs made through the command line do not automatically trust the extension's publisher (Extension runtime security).

The command-line pattern has no leading .*. Because Trace filters search the field, a leading .* adds nothing. On long command lines, and Electron applications such as VS Code start helper processes with long ones, it multiplies the matching work for no gain. Anchor command-line patterns on literal text instead. The pattern expects an unquoted path after --install-extension, so widen it if your developers keep VSIX files in paths with spaces.

Step 5: Find workspace task files and fake dictionaries

List every tasks.json and spellright.dict that sits in a .vscode folder, newest first.

Get "Index - File Details"["100","^.*[\\/]\.vscode$","^(tasks\.json|spellright\.dict)$","*","*","*","*","*","*","1","1","Last Modified","Descending"] from all machines

Returns Directory Path, File Name, Size (Bytes), Created, Last Modified, Magic Number (First 4 bytes), and the hashes, sorted by positions 12 and 13. The benign baseline is tasks.json shipped inside extension packages, under .vscode\extensions\<extension>\...\.vscode, and the cached copies VS Code keeps in CachedExtensionVSIXs, which Index reports with an Object Type of zip file because they sit inside the cached package. A legitimate spellright.dict is a short word list, and its magic number decodes to plain letters.

Prioritize a tasks.json in a project folder under a user's Desktop, Downloads, or source directory, especially one created recently, and any spellright.dict larger than a few KB. The loader OpenSourceMalware analyzed opened with const, which reads as 636f6e73 in the magic number column. Index shows the file is there but not what it says. Open or collect it to see whether a task sets runOn to folderOpen.

Step 6: Look for editor children running download-and-execute commands

Find shells and system binaries launched by the editor whose command lines carry the strings the joint advisory tells developers to be wary of.

Get "Trace Executed Processes"["1 week","","1","0","100","0","(?i)[\\/](cmd|powershell|pwsh|wscript|cscript|mshta|rundll32|regsvr32|certutil|bitsadmin|curl|wget|bash|sh|zsh|node)(\.exe)?$","(?i)[\\/](code|code-insiders|cursor|windsurf|codium)(\.exe)?$","(?i)(curl|base64|-enc|mshta|invoke-webrequest|iwr |hidden)","","",""] from all machines

The command-line alternation comes from the advisory's own list: curl, base64, -enc, mshta, Invoke-WebRequest, iwr, and hidden (FBI IC3). Developers run curl from the editor's integrated terminal routinely, so the value is in the combination of parent and argument. Triage by what the command fetches and what it pipes into: | bash, | sh, or | cmd after a fetch from an unfamiliar host is the task-file pattern. MakeStackable is 0, so every row carries its endpoint, user, and start time.

How the editor hosts a terminal decides the parent a task's shell records. Before you trust an empty result, run Step 3 with MakeStackable at 0 against a known developer machine and read the parent chain your fleet records.

Step 7: Catch node running a file that is not JavaScript

Find node executions whose script argument is a dictionary, font, or image file.

Get "Trace Executed Processes"["1 week","","1","0","100","0","(?i)[\\/]node(\.exe)?$","","(?i)node(\.exe)?.? +[^ -][^ ]*\.(dict|woff2?|ttf|otf|eot|svg|ico|png|jpe?g|gif)( |$)","","",""] from all machines

The command-line pattern requires the first non-flag argument after node to end in one of those extensions, so node server.js and node build.js --icon logo.png stay out while node .vscode/spellright.dict and a quoted node.exe path followed by a .woff2 file come back. The $ on the process path matters here specifically. Without it, [\\/]node(\.exe)? also matches the editor's own ...\node_modules\@vscode\vsce-sign\bin\vsce-sign.exe, because the filter finds \node inside node_modules.

A legitimate build rarely hands node an image or font as its script, so read every row. The question covers Windows, Linux, and macOS. Two blind spots are covered in "What this hunt does and does not establish".

Step 8: Collect and read package.json and extension.js

Index and Trace show where an extension sits and what it launched; only its manifest and code show what it was built to do. Collect both with a Threat Response Live Response collection. Use a custom file collector set whose path is the editor's extension folder under %userprofile% or $HOME, which covers every user profile, with the file pattern ^(package\.json|extension\.js)$ and a recursion depth that reaches out and dist but stops short of each extension's bundled node_modules. Leave Flatten Output Files off so the folder names survive for the helper below. Issue the collection manually against only the endpoints holding flagged extensions; Tanium's documentation warns against scheduling it because it can overload endpoints (Collecting data from endpoints with Live Response). Read the collected files as text on an analysis machine, and never run them with node.

In package.json, read four things:

  • activationEvents. * runs the extension at every startup and onStartupFinished shortly after (Activation Events); Mirage Kitten used the second. Since VS Code 1.74, contributed commands, languages, and views activate an extension without being listed, so an empty list does not mean the code never runs.

  • publisher, name, and version. Compare them with the folder name. Mirage Kitten's implant borrows a trusted publisher name from local extension metadata (Securelist), so question a familiar publisher on an unfamiliar extension name.

  • extensionDependencies and extensionPack. Trusting a pack, or an extension with dependencies, also trusts the publishers of everything it pulls in (Extension runtime security).

  • main and contributes. main names the entry point, which may sit where Step 2 did not look. The evil twins contributed a status bar item and one command that displayed a message, while the network call did the real work (Manifold Security). A claimed feature backed by a single command deserves a read.

In extension.js, start with size. Manifold measured the evil-twin payloads at roughly 1.6 to 3.3 KB, and about 10 KB for the reconnaissance variant (Manifold Security), while a mainstream extension's bundled entry point runs from hundreds of KB to several MB. Then look for what the campaigns share: a detached child process, as in NodeRabbit (Securelist); eval, new Function, and obfuscator-style _0x identifiers from the Contagious Interview loaders (OpenSourceMalware, Abstract Security); .git metadata, CI variables such as GITHUB_REPOSITORY, and a DNS TXT fallback from the evil twins (Manifold Security); and Solana or Google Calendar lookups, two of GlassWorm's command-and-control channels (CrowdStrike).

Expect some clean reads. The evil-twin code had no eval, no spawned shell, and no obfuscation. What gives an extension like that away is behavior that does not fit its purpose, such as a file-header utility reading .git/config and CI variables seconds after startup (Manifold Security).

The helper below compares each collected manifest with its folder name and counts those indicators in each entry point, reusing parse_vscode_extension_dir from Step 1:

import json import re from pathlib import Path import pandas as pd STARTUP_EVENTS = {'*', 'onStartupFinished'} # Strings tied to the campaigns above. A hit is a reason to read the code, not a verdict: # bundlers emit eval and new Function too, so weigh hits against size and prevalence. INDICATORS = { 'detached child process': r'detached\s*:\s*(?:true|!0)', 'obfuscator identifiers': r'\b_0x[0-9a-f]{4,6}\b', 'runtime code execution': r'\beval\s*\(|\bnew\s+Function\s*\(', 'reads .git metadata': r'[\'"]\.git[\\/\'"]', 'reads CI identity': r'GITHUB_REPOSITORY|CI_PROJECT_PATH', 'DNS TXT lookup': r'resolveTxt|_beacon', 'blockchain or calendar channel': r'solana|calendar/v3', } def review_extension(manifest_path): """Summarize one collected extension: its package.json fields and its entry point.""" manifest_path = Path(manifest_path) folder = manifest_path.parent manifest = json.loads(manifest_path.read_text(encoding='utf-8-sig')) publisher, name, version, target = parse_vscode_extension_dir(folder.name) # main may omit the .js extension, as Node.js resolves it either way entry = None if manifest.get('main'): candidate = folder / manifest['main'] for path in (candidate, candidate.with_name(candidate.name + '.js')): if path.is_file(): entry = path break code = entry.read_text(encoding='utf-8', errors='replace') if entry else '' manifest_id = f"{manifest.get('publisher')}.{manifest.get('name')}" return { 'folder': folder.name, 'manifest_id': manifest_id, 'matches_folder': manifest_id.lower() == f'{publisher}.{name}'.lower() and manifest.get('version') == version, 'startup_activation': sorted(STARTUP_EVENTS & set(manifest.get('activationEvents', []))), 'pulls_in': manifest.get('extensionDependencies', []) + manifest.get('extensionPack', []), 'contributed_commands': len(manifest.get('contributes', {}).get('commands', [])), 'entry_point': str(entry.relative_to(folder)) if entry else manifest.get('main'), 'entry_point_bytes': entry.stat().st_size if entry else None, **{label: len(re.findall(pattern, code, re.I)) for label, pattern in INDICATORS.items()}, } # Collected with Live Response, folder structure kept. Only extension roots parse with a version, # which skips the package.json files inside each extension's bundled node_modules. reviews = pd.DataFrame( review_extension(p) for p in Path('collected').rglob('package.json') if parse_vscode_extension_dir(p.parent.name)[2] ).sort_values('entry_point_bytes')

Smallest entry points sort first. Bundlers emit eval and new Function on their own, so a multi-MB bundle with one hit is ordinary and a few-KB file with several is not.

Reading the results

Work the findings in this order, because it runs from the rarest benign explanation to the most common:

  1. Step 7 rows. node running a dictionary, font, or image.

  2. The tunnel question below, when the CLI runs from outside the editor's install directory or under a script host.

  3. Extension anomalies: an entry point whose hash disagrees with other copies of its version (Step 2), a folder with no install event (Step 3), a publisher no one else in the fleet runs, or a Manifold ID at version 0.0.1.

  4. tasks.json in project directories, newest first, from Step 5.

  5. VSIX installs from Step 4 launched by anything other than a person or your provisioning tooling.

  6. Step 6 rows, triaged by what was fetched and where it was piped.

Collect and read the extensions near the top of this list with Step 8.

The benign baselines are the ones described in each step: signature verification under the editor, task files inside extension packages and their cached copies, short plain-text dictionaries, and several version folders of well-known extensions.

The tunnel variant these questions do not cover

Kimsuky reaches the same editor without an extension or a task file. In campaigns Kaspersky described on May 14, 2026, an encoded JScript (JSE) dropper or a Go-based installer downloads the legitimate VS Code command-line tool. The Go installer unzips it into C:\Users\Public and runs code.exe tunnel, walks the GitHub device-login flow, and sends the resulting tunnel URL to the operator through a Slack webhook. The earlier JScript version used a fixed tunnel name, bizeugene. The victim's machine then talks only to Microsoft-owned servers (Securelist). ATT&CK tracks this as T1219.001, Remote Access Tools: IDE Tunneling, and lists Mustang Panda's use of code.exe tunnel as a procedure example for T1176.002 (ATT&CK).

Find any VS Code family CLI started with the tunnel subcommand.

Get "Trace Executed Processes"["1 week","","1","0","100","0","(?i).*[\\/](code|code-insiders|cursor|windsurf|codium)(\.exe)?$","","(?i) tunnel( |$)","","",""] from all machines

Developers use tunnels legitimately, so the process path and the parent carry the verdict. A code.exe running from C:\Users\Public, with a script host or an unfamiliar installer as its parent, is the Kimsuky shape. A code tunnel launched by the user's own shell from the normal install location is usually a developer. The pattern matches tunnel as its own word, so the built-in tunnel-forwarding extension's paths stay out.

What this hunt does and does not establish

  • An extension being present is not the same as it running. Steps 1 and 2 prove an extension's files exist, not what the code does. Step 8 reads intent from the code, and even that read is static. Mirage Kitten's extension activates on onStartupFinished, so a review that looks only for wildcard "*" activation would pass it.

  • Matching hashes prove agreement, not safety. Step 2 catches a copy edited on one endpoint. A counterfeit installed everywhere by the same devcontainer config or provisioning script hashes the same everywhere, which is why Manifold's point about name resolution applies here (Manifold Security).

  • Step 4 sees command-line installs only. An implant that writes an extension folder directly, as NodeRabbit does, never runs --install-extension. Steps 1 through 3 together are what catch that shape.

  • A task file on disk says nothing about intent. Step 5 finds tasks.json; whether it runs on folder open is in the file's content. Workspace Trust, once granted, persists, and new tasks pulled into a trusted repository run without a prompt, so a repository trusted months ago is still in scope.

  • Step 7 has two blind spots. It misses node -e inline scripts and .js wrappers that decode a payload hidden in a font file, both documented by Abstract Security. It also misses renamed Node.js binaries: NodeRabbit copies node.exe to nodew.exe in one variant and IntelDSA.exe in another (Securelist). Pivot on the MD5 of a known-good node.exe in position 10 to find it under another name.

  • Some extensions never spawn a shell. The evil-twin extensions sent their data from inside the extension host, so the process questions have nothing to see. The inventory and hash steps find them, and Step 8's read of their code shows what they collect.

  • Git hook persistence is outside these questions. NodeRabbit also appends a launcher, marked # shepherd-persist, to a repository's post-merge and post-checkout hooks. That needs its own hunt.

  • Your lookback is your retention. Every Trace step reaches back only as far as the Recorder keeps process events.

Next steps

  • Baseline the inventory. Save Step 1 as a question on a schedule, and keep a list of publisher.name values per team. A publisher that appears on one developer machine and nowhere else goes to review. Rerun Step 2 after each wave of extension updates, when new versions have just landed everywhere.

  • Enforce an allow list. Since VS Code 1.96, the extensions.allowed setting takes an object keyed by publisher or extension ID, and the AllowedExtensions policy enforces it centrally over any user setting (Manage extensions in enterprise environments). For example, "extensions.allowed": { "ms-python": true, "esbenp.prettier-vscode": true } allows one publisher and one extension and blocks the rest. Test the policy on a small group before deploying broadly; it can cause unwanted effects.

  • Take the automatic out of automatic tasks. Set task.allowAutomaticTasks to off (Abstract Security), and have developers open take-home assignments and unfamiliar repositories in Restricted Mode (FBI IC3).

  • Turn Steps 3 and 7 into standing detections once you have a week of baseline from Step 3 on your own fleet.

About HuntIQ

HuntIQ is Tanium's threat hunting practice. Our hunters go hands-on-keyboard in customer environments, running hunt campaigns against live telemetry, triaging what surfaces, pivoting from one endpoint to the whole estate, and escalating with the evidence already attached. Alongside that we build the durable content behind it, the Signals, hunt packages, and recurring hunts your own analysts can run without us.