Skip to main content
    Back to Blog
    12 min readLast reviewed:
    Windsurf
    AI Coding
    Engineering
    DevSecOps
    AI Privacy

    Windsurf Security in 2026: Can It Leak Your Code? (Now Devin Desktop)

    T

    Team Sonomos · Sonomos

    The Sonomos research team writes about AI privacy, data protection, and how to use generative AI safely at work.

    Short answer, checked 18 November 2026: Windsurf is now called Devin Desktop, and it belongs to Cognition, the company behind the Devin coding agent. Yes, it can leak code, in two ways. The first is by design: completions, chat and the agent run on cloud models, so the code they need goes to Cognition and, for third-party models, to the model provider. Cognition's Platform Terms of Service, last updated 16 November 2026, say it "may use Customer Data for model training purposes" unless you opt out, and only paid plans can opt out. On Teams, only an administrator can. Enterprise contracts forbid training without written consent.

    The second way is through the agent. In 2025 a security researcher showed that text hidden in a source file could make Windsurf's agent send a developer's .env secrets to an outside server without asking. A SOC 2 Type II attestation, which Cognition has held since September 2024, does not address either risk: it tests Cognition's own controls, not your plan settings or what your agent is allowed to fetch.

    If you are looking for the old security page, windsurf.com/security now redirects to Security at Cognition in the Devin documentation. The product, the terms and the URLs have all moved in the past year, so every fact below carries its date.

    Who owns Windsurf now

    Windsurf began life as Codeium, made by Exafunction, Inc., a name that still appears in Cognition's terms for former Windsurf customers. Ownership changed hands in a single week in July 2025, and the product was renamed eleven months later.

    • 11 July 2025. OpenAI's deal to buy Windsurf for $3 billion "fell apart," TechCrunch reported. Google DeepMind hired chief executive Varun Mohan, co-founder Douglas Chen and some researchers, and took "a nonexclusive license to certain Windsurf technology"; Google "is not taking a stake in Windsurf and will not have any control over the company." Windsurf's own announcement named Jeff Wang interim chief executive.
    • 14 July 2025. Cognition signed a definitive agreement to acquire Windsurf, including "Windsurf's IP, product, trademark and brand."
    • 2 June 2026. Windsurf became Devin Desktop. A new local agent, Devin Local, replaced Cascade, which stayed available "through July 1st." The Devin Desktop FAQ says "Pricing is unchanged" and that the Windsurf JetBrains plugin "is in maintenance mode."

    For a vendor review, the practical point is that the counterparty is now Cognition AI, Inc., under Cognition's terms, privacy policy and trust center. If your supplier register still says Codeium or Windsurf, it is out of date.

    What leaves your machine

    Devin Desktop's chat runs Cognition's own SWE models alongside models from Anthropic, OpenAI and Google, according to its model list. Whatever context the agent gathers to answer you goes to Cognition and, for a third-party model, on to that model's provider.

    Three behaviours decide how much that is:

    • The agent reads more than you show it. The Devin Local documentation says that "by default, the Devin Local agent can only read/edit files within the workspace." Within the workspace, that includes files your .gitignore hides, unless you turn off a setting called Gitignore access.
    • Indexing covers the whole codebase. Devin Desktop indexes every file in the local codebase, including ones you have not opened, and its documentation does not say where those embeddings are computed or stored. Enterprise customers can also index remote repositories; the remote indexing page says Cognition clones the repository on "a single-tenant instance," keeps the embeddings, and deletes "all the code and code snippets" afterwards, unless a Store Snippets setting is on.
    • Retention follows the relationship. The Security at Cognition page says Cognition "only retains data processed through Devin for the duration of the relationship with a given Customer," while feedback and user interaction data are kept as long as Cognition decides is necessary.

    Training and zero data retention, plan by plan

    The table reads the current terms against the current price list. Older guides, including an earlier version of this one, said Windsurf Teams accounts were excluded from training by default. Cognition's November 2026 terms say otherwise.

    Plan (price on devin.ai/pricing)Training allowed by default?Who can opt outAfter opting out
    Free ($0)YesNobody: the terms offer the opt-out only to paid tiersNot available
    Pro ($20 a month) and Max ($200 a month)YesYou, under Settings, General, Disable trainingZero data retention with model providers
    Teams ($80 a month plus $40 per full seat)YesOnly an administratorZero data retention with model providers
    Enterprise (custom)NoNo action neededPer contract

    Sources: Platform Terms section 3.3.1 ("If you subscribe to a paid Service Tier, you may opt out"; "For the Teams Service Tier, only an administrator may exercise the Opt-Out"); Enterprise Terms of Service, updated 8 June 2026, section 3.3 (no training "without express prior written consent").

    Zero data retention is narrower than its name. The Platform Terms define it as Customer Data "not saved to disk or otherwise persistently retained," and then add in section 3.3.3 that "ZDR does not preclude retention or disclosure of Customer Data" flagged by safety classifiers, reviewed for safety or acceptable-use compliance, or compelled by law. That is the same shape as most vendors' promises, and our audit of which AI tools train on your data compares them.

    Certifications, and where the security documents live now

    Cognition's security material is split across three places, none of them on windsurf.com.

    • Security at Cognition (the old windsurf.com/security): "Cognition has been SOC 2 Type II certified since September 2024," with data encrypted in transit and at rest and the cloud hosted on AWS. Strictly, SOC 2 is an attestation report by an auditor, not a certification; our SOC 2 guide explains the difference.
    • trust.cognition.ai: the main view lists SOC 2 Type 2 and CCPA, with the SOC 2 report, a bridge letter and a penetration test report available on request under NDA. A separate Public Sector view says "Local Agents (Devin Desktop, previously known as Windsurf IDE) are FedRAMP High Authorized today," claims DoD IL4 to IL6 and ITAR compliance for the same product, and lists ISO/IEC 27001:2022.
    • Contracts: the Enterprise Terms incorporate a data processing addendum "posted at cognition.com/dpa," and the Platform Terms are governed by New York law.

    Neither the security page nor the trust center lists HIPAA or a business associate agreement. Treat protected health information as out of scope unless your contract says otherwise, and keep real patient data out of test fixtures and logs the agent can read. Our page for technology teams covers the wider engineering picture.

    How Windsurf compares with Cursor and GitHub Copilot

    Devin Desktop (Windsurf)CursorGitHub Copilot
    CompanyCognition AIAnysphereGitHub (Microsoft)
    Individual plansTraining allowed by default; paid plans can opt out, Free cannotPrivacy Mode, on any plan, stops trainingFree, Pro and Pro+ interaction data used for training since 24 April 2026 unless you opt out
    Business plansTeams allows training unless an admin opts out; Enterprise excludes itTeam and enterprise admins can enforce Privacy ModeBusiness and Enterprise not affected
    SOC 2 Type IIYes, since September 2024YesCopilot Business and Enterprise in GitHub's SOC reports
    ISO 27001 / ISO 4200127001:2022 on the Public Sector view; 42001 not listedBoth27001 scope since May 2024; 42001 listed by Microsoft
    HIPAA BAANot listedEnterprise only, with Privacy Mode lockedNot confirmed; see our Copilot HIPAA guide

    Sources, checked 18 November 2026: Cursor's security page (updated 25 August 2026) and BAA page; GitHub's March 2026 training change, its December 2024 SOC report notice and June 2024 ISO scope notice; Microsoft's ISO 42001 page. Our detailed reviews of Cursor and Claude Code cover each tool's settings, and the Cursor page and GitHub Copilot page summarise what each sends.

    The pattern matches the rest of the market: the contract tier decides the training question far more than the brand does, and none of the three makes the free plan a safe place for proprietary code.

    Can Windsurf leak secrets through the agent?

    It has. On 21 August 2025, Johann Rehberger published research showing two exfiltration paths in Windsurf's Cascade agent. A hidden instruction in a source file made Cascade read a .env file and send its contents out through its read_url_content tool, which "does not require user approval"; a second route leaked data through image rendering. He reported both to Windsurf on 30 May 2025, and they were unfixed when he published. This is prompt injection, and it is the most direct answer to whether an AI IDE can leak code: anything the agent can read, a malicious README or dependency can ask it to send.

    Devin Local has since replaced Cascade, and we have not tested whether those specific attacks work against it. What its documentation offers instead are controls you can set:

    • Sandboxing, with filesystem isolation and network filtering, where domain allowlists and denylists control what the agent can reach.
    • Permissions, with allow, ask and deny rules, and a Bypass Permissions mode that you should not use in a repository holding secrets.
    • Gitignore access, which you can switch off so the agent's file tools cannot open gitignored files. The docs say this covers file tools only, not shell commands or search.

    The ignore file does less than many teams assume. The .devinignore page says it keeps paths out of indexing, Tab completions and DeepWiki, and that ".devinignore does not block the file tools of Devin Local." The legacy .codeiumignore file is still read with the same limited effect. An earlier version of this guide said the ignore file stopped the agent reading those files; on the current documentation, it does not.

    A checklist before you open a sensitive repository

    • Confirm which plan each developer is on. Free accounts cannot opt out of training, so keep proprietary code off them.
    • On Pro, Max or Teams, turn on Disable training, and on Teams check that an administrator has done it for the whole team.
    • On Enterprise, keep the signed no-training clause, the data processing agreement and the SOC 2 report in your vendor file under Cognition AI, Inc.
    • Turn off Gitignore access, enable the sandbox with a network allowlist, and avoid Bypass Permissions mode.
    • Keep secrets out of the workspace altogether, and rotate any credential the agent has read, since a prompt may already have carried it off the machine.
    • Add a .devinignore for indexing and completions, and run secret scanning in CI regardless.
    • Update your supplier records for SOC 2 and ISO 27001, and check for developers using personal accounts, the shadow AI case that no admin setting reaches.

    Frequently asked questions

    Is Windsurf still available under the Windsurf name?

    The editor was renamed Devin Desktop on 2 June 2026, with the same IDE, extensions and pricing, and former windsurf.com pages now redirect to devin.ai and cognition.com. The Windsurf plugin for JetBrains IDEs still exists but is in maintenance mode, according to Cognition's FAQ.

    Does Devin Desktop train on my code on the Teams plan?

    By default, yes. Cognition's Platform Terms let it use Customer Data for training unless a paid customer opts out, and on Teams "only an administrator may exercise the Opt-Out." Opting out also turns on zero data retention with the model providers. Enterprise contracts exclude training unless you give written consent.

    Does a .devinignore file stop the agent reading my secrets?

    No. Cognition's documentation says the file keeps paths out of indexing, Tab and DeepWiki but does not block the file tools of Devin Local. To stop the agent opening gitignored files, turn off Gitignore access, and keep credentials outside the workspace.

    Does Windsurf have SOC 2 Type II or a HIPAA BAA?

    Cognition says it has held SOC 2 Type II since September 2024, and its trust center offers the report under NDA. Neither its security page nor its trust center lists HIPAA or a business associate agreement, as checked on 18 November 2026.

    Treat the code you open as the code you send

    The safe working assumption for any cloud AI editor is that every file the agent can open may leave the machine, and that its contract tier decides what happens next. For Devin Desktop that means a paid plan with training disabled or an Enterprise contract, an agent fenced in by sandbox and permission rules, and secrets that never sit in the workspace. Our wider guide to source code in AI coding assistants covers the same decisions for other tools, and if you would rather keep code on your own hardware, compare the self-hosted route.

    Locke, made by Sonomos, runs on your own computer and replaces names, account numbers, health details and other sensitive values with placeholders before a prompt reaches the AI tools it screens, so the provider never receives them. It does not yet screen Windsurf (now Devin Desktop) or Cursor, which send prompts in a binary format, as our known limitations page explains; for those editors, the settings above are the controls that work today. For the browser AI tools and command-line traffic Locke does cover, you can read how Locke works.

    Keep keys and secrets out of what your coding agent sends

    Locke's local proxy screens the requests that command-line agents, scripts and SDKs such as Claude Code send to model APIs, and masks the API keys, tokens and other secrets it detects before they leave your machine. It does not recognise proprietary code, so your code is sent as written, and Cursor and Devin Desktop (formerly Windsurf) use a format Locke cannot read yet.

    Sonomos, which publishes this blog, makes Locke. Free for one person on x64 Windows and Linux; macOS is coming soon.

    This article is general information about privacy and AI, not legal advice, and reading it does not create a solicitor–client or attorney–client relationship. Regulatory requirements turn on your specific facts and jurisdiction and change over time. Consult qualified counsel before relying on anything here, and check the publication and last-reviewed dates above. We may revise posts, but we do not undertake to keep any post current as the law changes.

    Reference pages for this post