Kaspersky Blocking Cursor from Reading Windows Registry

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I am having the same issue as the below post:

The alert pops up around every 5 minutes. Following the instructions I cannot find the “Enable Remote Control for this computer” in any tab of Cursor app settings (gear icon). Turning off Remote Desktop on Windows does not stop the alerts either (screenshot). IT does not want to add an exception for the process.

Steps to Reproduce

Kaspersky report:

Event: Process action blocked
User: ...\...
User type: Initiator
Application name: node.exe
Application path: C:\Users\...\AppData\Roaming\Cursor\User\globalStorage\anysphere.cursor-agent-worker\agent-cli\.local\share\cursor-agent\versions\2026.10.22-27dcf5f
Rule: Start of Registry editor from the JScript script
Source process: c:\users\...\appdata\roaming\cursor\user\globalstorage\anysphere.cursor-agent-worker\agent-cli\.local\share\cursor-agent\versions\2026.10.22-27dcf5f\index.js
Source process hash: d6794834b28f88f328e4090a2c3480bc8fa7c43afe6f6d96a937148a3fc45735
Target process: C:\Windows\System32\reg.exe
Target process hash: ef37663b44ac66920c6f33694deea01acb78ae3f3012884819373fa04c3eb5f0
Target object: object://cmdline:reg.exe query HKLM\SOFTWARE\Policies\Microsoft\Cursor
Result description: Blocked
Type: Anomaly
Name: Start of Registry editor from the JScript script
Precision: Heuristic analysis
Object type: Process
Object name: index.js
Object path: C:\Users\...\AppData\Roaming\Cursor\User\globalStorage\anysphere.cursor-agent-worker\agent-cli\.local\share\cursor-agent\versions\2026.10.22-27dcf5f

Expected Behavior

Can you provide a more detailed walkthrough on disabling Cursor from reading the registry?

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 3.26.13 (user setup)
VS Code Extension API: 1.128.0
Commit: 3bfec373749d3d4a53a151283022d49743ab50b0
Date: 2026-10-20T01:50:17.051Z
Layout: Agent Window
Build Type: Stable
Release Track: Default
Electron: 42.10.0
Chromium: 148.0.7778.280
Node.js: 24.18.1
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Windows_NT x64 10.0.26200

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey @jchannexifyhk,

Cursor isn’t changing your registry. The blocked command is a read-only reg.exe query that checks whether your organization has set a sign-in policy for Cursor. It runs each time the background Remote Control worker refreshes its session. If Kaspersky blocks it, Cursor just treats the machine as having no policy and keeps working, which is why nothing breaks.

In recent versions the setting from the earlier thread has moved. “Enable Remote Control for this computer” now only controls registering this machine, so switching it off won’t stop the worker. To stop the alerts:

  1. In the Agent Window, open Cursor Settings (gear icon).
  2. Go to the Agents tab and scroll to the Self-Hosted Workers section.
  3. Turn off “Enable local self-hosted workers”.
  4. If alerts still appear after a few minutes, fully quit and reopen Cursor.

You can also type “self-hosted” in the settings search box to jump straight to it. Note that this turns off running cloud agents on this computer and controlling it from your other devices, so only do it if you don’t use those.

If you do need that feature, the other route is an exclusion in Kaspersky for the “Start of Registry editor from the JScript script” rule, scoped to %APPDATA%\Cursor\User\globalStorage\anysphere.cursor-agent-worker\agent-cli\.local\share\cursor-agent\versions\*\index.js (use a wildcard, because the version folder changes with every update).

This is the same behavior discussed in this earlier thread, with the updated location of the setting.

I can’t find “Self-Hosted Workers” section in “Agents” tab or after typing “self-hosted” in the search box. I have tried updating to Cursor version 3.27.12 but to no avail. Am I looking at the right location?

Hi @jchannexifyhk, you were looking in the right place. That section doesn’t show for you because your team’s Cursor settings don’t have Remote Control or self-hosted workers turned on, so the app hides those controls. The background worker is still being started anyway, so right now there’s no switch on your side that stops it. Sorry, the settings steps above don’t apply to your account. This is a known issue the team is aware of.

In the meantime, starting Cursor with the worker extension disabled should keep it from launching:

  1. Fully quit Cursor. In Task Manager, end any node.exe whose path contains anysphere.cursor-agent-worker (or just restart the PC).
  2. Start Cursor from a terminal or a shortcut with: Cursor.exe --disable-extension anysphere.cursor-agent-worker
  3. Use it as normal for 15 minutes or so and let me know whether the Kaspersky alerts stop.

The Kaspersky exclusion mentioned above is still the other option if your IT team reconsiders.

Thanks Colin, after applying option --disable-extension anysphere.cursor-agent-worker to my Start Menu shortcuts, the Kaspersky alert no longer pops up.

Not directly related, for some reason, my Start Menu has two different shortcut files (one in a folder, one out of folder), setting both of them to have the option in case Windows mixes them up in the pinned menu. ("C:\Users\...\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Cursor\Cursor.lnk" and "C:\Users\...\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Cursor.lnk")