For Teams
Cursor Security & Privacy Mode: What Teams Need to Know
Privacy Mode guarantees your code is never used to train Cursor or the model providers and most models run under zero-data-retention agreements so inputs aren't stored. Cursor is SOC 2 Type II certified; Enterprise adds CMEK, SSO/SCIM, optional US data residency and a HIPAA BAA (via sales, with Privacy Mode locked org-wide). The honest limit: self-hosted cloud-agent runners keep execution on your infrastructure, but inference never runs on-prem.
On this page
What does Privacy Mode actually do?
Privacy ModeCursor's setting that guarantees code data is not used for training by Cursor or its model providers, and that an admin can enforce org-wide; data-retention terms are a separate, contractual layer. Press Enter for the full definition. ensures your code is never used for training - by Cursor or the underlying model providers. It's available on all tiers, on by default for Enterprise teams, and admins can enforce it org-wide so members can't turn it off. Note: your code is still sent to providers to generate responses; the guarantee is about training and retention, not transmission.
Available and enforced are two different states.
Until an admin locks it org-wide, Privacy ModeCursor's setting that guarantees code data is not used for training by Cursor or its model providers, and that an admin can enforce org-wide; data-retention terms are a separate, contractual layer. Press Enter for the full definition. is a per-account setting that each person can change, and the gap between the two states is where the practical risk sits. Enterprise teams start with it on. On every other plan the documented position is only that it is available, so read each account's setting rather than assuming it matches your policy.
Enterprise admins can also set an allowed team ID, which blocks sign-in from personal accounts on corporate machines. That control exists for a specific failure: a personal account may not have Privacy ModeCursor's setting that guarantees code data is not used for training by Cursor or its model providers, and that an admin can enforce org-wide; data-retention terms are a separate, contractual layer. Press Enter for the full definition. enabled at all, so a developer signing into their own account on a work laptop steps outside a locked org policy without ever deciding to.
Bringing your own API key moves the guarantee to a different contract, and it is the detail I would raise with a security reviewer before they find it themselves. With your own key, zero data retention rests on your agreement with the model provider rather than on Cursor's arrangement with that provider. Read those terms separately from Cursor's.
This is covered hands-on in Teams and Enterprise Admin — 6 short modules, free to read.
Which security controls should teams enforce?
The controls that matter for teams are the ones you can lock org-wide: enforced Privacy ModeCursor's setting that guarantees code data is not used for training by Cursor or its model providers, and that an admin can enforce org-wide; data-retention terms are a separate, contractual layer. Press Enter for the full definition., zero data retention, SSOSingle Sign-On. One company login (usually via SAML or OIDC) instead of a separate password per tool. Press Enter for the full definition. and SCIMSystem for Cross-domain Identity Management. A standard for automatically creating and removing user accounts when people join or leave. Press Enter for the full definition., and CMEK on Enterprise. The table maps each to its effect and the tier it's available on. One honest limit up front: model inference never runs on-prem. Self-hosted cloud-agent runners cover tool execution only.
- Control
- Privacy ModeCursor's setting that guarantees code data is not used for training by Cursor or its model providers, and that an admin can enforce org-wide; data-retention terms are a separate, contractual layer. Press Enter for the full definition. (enforced)
- Effect
- No training on your code; lock org-wide
- Tier
- All; admins enforce org-wide
- Control
- Zero Data Retention
- Effect
- Providers don't store inputs/outputs
- Tier
- Default for most models
- Control
- SOC 2 Type II
- Effect
- Audited security posture
- Tier
- Report via trust.cursor.com
- Control
- SSOSingle Sign-On. One company login (usually via SAML or OIDC) instead of a separate password per tool. Press Enter for the full definition. / SCIMSystem for Cross-domain Identity Management. A standard for automatically creating and removing user accounts when people join or leave. Press Enter for the full definition.
- Effect
- Central identity + provisioning
- Tier
- Teams / Enterprise
- Control
- CMEK
- Effect
- Your key encrypts embeddings and cloud-agent data
- Tier
- Enterprise
- Control
- US data residency
- Effect
- Inference, processing and storage stay in the US
- Tier
- Enterprise add-on
- Control
- HIPAA BAA
- Effect
- Signed before any PHI; requires org-locked Privacy ModeCursor's setting that guarantees code data is not used for training by Cursor or its model providers, and that an admin can enforce org-wide; data-retention terms are a separate, contractual layer. Press Enter for the full definition. and eligible services/models
- Tier
- Enterprise, via sales
| Control | Effect | Tier |
|---|---|---|
| Privacy ModeCursor's setting that guarantees code data is not used for training by Cursor or its model providers, and that an admin can enforce org-wide; data-retention terms are a separate, contractual layer. Press Enter for the full definition. (enforced) | No training on your code; lock org-wide | All; admins enforce org-wide |
| Zero Data Retention | Providers don't store inputs/outputs | Default for most models |
| SOC 2 Type II | Audited security posture | Report via trust.cursor.com |
| SSOSingle Sign-On. One company login (usually via SAML or OIDC) instead of a separate password per tool. Press Enter for the full definition. / SCIMSystem for Cross-domain Identity Management. A standard for automatically creating and removing user accounts when people join or leave. Press Enter for the full definition. | Central identity + provisioning | Teams / Enterprise |
| CMEK | Your key encrypts embeddings and cloud-agent data | Enterprise |
| US data residency | Inference, processing and storage stay in the US | Enterprise add-on |
| HIPAA BAA | Signed before any PHI; requires org-locked Privacy ModeCursor's setting that guarantees code data is not used for training by Cursor or its model providers, and that an admin can enforce org-wide; data-retention terms are a separate, contractual layer. Press Enter for the full definition. and eligible services/models | Enterprise, via sales |
Verify current details at cursor.com/security and cursor.com/docs/enterprise/baa. Inference is never on-prem; self-hosted runners cover cloud-agent execution only.
Three of those seven rows are Enterprise, which is the trade-off the table states without arguing for. CMEK, US data residency and the HIPAA BAA are not switches a Teams plan turns on later, so choosing a plan and settling your security posture turn out to be one decision rather than two. Enforced Privacy ModeCursor's setting that guarantees code data is not used for training by Cursor or its model providers, and that an admin can enforce org-wide; data-retention terms are a separate, contractual layer. Press Enter for the full definition. and zero data retention are the two that do not depend on tier, and between them they answer the training question outright.
Do we need Enterprise for Cursor to be secure?
Not for the training guarantee, and yes for several of the controls around it. Privacy ModeCursor's setting that guarantees code data is not used for training by Cursor or its model providers, and that an admin can enforce org-wide; data-retention terms are a separate, contractual layer. Press Enter for the full definition. is available on every tier and keeps your code out of training data, though locking it org-wide takes an admin. SSOSingle Sign-On. One company login (usually via SAML or OIDC) instead of a separate password per tool. Press Enter for the full definition. and SCIMSystem for Cross-domain Identity Management. A standard for automatically creating and removing user accounts when people join or leave. Press Enter for the full definition. sit on Teams and Enterprise. CMEK, US data residency and a signed HIPAA BAA are Enterprise only.
Under a dozen engineers with no managed fleet, most of what you have is convention, and that is a more defensible position than it tends to sound. The controls that survive at that size are the per-account settings plus whatever ships inside the repository: .cursorignore over vendored data and generated artifacts, and a .cursor/hooks.json committed to the repo so every clone picks it up. A teammate can edit either one, which is tolerable while the team is small enough that somebody reads every diff.
It stops being tolerable earlier than most teams expect. Two dashboard settings that apply to everyone are worth more than any number of local conventions, and the security hardening guide walks the order Cursor recommends configuring them in. Start that migration while the account list is still short enough to audit by hand.
What exactly happens to my code and embeddings?
The honest, precise version of Cursor's posture: Privacy ModeCursor's setting that guarantees code data is not used for training by Cursor or its model providers, and that an admin can enforce org-wide; data-retention terms are a separate, contractual layer. Press Enter for the full definition. is on by default for Enterprise teams (individuals switch it on in settings), most models run under zero-data-retention agreements - the few that require provider-side retention need an admin's approval before a Privacy Mode team can use them - and Cursor holds SOC 2 Type II. On location: Enterprise teams can enroll in US data residency so inference, processing and storage for supported features stay in the US, with EU and APAC residency in active development.
When Cursor indexes your repo it splits the code into chunks, computes an embedding (vector) per chunk and stores the results in a vector database - with filenames obfuscated and file paths encrypted before they're sent to Cursor's servers. Code content is never stored in plaintext: it's held in memory while the index is built, then discarded.
Embeddings are not human-readable source. That's why the vector index, not your code, is what persists.
- `.cursorignoreA file listing paths Cursor must never index or read, kept separate from .gitignore. Press Enter for the full definition.` keeps paths out of indexing and blocks them from Agent, Tab, inline edit and @-mentions. It's best-effort - terminal and MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. tool output can't be filtered - so treat it as a guardrail for vendored data and generated artifacts, not the only defense for real secrets.
- Hooks add a deterministic layer on top of the model: run a PIIPersonally Identifiable Information. Data that can identify a person (names, emails, SSNs); regulated and sensitive. Press Enter for the full definition./secret scanner as a hook so sensitive strings are caught by rules, not left to the model's discretion.
What customer or account data should I keep out of the model?
Draw the line deliberately. Support and account teams using Cursor keep some work out of the model on purpose - billing and account-specific tasks need context they'd rather not hand to an LLM. That boundary isn't absolute, though: account-management data can be piped in from your CRM through an MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. server when the contractual or use-case detail genuinely helps the agent. The skill is deciding which side of the line a given piece of customer context sits on.
When the line does get crossed, the audit log will not be the thing that tells you. Cursor's audit log covers authentication and admin events rather than what went into a prompt, so a policy promising to detect a leak after the fact is promising something the log does not do. Hooks are where prompt-level evidence gets captured, and the compliance and monitoring guide covers what to record.
Things like billing and whatnot require account-specific context that you don't necessarily want to give to an LLM.
Frequently asked questions
Does Cursor store or train on my code?
Not with Privacy Mode on - code isn't used for training and most models run under zero-data-retention agreements so providers don't store it. Using your own API keys can change this, so check those terms.
Is Cursor SOC 2 compliant?
Yes, SOC 2 Type II, with the report (and penetration-test reports) available on request via trust.cursor.com, typically within a business day. A standard DPA is published at cursor.com/dpa.
What does Cursor actually keep when it indexes my codebase?
Embeddings in a vector database, with obfuscated filenames and encrypted file paths. Code content is never stored in plaintext - it sits in memory while the index is built, then gets discarded. Use .cursorignore to keep specific paths out of indexing entirely.
Do cloud agents change the privacy picture?
Slightly. Cloud agents run in isolated VMs on encrypted copies of your repository, so Cursor temporarily stores code for the run; that data is deleted after the agent completes. Orgs whose policy prohibits any code storage can keep cloud agents disabled, and CMEK covers cloud-agent data on Enterprise.
Do we need Enterprise for Cursor to be secure?
Not for the training guarantee: Privacy Mode is available on every tier and keeps your code out of training data, though locking it org-wide so members cannot switch it off takes an admin. SSO and SCIM sit on Teams and Enterprise, while CMEK, US data residency and a signed HIPAA BAA are Enterprise. Small teams without a managed fleet rely on per-account settings plus what they commit to the repo, such as .cursorignore and a .cursor/hooks.json.
Does bringing our own API key change the retention picture?
Yes. With your own key, zero data retention rests on your agreement with the model provider rather than on Cursor's arrangement with that provider, so review those terms separately before you rely on them.
Can we self-host Cursor?
No - there's no on-prem or single-tenant VPC option. Inference runs on Cursor's infrastructure or third-party providers, and while cloud-agent runtimes can point at self-hosted machine pools, the models are still remote. If air-gapped deployment is required, Cursor won't meet it.
Sources & last verified
- Cursor - Security
- Cursor Docs - Privacy & data governance
- Cursor Docs - HIPAA Business Associate Agreements
- Cursor Help - Data residency regions
- Cursor - Trust Center
Cursor ships frequently. Last updated July 28, 2026.
Keep reading
Rather do it than read about it? Run 11 interactive Cursor walkthroughs in a simulated editor. Free, no account needed.