Free security guide · Anysphere Cursor

3 things you can do to secure Cursor for free today.

Three changes a Cursor Teams admin can make today: enforce Privacy Mode so it can't be turned off, keep retention-requiring models and personal API keys out, and set every developer's agent to review before it runs.

Updated 3 min readDrycraf Cyber OperationsCursor Teams, with Enterprise notes

The short answer

First, in the Cursor dashboard, enforce Privacy Mode for the whole team so no one can turn it off. Second, leave the models that require data retention unapproved, and ask people not to use their own API keys, which zero data retention doesn't cover. Third, set up SSO, enforce Team Rules, and have every developer set the agent's run mode to Auto-review with Sandboxing on. Org-wide enforcement of run mode, MCP and model access is an Enterprise feature.

  1. Enforce Privacy Mode for the whole team
  2. Keep data-retaining models and personal keys out
  3. Make the agent review before it runs
01

Enforce Privacy Mode for the whole team

With Privacy Mode on, Cursor says your code is never used for training. For teams it's on by default, but a member can turn it off unless an admin enforces it.

Wherecursor.com/dashboardPrivacy settings

  1. Open the team dashboard at cursor.com/dashboard.
  2. Enforce Privacy Mode organization-wide, so members can't disable it.
  3. Tell the team which plan and settings are approved.
02

Keep data-retaining models and personal keys out

Some models require data retention. Cursor keeps them off by default, and an admin has to approve them. And when a developer uses their own API key, Cursor's zero-retention agreements with model providers don't apply.

Wherecursor.com/dashboardmodel approvals

  1. Leave the models that require data retention unapproved unless you've reviewed the provider's terms.
  2. Put "no personal API keys in Cursor" in your written policy, and check for them in reviews.
  3. On corporate devices, use the Allowed Team IDs MDM policy to block personal Cursor accounts. Check that your plan supports it.
03

Make the agent review before it runs

Cursor's agent can run terminal commands. Cursor's own hardening guide recommends Auto-review rather than Run Everything, with sandboxing on. On Teams these are per-developer settings; enforcing them across the organization takes Enterprise.

WhereCursoreach developer's agent settings

  1. Ask every developer to set the run mode to Auto-review, not Run Everything.
  2. Turn on Sandboxing for the agent.
  3. Set up SSO for the team (the plan table lists it for Teams) and enforce Team Rules that tell the agent never to read .env files or secrets.

Team Rules are instructions to the model, not a hard block. MCP configuration, auto-run controls, model access restrictions, the repository blocklist and audit logs are Enterprise-only.

More you can do today, for free

  • Use Protected Git Scopes and Active Sessions in the Teams dashboard to see and limit what's connected.
  • Keep a .cursorignore file in each repository to keep secret files out of the agent's context. It's guidance for the tool, not a security boundary.
  • Keep production credentials off developer laptops altogether.

Free and open-source tools to check out

None of these needs a purchase. Read each tool's own documentation before you run it on company systems.

  • Agent Scan (formerly mcp-scan)Apache-2.0Scans the MCP servers, agent configs and skills on a machine for tool poisoning, prompt injection and risky permissions.
  • GitleaksMITScans repositories and their history for committed secrets, such as API keys an AI agent wrote into a config file. Runs as a pre-commit hook or in CI.
  • Semgrep Community EditionLGPL-2.1Static analysis that catches insecure patterns in code, including the code AI assistants write, before it merges.
  • osqueryApache-2.0 / GPL-2.0Query laptops like a database: which AI apps, browser extensions and CLI agents are installed, and where their config files live.

At scale

Many agents, one policy: where Glasswarden comes in

Cursor's enforcement lives on its Enterprise plan, and your developers don't only use Cursor: Claude Code, Codex CLI and GitHub Copilot sit beside it. Glasswarden, from Drycraf, sees every agent's sessions and tool calls through agent hooks and OpenTelemetry, holds them to one policy, and sends fixes straight back to the agent that caused the problem.

AI VisibilityEvery coding agentCursor, Claude Code, Codex CLI and GitHub Copilot: versions, models, MCP servers, sessions and tool calls.
AI ControlA sanctioned listWhich agents and versions are allowed, and rules such as no reading secret files, warning or blocking where agents run.
AI RemediationFixes, Direct to AgentA public database or leaked key goes back to the owner's agent as a fix, verified by telemetry before it closes.

Questions admins ask

Does Cursor train on our code?

With Privacy Mode on, Cursor says your code is never used for training. For teams it's on by default, and admins can enforce it so members can't turn it off.

Can a Cursor Teams admin block MCP servers?

Not on Teams. MCP configuration, auto-run controls, model access restrictions and audit logs are Enterprise features.

What about the Grok Bot in Cursor?

Grok Bot signs in with a Cursor account, and its admin settings are on the Grok Bot page of the Cursor dashboard. See our Grok guide.

Sources

  1. Cursor: Teams and Enterprise settings
  2. Cursor: team dashboard
  3. Cursor: privacy
  4. Cursor: security hardening

Checked against the vendors' own documentation on November 6, 2026. Admin consoles change: if a menu has moved, the vendor's page above is the authority. Product names are trademarks of their owners; Drycraf is independent of them.