How to Detect Cursor in Your Company
Cursor installs per user without admin rights, signs in with whatever account the developer chooses, and keeps its own MCP servers and extensions. Here is where it leaves traces on each OS, how to check one laptop in a minute, and how to find it across a fleet.
What Cursor is and why security teams care
Cursor, from Anysphere, is a fork of VS Code built around an AI agent. The agent reads the open workspace to build context, edits files, and runs terminal commands as the logged-in user. Code and prompts go to Cursor's service and the model providers behind it, under the terms of the account the developer signed in with.
For a security team that raises four questions a plain editor inventory does not answer:
- Which account? Cursor's team plans offer an enforced Privacy Mode and admin settings, but they only apply to people signed in to your team. A developer on a personal account is outside all of it. Cursor's Allowed Team IDs policy, delivered by MDM, is the control that closes that gap.
- What can the agent run? Run modes decide whether terminal commands need approval. An allowlist that grows over weeks, or a mode that runs everything, turns any prompt injection in a README or issue into code execution.
- Which MCP servers? Cursor reads MCP servers from
~/.cursor/mcp.jsonand from.cursor/mcp.jsoninside a project, so cloning a repository can bring servers with it. Two 2025 CVEs (CurXecute and MCPoison) abused exactly this file; both are fixed in current versions. - Which extensions? Cursor keeps its own extension folder, installed from Open VSX. A VS Code extension allowlist does not apply to it.
Cursor also ships a terminal agent, cursor-agent, which can be installed on machines that never had the editor, including servers.
Where Cursor leaves traces
| Signal | Windows | macOS | Linux |
|---|---|---|---|
| Application | %LOCALAPPDATA%\Programs\cursor (per user), %PROGRAMFILES%\cursor (per machine) | /Applications/Cursor.app, ~/Applications/Cursor.app | /opt/Cursor, /usr/share/cursor, ~/.local/bin/cursor, AppImage in ~/Applications |
| Installed programs | Uninstall entry whose name starts with Cursor, under HKCU or HKLM | - | Package manager entry for .deb or .rpm installs |
| Process | Cursor.exe | Cursor | cursor |
| User data (evidence of use) | %USERPROFILE%\.cursor | ~/.cursor | ~/.cursor |
| Editor settings | %APPDATA%\Cursor\User | ~/Library/Application Support/Cursor/User | ~/.config/Cursor/User |
| MCP servers | %USERPROFILE%\.cursor\mcp.json | ~/.cursor/mcp.json | ~/.cursor/mcp.json |
| Extensions | %USERPROFILE%\.cursor\extensions | ~/.cursor/extensions | ~/.cursor/extensions |
| CLI agent | cursor-agent on PATH | cursor-agent on PATH | cursor-agent on PATH |
Projects add their own traces: .cursor/mcp.json, .cursor/rules/*.mdc, .cursorrules and .cursorignore. They prove Cursor is used on a repository even when the editor runs on another machine.
The data folder is the most useful single signal. The application can be deleted, run from an AppImage or reinstalled; ~/.cursor stays, and its modification time tells you whether it is still in use.
Check one machine
Both checks only read files, the process table and, where relevant, the local listener table. They send nothing over the network and change nothing.
Windows (PowerShell)
# Read-only, no network. Run as the user (not SYSTEM) so the per-user paths resolve.
# 1. Installed? Per-user and per-machine folders, and the uninstall entry
"$env:LOCALAPPDATA\Programs\cursor\Cursor.exe", "$env:ProgramFiles\cursor\Cursor.exe" |
Where-Object { Test-Path $_ } | Get-Item |
Select-Object FullName, @{n = 'Version'; e = { $_.VersionInfo.ProductVersion } }
Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*',
'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*' -ErrorAction SilentlyContinue |
Where-Object { $_.DisplayName -match '^Cursor' } | Select-Object DisplayName, DisplayVersion
# 2. Running now? Also the terminal agent
Get-Process -Name Cursor, cursor-agent -ErrorAction SilentlyContinue | Select-Object Name, Id, Path
Get-Command cursor-agent -ErrorAction SilentlyContinue | Select-Object Source
# 3. Used, and what it carries: data folder, MCP server names, extensions
Get-Item -Force "$env:USERPROFILE\.cursor" -ErrorAction SilentlyContinue | Select-Object FullName, LastWriteTime
$mcp = "$env:USERPROFILE\.cursor\mcp.json"
if (Test-Path $mcp) { (Get-Content $mcp -Raw | ConvertFrom-Json).mcpServers.PSObject.Properties.Name }
Get-ChildItem "$env:USERPROFILE\.cursor\extensions" -Directory -ErrorAction SilentlyContinue |
Select-Object -ExpandProperty Name
macOS and Linux (bash)
# Read-only, no network. Run as the user.
# 1. Installed? macOS app bundles, Linux folders and AppImages, the CLI agent
ls -d /Applications/Cursor.app ~/Applications/Cursor.app 2>/dev/null
ls -d /opt/Cursor /usr/share/cursor ~/.local/bin/cursor ~/Applications/cursor*.AppImage 2>/dev/null
command -v cursor-agent
# 2. Running now?
pgrep -il cursor
# 3. Used, and what it carries: data folder, MCP server names (needs jq), extensions
ls -ld ~/.cursor 2>/dev/null
[ -f ~/.cursor/mcp.json ] && jq -r '.mcpServers // {} | keys[]' ~/.cursor/mcp.json
ls ~/.cursor/extensions 2>/dev/null
The MCP part prints server names only. The same file often holds API tokens in an env block, so avoid printing whole entries into a ticket or an MDM log. To review the full configuration safely, paste it into the MCP config auditor, which runs in your browser.
What to look at beyond the install
Finding Cursor tells you who has it. These settings tell you how much it can do on its own; most are set in Cursor's team dashboard and apply only to members of your team:
- Privacy Mode enforced for the team, so members cannot switch it off.
- Allowed Team IDs pushed by MDM, so the editor cannot sign in to a personal account on a company device.
- Run modes restricted so nobody uses the mode that runs every command without review.
- MCP and extension allowlists, so a cloned repository or an Open VSX extension does not add tools on its own.
The vendor details, documented CVEs and a comparison with Claude Code's managed settings are in Cursor and Claude Code in your company: risks and controls.
Find it across a fleet
The commands above answer the question for one laptop. Across a fleet, run the same read-only checks from the management tool you already use and collect one line per device. Each of these guides has a tested script that already includes Cursor:
- Windows with Intune: Detect AI tools with Intune Remediations (detection-only script, results in the device status column).
- Windows with NinjaOne: Inventory AI tools with NinjaOne (writes a summary to a device custom field).
- macOS with Jamf Pro: Find AI tools with a Jamf Pro extension attribute (plus a Smart Group to act on it).
- macOS with Iru (Kandji): Detect AI tools with an Iru custom script (with an allowlist).
Those scripts walk every profile under C:\Users or /Users, because MDM scripts usually run as SYSTEM or root, where %USERPROFILE% and ~ point at the wrong home folder. On Linux, run the bash checks through whatever configuration management you have (Ansible, Salt, a cron job) and loop over /home/* the same way.
How Kuntur detects Cursor
Kuntur's detection catalog identifies Cursor by its install path on each OS, the running process, the Windows installed-programs entry and the ~/.cursor data folder, and reports cursor-agent as a separate CLI tool. For every user profile the agent also lists Cursor's MCP servers (user and project level) and its extensions, scored on what they declare rather than on their names. MCP servers carry their own findings, for example an unpinned npx package, a plaintext token or a remote server over plain HTTP.
To check one machine now, the free Kuntur scanner lists Cursor together with every other AI tool, extension, local model and MCP server it finds:
- Download scan.ps1.
- Read it. It's plain text; here's what it does.
- Check its SHA-256 against the published hash:
Get-FileHash .\scan.ps1 -Algorithm SHA256 - Run it:
powershell -ExecutionPolicy Bypass -File .\scan.ps1
Windows shortcut, if you trust the source (PowerShell)
irm https://app.kuntur.io/scan.ps1 | iexmacOS and Linux (Terminal)
curl -fsSL https://app.kuntur.io/scan.sh | shIt needs no account and no admin rights, writes an HTML report to the Desktop (or home folder) and uploads nothing. You can read scan.ps1 or scan.sh before running it; what it collects is documented.
Across a fleet, the Kuntur agent reports the same inventory for every user profile on Windows, macOS and Linux. You mark Cursor approved or unauthorized once for the organization, the dashboard shows which machines carry it, and every decision lands in an audit log.
Free for up to 5 endpoints. Pro is US$3 per endpoint per month (or US$30 per endpoint per year) for 10 to 30 endpoints. The trial needs no credit card. Kuntur detects and reports; it does not block or uninstall anything.
FAQ
- Does Cursor need admin rights to install?
- No. The default Windows installer writes to
%LOCALAPPDATA%\Programs\cursorand registers under HKCU, and on macOS it can run from~/Applications. A machine-wide installer also exists, so check both locations. - Where does Cursor store MCP servers?
- In
~/.cursor/mcp.jsonfor the user and in.cursor/mcp.jsoninside a project. Both use themcpServerskey. - How do I tell if Cursor is actually used, not just installed?
- Check the modification time of
~/.cursorand of the editor'sUsersettings folder, and whether the process is running. An old timestamp with no process usually means a trial that was abandoned. - Does a VS Code extension allowlist cover Cursor?
- No. Cursor keeps its own extensions in
~/.cursor/extensionsand installs them from Open VSX. VS Code'sextensions.allowedpolicy does not apply to it. - Can Kuntur tell if a developer uses a personal Cursor account?
- No. Kuntur reports the installed editor, its MCP servers and extensions. Account enforcement belongs to Cursor's Allowed Team IDs policy, delivered by MDM.
Sources
Detect other AI tools:
Related guides: