Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
Processes spawned within the cursor_sandbox (likely by AI Agent or integrated terminal) become “immortal.” Even with root / sudo privileges on the host machine, sending SIGKILL or SIGTERM results in “Permission denied” (EACCES).
The sandbox uses a Seccomp profile (Seccomp: 2) and an LSM attribute (cursor_sandbox (enforce)) that effectively locks out the host’s root user from managing the process. This leads to “ghost processes” hanging on ports (e.g., port 3000) that cannot be cleared without a hard Kernel intervention via SysRq.
Steps to Reproduce
1/ Start a long-running process (like next dev) using the Cursor AI Agent or the integrated terminal.
2/ Ensure the process is running under cursor_sandbox (enforce) (check /proc/[PID]/status).
3/ Open a standard external terminal. Or Cursor terminal.
4/ Attempt to kill the process: sudo kill -9 [PID] or sudo pkill -f “next dev”.
5/ Observe the error: bash: kill: (PID) - Permission denied.
Expected Behavior
The host machine’s root/sudo user should always maintain “Runtime Sovereignty.” Any process spawned by the IDE should be terminable by the system administrator or the owner of the hardware without requiring an IDE restart or a Kernel SysRq trigger.
Operating System
Linux
Version Information
Cursor
/usr/bin/cursor
3.1.14 (commit d8673fb56ba50fda33ad78382000b519bb8acb70, x64)
(IDE Version: 3.1.14
VSCode Version: 1.105.1
Commit: d8673fb56ba50fda33ad78382000b519bb8acb70
Date: 2026-04-14T01:39:23.679Z
Layout: editor
Build Type: Stable
Release Track: Nightly
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Linux x64 6.14.0-28-generic)
Additional Information
OS: Linux 24.04 LTS (Ubuntu/Debian based)
Kernel Security: Seccomp enabled, AppArmor/LSM enforcing cursor_sandbox.
Impact: Critical. Prevents port reclamation and resource management in professional dev workflows.
Workaround used: Had to force a kernel-level kill using echo i > /proc/sysrq-trigger, which is highly disruptive.
Diagnostics Log:
Evidence of the lockdown:
Name: next-server
Uid: 1000 1000 1000 1000
Seccomp: 2
attr/current: cursor_sandbox (enforce)
Result of kill attempt:
root@minhlap:~# kill -9 3407703
bash: kill: (3407703) - Permission denied
Does this stop you from using Cursor
No - Cursor works, but with this issue