Agent CLI spawns System32\reg.exe from Node — blocked by Kaspersky Adaptive Anomaly Control

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

Summary

On Windows with Kaspersky (Adaptive Anomaly Control), Cursor Agent CLI repeatedly triggers
“Launch of Registry Editor from JScript/script” when index.js / chunk code spawns
C:\Windows\System32\reg.exe.

Blocked command lines observed

  1. GPO / device policy probe:
    reg.exe query HKLM\SOFTWARE\Policies\Microsoft\Cursor
  2. User PATH install / probe (attributed to index.js, implemented via GLOBALROOT path):
    \.\GLOBALROOT\SystemRoot\System32\reg.exe query HKCU\Environment /v Path
    (also add HKCU\Environment /v Path)
    Source process example:
    c:\users\user\cursor-agent\versions\2026.10.22-27dcf5f\index.js

Impact

  • Continuous security alerts / blocks for end users who cannot change Kaspersky policy
  • PATH install fails when reg.exe is blocked (“Could not read the user Path registry value…”)
  • Workaround today is fragile local patching of agent bundles (breaks on self-update)

Related

Existing forum reports about Kaspersky blocking the Policies\Cursor reg query for the
agent-worker / Remote Control path. Same class of issue for standalone Agent CLI.

Request

  • Prefer Windows registry APIs / Node bindings instead of shelling out to reg.exe
  • Or provide an official env/config flag to skip GPO probe + PATH registry install
  • Document recommended EDR allowlist paths/rules for enterprise (Agent CLI under
    %LOCALAPPDATA% / custom install roots like C:\users\user\cursor-agent\versions*\index.js)

Environment

  • Windows 10, Kaspersky AAC
  • Cursor Agent CLI 2026.10.22-27dcf5f

Steps to Reproduce

Environment: Windows 10 with Kaspersky Adaptive Anomaly Control enabled; Cursor Agent CLI installed (e.g. 2026.10.22-27dcf5f, under a path such as C:\users\user\cursor-agent\ or the
default install location).

  1. Ensure Agent CLI is installed and agent / cursor-agent can be started from a terminal.
  2. Do not add Kaspersky exclusions for reg.exe, PowerShell, or cursor-agent.
  3. Open a normal terminal (cmd or PowerShell) as a regular user.
  4. Change to any project directory, e.g. cd D:\path\to\repo.
  5. Start an interactive agent session: agent (or cursor-agent).
  6. Wait for the session to start (complete login if prompted).
  7. Observe a Kaspersky Adaptive Anomaly Control alert with a rule similar to “Launch of Registry Editor from a JScript script”:
    • Source process: …\cursor-agent\versions<version>\index.js
    • Target process: C:\Windows\System32\reg.exe
    • Command line (one or both may appear across runs):
    • reg.exe query HKLM\SOFTWARE\Policies\Microsoft\Cursor
    • reg.exe query HKCU\Environment /v Path (sometimes via \.\GLOBALROOT\SystemRoot\System32\reg.exe)

Operating System

Windows 10/11

Version Information

Cursor CLI

Does this stop you from using Cursor

No - Cursor works, but with this issue

Moved into Kaspersky repeatedly deletes Agent temp PowerShell (ps-script-*.ps1) — options when exclusions are not allowed - #7