HuntIQ Tradecraft: Hunting Trojanized IDE Extension Updates with Tanium
HuntIQ Tradecraft: Hunting Trojanized IDE Extension Updates with Tanium
On October 29, 2026, Cursor disclosed that a maliciously modified build of Anthropic's Claude Code extension, Anthropic.claude-code version 2.1.313, was served from the Cursor VS Code extension marketplace between about 2:27 a.m. and 1:35 p.m. Pacific time. Anthropic did not develop that build. Cursor puts the number of affected users at 5,000 at most. The build tried to plant a persistent SSH backdoor: an attacker key in authorized_keys, a reverse SSH tunnel, a LaunchAgent or scheduled task to keep the tunnel alive, and a beacon reporting host details (Cursor). Cursor took the attacker's server offline the same day, and its notice is plain that "uninstalling the extension may not be sufficient."
A trojanized update to a real extension is the hardest kind to catch by inventory. The ID is trusted, the version is plausible, and within hours a clean version replaces it, while what the payload wrote to disk stays. This walkthrough uses the IDE Extensions sensor to scope who installed the bad version, then Threat Response Recorder history to hunt the backdoor itself. A hit in Step 1 means a host had the extension; a hit in Steps 2 through 7 means the payload ran. It is written for hunters who build questions in the question builder, and every step carries TQL to paste into Interact or adapt.
Key takeaways
-
A stolen or over-scoped publishing credential lets an attacker push one malicious version of a real extension to its whole install base. Auto-update delivers it with no prompt (T1195.002 Compromise Software Supply Chain, T1176.002 IDE Extensions).
-
Amazon Q Developer (July 2025), GlassWorm on Open VSX (October 2025), the hijacked
oorzcpublisher (January 2026), Nx Console 18.95.0 (May 2026) and the Cursor-served Claude Code build all shipped through a legitimate extension identity. -
The malicious package is the least durable artifact. Nx Console's bad version was live for about eleven minutes and Cursor's for about eleven hours; the persistence each wrote outlived both.
-
The discriminator is behavior that an editor's extension host has no business doing: writing
authorized_keys, writing a LaunchAgent or Startup script, creating a scheduled task, or startingssh -Rfrom a user's session. -
IDE Extensionsreads each user's extension manifest for VS Code, VS Code Insiders, VSCodium, Cursor and Windsurf. It returns extension ID, version, IDE and install path from a single question, so one question scopes every editor at once. -
Recorder history already holds the file, process and network events from the hours the bad version was live. The hunt works after the fact, with nothing deployed in advance.
-
The pivot that confirms a finding is a file or process event whose process path or parent leads back to the editor. A matching extension version with no such event is exposure, not compromise.
Before you start
|
Requirement |
Detail |
|
Modules |
Tanium Threat Response, with the Recorder collecting process, file and network events; the |
|
Content sets |
Threat Response (the |
|
Platforms |
Tanium Cloud, October 2026. Windows, Linux and macOS. Every sensor used here has an implementation on all three. Step 4 is Windows only. |
|
RBAC |
Every question here needs the platform |
Not covered: counterfeit and typosquatted extensions, which our September walkthrough on VS Code extensions and workspace tasks covers; extensions on remote VS Code Server hosts; JetBrains plugins; static analysis of extension code.
How a trusted extension becomes the entry point
An extension runs inside the editor's extension host with the editor's own rights: files, network and child processes. Trust is granted once, at install, and every later update inherits it, so whoever holds an extension's publishing credential effectively has code execution on every machine that runs it. In October 2025 Wiz found more than 550 validated secrets inside published extensions, including more than 100 valid VS Code Marketplace tokens covering over 85,000 installs and more than 30 Open VSX tokens covering over 100,000 (Wiz).
The last two years of casework show that shape again and again.
In July 2025, AWS reported that an inappropriately scoped GitHub token in the CodeBuild configuration for its Amazon Q Developer extension let an actor push code that shipped in an automatic release as version 1.84.0. The code failed to run because of a syntax error, and AWS notes it is still present in existing 1.84.0 installs (AWS-2025-015). A month later, Nx Console versions 18.6.30 through 18.65.1 installed the latest nx package to check its version, which ran the poisoned nx releases' postinstall script "when the editor was opened" (nrwl/nx advisory).
On October 17, 2025, GlassWorm reached seven Open VSX extensions, and auto-update pushed CodeJoy 1.8.3 to its existing users (BleepingComputer). The Eclipse Foundation, which runs Open VSX, traced the cause to leaked publishing tokens, "developer mistakes, not a compromise of the Open VSX infrastructure" (Eclipse Foundation). In late January 2026, four extensions from the Open VSX publisher oorzc, benign for about two years, shipped new versions that dropped a macOS stealer with LaunchAgent persistence. Removing a release from the marketplace does not uninstall copies already in editors. Affected users only get a fix when a higher version is published (BleepingComputer, The Hacker News).
The closest match to Cursor's case came in May 2026. An attacker holding a stolen GitHub token and the Nx team's VSCE_PAT publishing token released Nx Console 18.95.0 (nrwl.angular-console), and it was live for about eleven minutes. On activation it ran a hidden VS Code task named install-mcp-extension that fetched a payload with npx. The payload persisted as ~/Library/LaunchAgents/com.user.kitty-monitor.plist on macOS and dropped ~/.local/share/kitty/cat.py on macOS and Linux (StepSecurity).
What the Cursor build leaves on an endpoint
Cursor's notice lists the payload's behavior and indicators in full, and every one maps to an event the Recorder keeps.
-
Reconnaissance. It collects hostname, username, OS, architecture, home directory, environment variable names, working directories, Git email and public IP. The public IP lookups go to
ifconfig[.]meorapi[.]ipify[.]org, which Cursor notes are legitimate services on their own. -
An SSH key. It appends an attacker public key with the comment
svc-telemetryto~/.ssh/authorized_keyson macOS, or to%USERPROFILE%\.ssh\authorized_keyson Windows (T1098.004 SSH Authorized Keys). -
A local SSH server. It tries to turn one on with
systemsetup -setremotelogin onorAdd-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0. Both need administrator rights, so on most hosts this step fails, and with it the attacker's ability to log in through the tunnel. Cursor says to remediate regardless, because the key, the persistence and the beacon land either way. -
A reverse tunnel.
ssh -N -R '*:0:localhost:22'orautossh -M 0connects totunnel@134[.]209[.]82[.]225on TCP 22, withStrictHostKeyChecking=noandUserKnownHostsFile=/dev/null(T1572 Protocol Tunneling). Background scripts retry roughly every 60 seconds. -
Persistence. On macOS, a LaunchAgent at
~/Library/LaunchAgents/com.apple.sysmond.plistwith the labelcom.apple.sysmond(T1543.001 Launch Agent). On Windows, a scheduled task namedSysMonthat tries to run as SYSTEM (T1053.005 Scheduled Task), with a Startup-folder fallback at%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\sysmon.cmd(T1547.001). -
Staging files.
~/.config/.smtand~/.config/.smtkon macOS,%USERPROFILE%\.config\smt.cmdand%USERPROFILE%\.config\smtkon Windows, and.stk_followed by ten hex characters in the user's temp directory on both. -
A beacon. An HTTP POST of host details and backdoor status to
hxxp://134[.]209[.]82[.]225:8099/beacon, plus an attempt against the same path on127.0.0.1:8099.
Put the Nx Console and Cursor cases side by side and the hunting lesson is the same. The malicious version was available for minutes or hours. Once it was pulled and a clean version landed, the extension inventory looked normal again. The LaunchAgent, the scheduled task, the key in authorized_keys and the retry loop did not go anywhere. An inventory question tells you who was exposed. Only the payload's footprint tells you who was compromised, and that footprint is what Steps 2 through 7 hunt.
Choosing which extensions and versions to hunt
Step 1 takes an extension ID, and the identifier to use comes from whichever advisory you are working. Use the ID and the version together, plus the IDE, because a trojanized build shares both its ID and often its version number with legitimate copies:
-
Cursor, October 2026:
anthropic.claude-codeat 2.1.313, installed or updated in Cursor between about 2:27 a.m. and 1:35 p.m. Pacific time on October 29. Cursor has no evidence that other versions or the official distribution are affected, so a 2.1.313 install from VS Code's own marketplace is not implicated by this notice. TheIDEcolumn tells the two apart. On disk the malicious builds sat in folders namedanthropic.claude-code-2.1.313-darwin-arm64andanthropic.claude-code-2.1.313-win32-x64. -
Nx Console, May 2026:
nrwl.angular-consoleat 18.95.0. The fix is 18.100.0 or later. -
GlassWorm, October 2025: IDs and versions as BleepingComputer published them, among them
codejoy.codejoy-vscode-extensionat 1.8.3 and 1.8.4,l-igh-t.vscode-theme-seti-folderat 1.2.3 andellacrity.recoilat 0.7.4. -
oorzc, January 2026:oorzc.ssh-tools0.5.1,oorzc.i18n-tools-plus1.6.8,oorzc.mind-map1.0.61 andoorzc.scss-to-css-compile1.3.4.
Advisories also publish VSIX hashes. Cursor lists SHA-256 432ccdee3801f99e52b8fe31f69ea9870118e96ea7ef9ecabed1479621b5ab62 for the darwin-arm64 build and 3de1722901165769893bef57c72594e9a54459faa23f3091b136b79966edd081 for win32-x64. It also notes that the modified extension.js contains the attacker IP and the string svc-telemetry. The VSIX is usually gone by the time you hunt, which is another reason the steps below key on behavior rather than the package.
Step 1: Find the extension across every IDE
Start with exposure: which endpoints have the extension installed in any supported editor, and at which version.
Get "Computer Name" and "IDE Extensions"["1","0"] having "IDE Extensions":"Extension ID" contains "anthropic.claude-code" from all machines with "IDE Extensions"["1","0"]:"Extension ID" contains "anthropic.claude-code"
Returns Computer Name with IDE, Extension ID, Extension UUID, Extension Path, Source, Version, Publisher, On Disk? and User Folder. Read IDE and Version together. A row reading Cursor with version 2.1.313 is the exposure this advisory describes. On Disk? reports whether the extension's package.json is actually present, so False means the manifest lists an extension whose files are gone. The having clause keeps the result to the matching extension instead of every extension on a matching endpoint; swap the ID in both clauses to hunt a different advisory.
The two parameters shape the output. The first, Use Relative Paths, returns Extension Path as the folder name rather than the full path. The second, Show User Folder, is 0 here, so User Folder reads [removed]. Set it to 1 when you need to know which profile on a shared machine owns the install.
The sensor reads each user's extensions.json manifest for VS Code, VS Code Insiders, VSCodium, Cursor and Windsurf on all three platforms. It caches for 43,200 seconds, so a read can be up to twelve hours old. That matters here more than usual: an endpoint that auto-updated past 2.1.313 this morning may still show it, and one that updated last night will not. Run this as a scoping question, then hunt every Cursor user with the extension at any version in the steps that follow, not just the ones still reporting the bad build.
Disabled IDE Extensions returns the extensions a user has turned off. A disabled extension does not run, but disabling it after the fact does nothing about a payload that already ran.
Step 2: Find the attacker's key being written
The authorized_keys write is the most specific event in the Cursor chain, and it is rare on a developer workstation. Ask which processes touched any authorized_keys file in the last week.
Get "Trace File Operations"["1 week","","1","0","100","0",".*authorized_keys","","","",""] from all machines
Returns Endpoint Name, Timestamp, File Path, Operation, Process Path, Domain and Username, one row per event. MakeStackable at position 6 is "0", which keeps endpoint, user and time on every row. MaxResultsPerHost at position 5 is 100, the maximum; at its default of 1 you would see only the most recent event per endpoint. TreatInputAsRegEx at position 3 is "1", so the file path filter is read as a pattern. The pattern ends at the file name, so it matches the user's own authorized_keys and Windows OpenSSH's C:\ProgramData\ssh\administrators_authorized_keys alike.
The Operation filter at position 8 is left blank. Read the Operation column instead of guessing in advance which operation a given writer produces.
Prioritize rows where Process Path is the editor, its helper processes, node, or a shell whose parent leads back to the editor. The benign population is short and recognizable: keys pushed with ssh-copy-id, which arrive as a shell under sshd, cloud-init on Linux servers, and configuration management agents that manage keys by design. This question proves a write happened, not what was written. Confirm the key with the check Cursor publishes, which looks for the svc-telemetry comment, or collect the file with Threat Response Live Response. The sensor caches for 900 seconds, so a read can trail the newest event by up to fifteen minutes.
Step 3: Find the persistence and staging files
Next, look for the Cursor payload's own file names wherever they land. One pattern covers the macOS LaunchAgent, the Windows Startup fallback, the staging files under .config and the temp-directory .stk_ files.
Get "Trace File Operations"["1 week","","1","0","100","0","(?i).*[\\/](\.config[\\/](\.smtk?|smt\.cmd|smtk)|Startup[\\/]sysmon\.cmd|LaunchAgents[\\/]com\.apple\.sysmond\.plist|\.stk_[0-9a-f]{10})$","","","",""] from all machines
Same columns and parameters as Step 2. Three details in the pattern are reusable. (?i) makes the match case-insensitive, which Windows paths need because they arrive in whatever case the writer used. [\\/] matches either slash, so one string covers Windows, macOS and Linux. The trailing $ anchors on the end of the path, so .smt does not also match a longer name that merely starts with it.
Any row here is worth an analyst's time. No legitimate product writes these names into a user's profile, and the com.apple.sysmond label is chosen to pass for an Apple component at a glance. To hunt the Nx Console payload instead, swap in its names: LaunchAgents[\\/]com\.user\.kitty-monitor\.plist and kitty[\\/]cat\.py. Beyond named indicators, the broader hunt on macOS is any .plist written under a user's ~/Library/LaunchAgents by a process that leads back to an editor. Both the oorzc stealer and Nx Console 18.95.0 persisted that way.
Step 4: Find the scheduled task (Windows)
On Windows, the payload's preferred persistence is a scheduled task named SysMon. Stack every schtasks.exe /create from the past week to see who creates tasks at all.
Get "Trace Executed Processes"["1 week","","1","0","100","1","(?i)[\\/]schtasks\.exe$","","(?i)/create","","",""] from all machines with "Is Windows" equals "True"
MakeStackable is "1" here, so identical rows collapse into a prevalence view with a Count, and endpoint, user and timestamps are removed. That is the right shape for a first pass, because legitimate task creation comes from a small set of installers and updaters that repeat across the fleet. Read Parent Process Path and Command Line, and look for /tn SysMon, for a task set to run as SYSTEM from a user's session, and for any parent that is the editor, node or a shell beneath them. When a row stands out, rerun with position 6 at "0" to get the endpoint, user and start time.
Trace Executed Processes caches for 900 seconds. The $ on the process path matters: without it, the filter also matches any longer path that merely contains schtasks.exe.
Step 5: Find the reverse tunnel
The tunnel is a user-level ssh or autossh client carrying a -R remote forward. Find any such execution in the past week.
Get "Trace Executed Processes"["1 week","","1","0","100","0","(?i)[\\/](ssh|autossh)(\.exe)?$","","(?i) -R +.?([^ :]+:)?[0-9]+:[^ :]+:[0-9]+","","",""] from all machines
Returns Endpoint Name, Start Time, End Time, Parent Process Path, Process Path, Command Line, MD5, Domain and Username, one row per execution.
Both filters are written more tightly than the obvious version, and the obvious version is worth knowing because it returns plenty of rows. A process path of .*[/\\](ssh|autossh)(\.exe)? with a command line of .* -R.* fills the result grid with /usr/sbin/sshd. The path filter finds ssh inside sshd, and -R is also the SSH daemon's own flag for its re-executed child processes, so sshd -D -R matches on every Linux server that accepts SSH. Anchoring the path with $ removes the daemon. Requiring a forwarding specification after -R, a port followed by a host and another port, as in '*:0:localhost:22', removes any remaining flag-only matches. The .? before the specification absorbs an optional quote character, because a TQL string value cannot carry a literal double quote.
Read Parent Process Path first. The Cursor payload's tunnel restarts from its LaunchAgent, its scheduled task or its Startup script, so a parent of launchd, the Task Scheduler's svchost.exe, cmd.exe running sysmon.cmd, or the editor itself is the shape to triage. A developer forwarding a port by hand starts ssh -R from an interactive shell in a terminal, usually to a host your team recognizes. StrictHostKeyChecking=no and UserKnownHostsFile=/dev/null in the same command line add weight, and autossh -M 0 with either is stronger still.
Step 6: Find the attempt to turn on an SSH server
The payload tries to start a local SSH server so the tunnel has something to connect back to. On most hosts that step fails for lack of administrator rights, and the attempt is still recorded. Look back a month.
Get "Trace Executed Processes"["1 month","","1","0","100","0","","","(?i)(systemsetup.*-setremotelogin +on|Add-WindowsCapability.*OpenSSH\.Server|launchctl.*(load|enable|bootstrap).*ssh)","","",""] from all machines
Same columns as Step 5. The command-line pattern covers the two commands Cursor names, systemsetup -setremotelogin on on macOS and Add-WindowsCapability ... OpenSSH.Server on Windows. It adds a launchctl form for a script that loads the SSH daemon's launchd job directly instead. Remote Login is rarely toggled on a managed laptop, so every row deserves a look. A row from a user session, with a parent that leads back to the editor, is the payload trying and probably failing.
Step 7: Find the tunnel and the beacon on the wire
Finally, stack every connection to remote port 22 or 8099 from the past week.
Get "Trace Network Connections"["1 week","","1","0","100","1","0","","","","^(22|8099)$","","",""] from all machines
Returns Process ImagePath, Operation, Remote IP and Remote Port, with Local IP and Local Port, collapsed into a Count because MakeStackable at position 6 is "1". For a hand-written query, remote port is position 11; position 9 is the local port. Position 7, Include 127.0.0.1 traffic, is "0" here; set it to "1" to see the payload's loopback beacon attempt to 127.0.0.1:8099. The port pattern is anchored with ^ and $ so that 22 does not also match 2222 or 8022.
Port 22 has a large benign population on a developer fleet, because git over SSH runs ssh to github.com and your internal Git hosts all day. Group by Remote IP and look past the hosts you recognize. Cursor's attacker endpoint was 134[.]209[.]82[.]225, for both the tunnel on 22 and the beacon on 8099. Port 8099 from any user process is unusual enough to read row by row. When a remote address stands out, rerun with position 6 at "0" to get the endpoint and time, then line it up with Steps 2 through 5 on the same host.
Reading the results
Triage specificity first. The names and behaviors at the top of this list have no innocent explanation; the ones at the bottom often do.
-
Step 3 rows. These file names have no legitimate use.
-
Step 2 rows where the writing process leads back to the editor.
-
Step 5 rows with a persistence parent:
launchd, the scheduled task or a Startup script. -
Step 4 rows naming
SysMon, or with an editor-descended parent. -
Step 6 rows, then Step 7 remote addresses you cannot account for.
-
Step 1 rows at an implicated version with nothing in Steps 2 through 7. That is an exposed host, not a confirmed compromise, and it still gets the remediation below.
Expect a quiet result on most hosts and a short, repeating benign set on the rest. In Step 2 that means key management by ssh-copy-id, cloud-init and configuration tooling. In Step 4 it means tasks created by installers and updaters. Step 5 sees developers' own port forwards from an interactive shell, and Step 7 sees git traffic to your source-control hosts on port 22.
Removing the extension, and why that is not the end
Tanium content includes two packages for removal, Remove IDE Extension [Windows] and Remove IDE Extension [Non-Windows]. Each takes the extension ID or UUID to remove as its first parameter, and as its second whether you supplied an Extension ID or a UUID. Both values come straight from the Step 1 results. Test the mitigation on a small group before deploying broadly; it can cause unwanted effects.
Removing the extension is the start of remediation, not the end. Cursor's own guidance for an affected host is to:
-
isolate any host that shows payload execution;
-
remove the unauthorized key, the persistence and any running tunnel processes, using the macOS and Windows remediation scripts it publishes;
-
decide whether the host should be rebuilt;
-
rotate the credentials and sessions reachable from it, from a trusted system.
The environment-variable collection was limited, but Cursor notes it does not rule out later credential access over the backdoor (Cursor). Steps 2 through 5 are also your verification afterward. Rerun them once remediation is done, and confirm that the retry loop has stopped producing events.
The variants these questions do not cover
-
Extensions on remote development hosts.
IDE Extensionsreads the desktop editors' manifests. A server reached over VS Code Remote keeps its extensions under.vscode-server, which the Index inventory in our September walkthrough covers. Steps 2 through 7 apply on that server unchanged, because Recorder history does not care which editor started the process. -
A clean extension that fetches a poisoned dependency. In the 2025 Nx case the extension itself was not modified; it installed a compromised
nxpackage that did the work. The extension inventory shows nothing wrong. Hunt the package manager, and what it launches, as a child of the editor. -
Counterfeits and typosquats. A look-alike ID at version
0.0.1from an unfamiliar publisher is a different hunt, built on prevalence and naming, and the September walkthrough covers it. -
JetBrains plugins and other IDE families. These are outside the
IDE Extensionssensor. The behavioral steps still apply where those IDEs run.
What this hunt does and does not establish
-
Step 1 is current state. It shows which extension version a manifest lists now, read from a cache up to twelve hours old. An endpoint that updated past the bad version no longer shows it, which is why the behavioral steps go to every user of the affected editor, not just the hosts still reporting the bad build.
-
A file event proves a write, not its content. Step 2 shows
authorized_keyschanged and which process changed it. Whether the attacker's key is in it takes thesvc-telemetrycheck or a collected copy. -
A failed attempt still counts. If the SSH server never started, the tunnel could not be used to log in. The key, the persistence and the beacon still landed, and Steps 2 through 4 find those whether or not Step 6's attempt succeeded.
-
Named indicators age; the behavior does not. Steps 3 and 7 key on the Cursor payload's file names and ports. Steps 2, 5 and 6 key on what any backdoor of this design has to do, so keep those running when the next advisory carries different names.
-
The Recorder's retention sets the lookback. The Cursor window was October 29, 2026. These questions use
1 weekand1 month. Once your retention or the time range no longer reaches that date, switch Time Range toabsolute time rangeand set the window explicitly.
Next steps
-
Scope now, then hunt behavior. Run Step 1 for
anthropic.claude-codein Cursor, then run Steps 2 through 7 against every Cursor user, whatever version they report today. -
Make Step 2 a standing question on developer workstations. An
authorized_keyswrite from an editor-descended process is worth an alert whichever extension caused it, and it would have caught the Cursor payload without any indicator. -
Baseline Steps 4, 5 and 7 for a week on your own fleet, and save the results. A new parent for
schtasks /create, a newssh -Rparent, or a new remote address on port 22 then stands out against the baseline. -
Put extension updates on your terms. Where an editor supports it, an allow list of approved extensions and a delay before updates install turn a one-hour malicious release into a version most of your fleet never runs.
-
Read the companion walkthrough, Malicious VS Code extensions and workspace tasks: hunting them with TaniumNo Content found for /db/organizations/tanium/repositories/master/content/documents/knowledge/VSCodeExtensionsWorkspaceTasks.dita, for the counterfeit-extension inventory, entry-point hash comparison and workspace task hunts that this post does not repeat.
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.