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

**URL:** <https://forum.cursor.com/t/agent-cli-spawns-system32-reg-exe-from-node-blocked-by-kaspersky-adaptive-anomaly-control/176581>\
**Category:** Bug Reports\
**Tags:** windows, security, cli\
**Created:** [October 29, 2026, 7:03am UTC](https://forum.cursor.com/t/agent-cli-spawns-system32-reg-exe-from-node-blocked-by-kaspersky-adaptive-anomaly-control/176581 "2026-10-29T07:03:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xpresstoparadise](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/xpresstoparadise/32/124808_2.png) [@xpresstoparadise](https://forum.cursor.com/u/xpresstoparadise)\
**Post date:** [October 29, 2026, 7:03am UTC](https://forum.cursor.com/t/agent-cli-spawns-system32-reg-exe-from-node-blocked-by-kaspersky-adaptive-anomaly-control/176581/1 "2026-10-29T07:03:19Z")

</div>

### 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

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [October 29, 2026, 9:23am UTC](https://forum.cursor.com/t/agent-cli-spawns-system32-reg-exe-from-node-blocked-by-kaspersky-adaptive-anomaly-control/176581/4 "2026-10-29T09:23:23Z")

</div>

Moved into [Kaspersky repeatedly deletes Agent temp PowerShell (ps-script-\*.ps1) — options when exclusions are not allowed - #7](https://forum.cursor.com/t/kaspersky-repeatedly-deletes-agent-temp-powershell-ps-script-ps1-options-when-exclusions-are-not-allowed/176553/7)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [October 29, 2026, 9:23am UTC](https://forum.cursor.com/t/agent-cli-spawns-system32-reg-exe-from-node-blocked-by-kaspersky-adaptive-anomaly-control/176581/5 "2026-10-29T09:23:26Z")

</div>

Closed on October 29, 2026, 9:23am UTC


