How to Secure Claude Code and Cowork: 10 Controls for 2026

Summary: The weeks before someone resigns are when customer lists, pricing and source code are most likely to walk out the door, and AI tools now make that data easier to reshape and carry. Companies that watch data movement on the device, in context, can protect what matters without treating every employee like a suspect.

Kitecyber | Data & Gen AI Security | November 2026

A developer opens a terminal and types claude. A finance analyst points Cowork at a folder of contracts. A product manager connects Claude Desktop to Google Drive and Slack. In each case, an AI agent is now reading local files, running commands or pulling data from business systems with that employee’s access.

That is the point of these tools, and it is why teams adopt them so quickly. It is also why securing Claude is no longer a question of blocking a website. This guide explains where the risk sits across Claude Code, Cowork and Claude Desktop, and walks through ten controls security teams can put in place, most of them using settings Anthropic already provides.

Key takeaways

Why Claude agents change the risk model

Earlier generative AI tools were mostly browser tabs. A URL filter or browser extension covered most usage. Claude’s agentic products work differently.
That design gives Anthropic good isolation primitives, but it also means data can leave through several paths a network proxy or browser extension never sees: a file read by a local agent, a clipboard paste into a desktop app, or a connector pulling records from a SaaS system.

Shared responsibility

It helps to be precise about who covers what.

Anthropic provides

Your organization decides

Model safeguards, product security and patching Which accounts and plans employees may use
Commercial data commitments (Team and Enterprise data is not used for training by default) What data employees are allowed to put into prompts and files
Admin controls: SSO, SCIM, managed settings, permission rules, sandbox, MCP allowlists Whether those controls are deployed and enforced
Audit logs, Compliance API and OpenTelemetry signals Who monitors them and how incidents are handled
Training commitments limit what happens to data after it arrives. They do not stop sensitive data from being sent in the first place. That part is on you.

What has already gone wrong

These incidents are useful because they show realistic failure modes, not exotic attacks.

The pattern: most incidents start with an employee doing normal work, or with untrusted content that the agent processes on the employee’s behalf.

Five surfaces where data can leave through Claude

10 controls to secure Claude Code, Cowork and Claude Desktop

1. Build an inventory of every Claude surface and account

You cannot secure what you have not found. Start with three questions:

Device management tools can report installed applications. Configuration files such as ~/.claude/settings.json, project .mcp.json files and desktop extension directories show what is connected. Repeat the inventory regularly, because these tools update often.

Priority: Immediate

2. Standardize on enterprise accounts and block personal ones

Personal accounts sit outside your SSO, audit logs and retention settings. Give employees a sanctioned option first, then restrict the alternatives.
Note that header injection only works where traffic passes through your proxy, so remote devices need an endpoint-based or always-on path.

Priority: Immediate

3. Deploy managed settings for Claude Code

Managed settings sit above every user and project setting, so developers and repositories cannot override them. Anthropic supports three delivery paths:
{
  "forceLoginMethod": "claudeai",
  "forceLoginOrgUUID": "<your-org-uuid>",
  "allowManagedPermissionRulesOnly": true,
  "allowManagedHooksOnly": true,
  "permissions": {
    "disableBypassPermissionsMode": "disable",
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)",
      "Read(./secrets/**)",
      "Read(~/.ssh/**)",
      "Read(~/.aws/**)"
    ]
  }
}

What this does:

Test before rolling out widely. Locking permission rules to managed-only can block legitimate workflows, and Anthropic notes it can interfere with how Cowork pre-approves connected folders. Note too that Cowork sessions do not fetch server-managed settings from the admin console, so device-level policy matters there.
Priority: High

4. Turn on the sandbox and protect credentials

Permission prompts depend on users reading them carefully. Claude Code’s sandbox is an OS-enforced boundary around shell commands: Seatbelt on macOS and bubblewrap on Linux and WSL2. It limits which files commands can write and routes network access through a proxy that only allows domains you list. Two details are easy to miss:
{
  "sandbox": {
    "enabled": true,
    "allowUnsandboxedCommands": false,
    "failIfUnavailable": true,
    "filesystem": {
      "denyRead": ["~/.ssh", "~/.aws", "~/.config/gcloud", "~/**/.env"]
    },
    "network": {
      "allowedDomains": ["github.com", "*.npmjs.org"],
      "allowManagedDomainsOnly": true
    }
  }
}

failIfUnavailable makes Claude Code refuse to start instead of silently running unsandboxed. On native Windows, Claude Code runs commands without a sandbox, so require WSL2 or a dev container for Windows developers. For untrusted code or long autonomous runs, use a dev container or disposable VM.

Credential hygiene matters just as much: keep long-lived keys out of plaintext .env files, use a secrets manager or short-lived tokens, and use apiKeyHelper to issue Claude credentials rather than distributing static keys.

Priority: High

5. Treat repositories, instruction files and plugins as untrusted input

Both CVEs above were triggered by files inside a repository. Anything an agent reads can influence what it does.

Priority: High

6. Govern MCP servers and connectors with least privilege

MCP is where an agent’s reach grows fastest. Each server inherits whatever credentials it is given.

Priority: High

7. Configure Cowork and Claude Desktop deliberately

Cowork has its own admin controls. Decide on each one rather than accepting defaults:
Plan for visibility gaps. Anthropic notes that EDR tools cannot see inside the local Cowork VM by default (approved vendor sensors are in beta), and that cloud sessions run outside your endpoints entirely. Use the Compliance API and OpenTelemetry for those sessions, and use endpoint telemetry for what happens on the host around them: which folders are connected, which files are touched, and which data leaves the device.
Priority: Medium–High

8. Control what sensitive data reaches the prompt

None of the controls above decide whether a given paste or upload is appropriate. An employee with a valid enterprise account can still paste a customer list, upload an unreleased financial model or point an agent at a folder of patient records. Practical steps:

Priority: High

9. Monitor usage and prepare an incident playbook

Priority: Medium–High

10. Write an AI acceptable-use policy and train people on it

Technical controls work best when employees understand the rules. Keep the policy short:
Map the policy to the frameworks you already report against (for example SOC 2, ISO 27001, HIPAA or GDPR) so AI controls show up in existing audits rather than as a separate effort.
Priority: Foundational

Quick-start checklist

#

Control

Native option

Priority

1

Inventory surfaces, versions, accounts, MCP servers

MDM app inventory, config file review

Immediate

2

Enterprise accounts only

SSO/SCIM, anthropic-allowed-org-ids, forceLoginOrgUUID

Immediate

3

Managed settings baseline

Server-managed, MDM or managed-settings.json

High

4

Sandbox and credential protection

sandbox.enabled, denyRead, failIfUnavailable, WSL2 on Windows

High

5

Untrusted repos, hooks and plugins

Auto-update, allowManagedHooksOnly, strictKnownMarketplaces

High

6

MCP and connector governance

allowedMcpServers, managed-mcp.json, Desktop MDM keys

High

7

Cowork configuration

Org toggle, network policy, approvals, device trust

Medium–High

8

Data-aware controls on paste, upload and file access

Endpoint DLP and classification (third party)

High

9

Monitoring and incident response

OpenTelemetry, audit logs, Compliance API

Medium–High

10

Policy and training

Internal

Foundational

Where native controls stop

Anthropic’s controls are the right foundation, and every organization using Claude should deploy them. It is still worth being clear about what they do not cover:
Closing those gaps means adding controls on the device itself that understand data, user, process and network context across every AI tool, not one product at a time.

Frequently Asked Questions

It can be, when it is configured deliberately. Use enterprise accounts, deploy managed settings, enable the sandbox, restrict MCP servers and keep it updated. The risks come mostly from default configurations, untrusted repositories and sensitive data that users share.
Anthropic states that Team and Enterprise data is not used to train its models by default. That governs what happens after data is sent. It does not prevent sensitive data from being shared in the first place.
Yes, on Enterprise plans. Configure your proxy to inject the anthropic-allowed-org-ids header with your organization IDs, and pin Claude Code logins with forceLoginOrgUUID. Remote devices need an endpoint-based enforcement path, because header injection only works for traffic that passes through your proxy.
You can block the Anthropic API domains, but that blocks approved use too and cannot distinguish what is being sent. Tenant restrictions, managed settings and endpoint data controls give finer-grained control.
Add Read deny rules for those paths in managed settings, and add matching denyRead entries in the sandbox configuration. You need both, because the sandbox covers shell commands while permission rules cover Claude’s built-in file tools.
Allowlist approved servers centrally, deploy them with managed-mcp.json, give each server least-privilege credentials, disable local MCP and desktop extensions where they are not needed, and treat MCP responses as untrusted input.
Two Claude Code vulnerabilities disclosed by Check Point Research. Malicious repository settings could run commands or send the user’s API key to an attacker before the startup trust prompt was properly accepted. Both are patched; CVE-2026-21852 was fixed in version 2.0.65.

Ajay Gulati

Ajay Gulati is a passionate entrepreneur focused on bringing innovative products to market that solve real-world problems with high impact. He is highly skilled in building and leading effective software development teams, driving success through strong leadership and technical expertise. With deep knowledge across multiple domains, including virtualization, networking, storage, cloud environments, and on-premises systems, he excels in product development and troubleshooting. His experience spans global development environments, working across multiple geographies. As the co-founder of Kitecyber, he is dedicated to advancing AI-driven security solutions.

Scroll to Top