أمان المؤسسات لـ Claude: دليل عملي للحوكمة لفرق الهندسة

Built for Speed: ~10ms Latency, Even Under Load
Blazingly fast way to build, track and deploy your models!
- Handles 350+ RPS on just 1 vCPU — no tuning needed
- Production-ready with full enterprise support
The three Claude attack surfaces (and why they need different controls)
Eight out of ten Fortune 10 companies now use Claude, and over 300,000 businesses run it in production. Two CVEs in the past year proved that a cloned repo is all it takes to exfiltrate API keys or execute code before a trust dialog even appears.
Claude ships across three interfaces — web, desktop, and CLI — and each one has a different attack surface. The web version runs in a browser sandbox, the desktop app connects to local tools, and Claude Code sits in your developers' terminals with the same permissions as their user accounts. It can read files, run bash commands, and connect to external services.
Most enterprise security guides treat these interfaces as one thing, but they are not. Governing Claude well means applying the right controls to each surface, rather than blanket policies that over-restrict developers or leave gaps. The sections below walk through how to do it.
Identity and Access Configuration
SSO should be live before you hand Claude to a single developer — not after, and certainly not "soon."
Claude supports SAML 2.0 and OIDC with Okta, Azure AD (Entra ID), Auth0, and Google Workspace, and you can manage all of it from the Claude Admin Console (see the setup guide). Three settings matter most at this stage.
Critical SSO Configuration Steps
- Enable Require SSO for Console and Require SSO for Claude. Both settings enforce SSO-based authentication and inherit MFA from your identity provider.
- Claim your corporate email domains through domain capture. Once active, any sign-in attempt with a company address automatically routes to the enterprise workspace, preventing employees from reverting to personal accounts across any interface.
- Map your Identity Provider (IdP) groups to Claude roles. Primary Owner gets full admin access, including billing. Admin manages users, policies, and audit logs, but cannot touch billing, and Member uses Claude within admin-defined policies.
Revoking someone in your IdP drops their access across web, desktop, and CLI instantly.


API Key Management
SSO handles interactive logins, while API keys handle everything else — Claude Code sessions, CI/CD pipelines, and any automation hitting the API outside a browser.
You should issue keys through the Admin Console because developers should never use personal keys in a corporate context. Store them in AWS Secrets Manager, HashiCorp Vault, or Azure Key Vault, rotate them quarterly, and revoke them immediately on suspected compromise or when someone leaves the team.
Model Access and Traffic Routing
After identity, the next layer is model access and traffic routing. You need answers to two questions: which models can developers use, and where does their Claude traffic actually flow?
Restricting the Model Set
A simple allowlist in the Admin Console stops developers from switching to higher-cost or unapproved models:
{
"allowedModels": ["claude-sonnet-4-5", "claude-haiku-4-5"]
}Routing Traffic Through a Gateway
Routing Claude traffic through your own LLM gateway lets you inspect, log, and govern requests at the network layer. You can set these environment variables on developer machines to get started:
export ANTHROPIC_BASE_URL=https://your-gateway.internal.corp
export HTTPS_PROXY=https://proxy.your-company.com:8080One important detail is that these variables apply only to Claude Code and Claude Desktop. Web routing is controlled at the organization level through the Admin Console.
Enforcing Routing Policies Across Developer Machines
Setting variables on one machine is easy, but doing it across 100 machines and ensuring nobody changes them is the real challenge.
You can enforce routing policies across developers’ machines in three ways:
- MDM / Endpoint-Managed Settings push a managed-settings.json file to every machine via Jamf, Kandji, or Intune. Claude Code reads the file at startup with no network dependency, and the settings are tamper-resistant at the OS level. The tradeoff is that MDM only works on corporate-owned devices.
- Server-Managed Settings (Beta) delivers configuration from Anthropic's servers when developers authenticate. No file deployment is needed, and the approach works on BYOD devices. The catch is that enforcement is client-side only, so a developer with sudo can tamper with it. The approach is also incompatible with custom ANTHROPIC_BASE_URL, so if you route through a gateway, this option is off the table.
- Direct Cloud Provider routes Claude Code to your AWS Bedrock or Google Vertex account. Traffic stays in your VPC with cloud-native audit logging, but the downside is single-provider lock-in and complex IAM setup.

Using a Centralized Gateway for Multi-Provider Routing
Instead of configuring each provider one by one, TrueFoundry AI Gateway gives you a single proxy layer between Claude Code and all your model providers. You can point Claude Code at it with one variable:
export ANTHROPIC_BASE_URL=https://<your-truefoundry-gateway-url>From there, you add provider accounts in the Gateway dashboard, and Claude Code reaches all of them — Anthropic, Bedrock, Vertex — via a single endpoint. Virtual Models let you create a single model identifier that routes across providers with weight-based or latency-based logic, and you can switch providers without touching any client configuration.
The Gateway also enforces rate limits, budget limits, and access control on every request before it reaches the provider.

Local Tool Access and Sandboxing
The mistake most teams make is treating all three interfaces the same, even though they are fundamentally different in what they can touch.
Claude.ai (Web)
The web interface has no local code execution, so the primary risks are data exfiltration through prompts and shadow IT from personal accounts. Domain capture solves the second problem.
For the first, classify Claude.ai as a third-party SaaS tool in your data loss prevention (DLP) and AI security tooling and apply the same controls you would to Google Docs or Notion. The Admin Console also lets you restrict file uploads, disable Artifacts, and control conversation retention.
Claude Desktop
The desktop app does not run arbitrary shell commands by default, but local tool integrations let developers connect Claude to scripts, file systems, and other resources. You should review each tool before approval and require explicit human confirmation before execution for anything with write access. Keeping the app current via MDM-enforced auto-update is also essential.
Claude Code (CLI)
Claude Code has the broadest attack surface of the three interfaces. It can read .env files, SSH keys, and credentials, run arbitrary bash commands in the developer's user context, and send code and context to Anthropic's servers for processing.
The following baseline managed-settings.json blocks the most dangerous operations:
{
"permissions": {
"disableBypassPermissionsMode": "disable",
"deny": [
"Bash(curl:*)", "Bash(wget:*)",
"Read(**/.env)", "Read(**/.env.*)",
"Read(**/secrets/**)", "Read(**/.ssh/**)",
"Read(**/credentials/**)"
],
"ask": ["Bash(git push:*)", "Write(**)"]
},
"allowManagedPermissionRulesOnly": true,
"allowManagedHooksOnly": true,
"transcriptRetentionDays": 14
}Here is what each key setting does:
- disableBypassPermissionsMode stops developers from using --dangerously-skip-permissions to override safety controls.
- allowManagedPermissionRulesOnly locks out project-level and user-level permission overrides entirely.
- deny rules block operations outright with no override possible.
- ask rules require explicit developer approval before each execution.
One more thing worth emphasizing: Claude Code should never run as root under any circumstances.
Enabling Native Sandboxing
Claude Code's native sandbox enforces filesystem and network isolation at the OS level, using Seatbelt on macOS and bubblewrap on Linux. Anthropic's own internal testing found that sandboxing reduces permission prompts by 84% while maintaining stronger execution boundaries. You should enable it for all developers:
{
"sandbox": {
"enabled": true,
"network": { "httpProxyPort": 8080, "socksProxyPort": 8081 }
}
}The sandbox prevents modification of system-level files, blocks contact with domains you have not allowed, and limits the blast radius of prompt injection attacks. You should also set "allowUnsandboxedCommands": false to close the escape hatch that would otherwise let commands run outside the sandbox.
MCP Server Governance
MCP servers connect Claude to external databases, APIs, and SaaS tools, and every new server a developer adds expands the attack surface. Without centralized control, you end up with credential sprawl, unvetted public servers running on developer machines, and no audit trail of which tools were called or what data returned.
The solution is to route all MCP access through a centralized gateway and allowlist only that gateway URL.
What TrueFoundry MCP Gateway Provides
TrueFoundry MCP Gateway handles enterprise MCP governance through a single control plane:
- Centralized MCP registry that lets you register and manage all approved servers in one place, so developers connect to the Gateway instead of managing individual server connections locally.
- Unified authentication where developers authenticate once with a TrueFoundry API key or IdP token (Okta, Azure AD, Auth0), and the Gateway handles outbound auth to each downstream server.
- Role-based access control that governs which users and teams can reach which servers and tools, enforcing least-privilege from the dashboard.
- Tool-level governance that lets you disable individual tools on a server or aggregate tools from multiple servers into a خادم MCP افتراضي يعرض فقط مجموعة فرعية معتمدة لكل فريق.
- حواجز الحماية تطبق فحوصات ما قبل التنفيذ، وحظرًا في الوقت الفعلي، وتحققًا بعد التنفيذ على استدعاءات الأدوات.
- كامل سجل التدقيق حيث يتم تتبع كل استدعاء أداة مع نسبة المستخدم، وحمولات الطلب/الاستجابة، وبيانات زمن الاستجابة.
يمكنك تأمينه في ملف managed-settings.json:
{
"allowedMcpServers": [
{ "serverUrl": "https://truefoundry-mcp-gateway.your-company.com/*" }
],
"strictKnownMarketplaces": []
}تمنع مصفوفة strictKnownMarketplaces الفارغة جميع عمليات تثبيت MCP التي مصدرها السوق. على الأجهزة المدارة، يمكنك نشر ملف managed-mcp.json عبر MDM لتزويد الأجهزة مسبقًا بخوادم معتمدة، وبمجرد نشره، لا يمكن للمطورين إضافة خوادم تتجاوز تلك المحددة في الملف.

الاحتفاظ بالبيانات والامتثال
قد تحتفظ Anthropic بالمدخلات والمخرجات افتراضيًا لتحسين السلامة والجودة، ولكن لديك ثلاث آليات للتحكم في الاحتفاظ.
إعدادات الاحتفاظ حسب الواجهة
بالنسبة لـ Claude.ai، يمكنك تعيين الاحتفاظ بحد أقصى 30 يومًا في إعدادات المؤسسة > البيانات والخصوصية. بالنسبة لـ Claude Code، استخدم إعداد transcriptRetentionDays في ملف managed-settings.json بقيمة تتراوح بين 7 و 14 يومًا كإعداد افتراضي معقول.
الاحتفاظ الصفري بالبيانات (ZDR)
لأعباء العمل الخاضعة للتنظيم، يجب عليك طلب ZDR عبر فريق حسابك في Claude. يمنع ZDR شركة Anthropic من تخزين المطالبات أو المخرجات بما يتجاوز ما هو ضروري لتلبية الطلب، ولكنه يتطلب ملحقًا تعاقديًا. يجب ألا تقوم بمعالجة معلومات الصحة المحمية (PHI) أو أي بيانات أخرى منظمة حتى يتم توقيع الملحق وتأكيد تفعيله.
أطر الامتثال
- SOC 2 Type II الشهادة مملوكة لشركة Anthropic ومتاحة بموجب اتفاقية عدم إفشاء. تشمل مسؤوليتك إجراءات التوفير/إلغاء التوفير الموثقة، والاحتفاظ بالسجلات لأكثر من 90 يومًا، وتقييمًا حاليًا لمخاطر الموردين.
- HIPAA يتطلب الامتثال لـ ZDR بالإضافة إلى مراجعة بشرية إلزامية لجميع المخرجات التي تتضمن بيانات المرضى، إلى جانب سجل تدقيق كامل لكل تفاعل يتعلق بمعلومات الصحة المحمية (PHI).
- GDPR يتطلب الامتثال لـ إقامة البيانات (مناطق AWS في الاتحاد الأوروبي أو Vertex مع Private Service Connect)، وسير عمل الحذف الموثق عبر واجهة برمجة تطبيقات الامتثال (Compliance API)، وقواعد الرفض لحظر المحتوى الذي يحتوي على معلومات تعريف شخصية (PII).
تسجيل التدقيق وضوابط التكلفة
يجب عليك تصدير سجلات التدقيق إلى نظام SIEM الخاص بك بانتظام والاحتفاظ بها لمدة لا تقل عن 90 يومًا لـ SOC 2 أو لفترة أطول للصناعات المنظمة. ما يجب التقاطه يختلف حسب الواجهة:
- الويب يتطلب تسجيل أحداث بدء/انتهاء الجلسة، وتحميل الملفات، وبيانات تعريف المحادثة.
- سطح المكتب يتطلب تسجيل اتصالات خادم MCP، واستدعاءات الأدوات، ومكالمات الخدمات الخارجية.
- CLI يتطلب تسجيل استدعاءات الأدوات، وأنماط الوصول إلى الملفات، وتنفيذ أوامر shell، والإجراءات المرفوضة.
عندما يتدفق ترافيك Claude عبر TrueFoundry AI Gateway، يتم تتبع كل طلب مع إسناد كامل للمستخدم عبر طلبات LLM و MCP على حد سواء. توفر لوحة تحكم موحدة مقاييس في الوقت الفعلي، ويتم تصدير جميع التتبعات إلى Grafana أو Datadog أو Splunk عبر أوبن تليمتري (OpenTelemetry).
يمكن للمسؤولين أيضًا تكوين إعدادات OpenTelemetry بشكل أصلي في ملف الإعدادات المدارة لتصدير القياس عن بعد مباشرة من Claude Code.
فيما يتعلق بالتكاليف، حدد حدودًا شهرية صارمة للإنفاق لكل مستخدم ولكل فريق في لوحة تحكم المسؤول. بدون هذه الحدود القصوى، يمكن لخط أنابيب غير مهيأ بشكل صحيح أن يستنزف ميزانيتك بين عشية وضحاها. تعد التفاصيل لكل مستخدم ولكل نموذج مفيدة لتقارير استرداد التكاليف، واكتشاف الشذوذ، و قابلية مراقبة تكاليف الذكاء الاصطناعي.

الخلاصة
تأمين Claude ليس قرارًا واحدًا بل مجموعة قرارات متراكمة — الهوية، توجيه النموذج، العزل (sandboxing)، حوكمة MCP، الاحتفاظ بالبيانات، تسجيل التدقيق، وضوابط التكلفة — يطبق كل منها بشكل مختلف حسب الواجهة. يحتاج إصدار الويب إلى ضوابط منع فقدان البيانات (DLP) والتقاط النطاق. يحتاج تطبيق سطح المكتب إلى مراجعة أداة بأداة. يحتاج Claude Code إلى ملف managed-settings.json مؤمّن يتم نشره عبر MDM مع تمكين العزل الأصلي.
القاسم المشترك بين الثلاثة هو أنه يجب عليك توجيه حركة المرور ووصول MCP عبر بوابة مركزية تتحكم فيها. نقطة نهاية واحدة، مجموعة سياسات واحدة، ومسار تدقيق واحد. بوابة TrueFoundry للذكاء الاصطناعي توفر هذه الطبقة لكل من حركة مرور LLM وحوكمة خادم MCP، مع التحكم في الوصول المدمج، وتحديد المعدل، والحواجز الوقائية، وقابلية المراقبة.
ابدأ بتسجيل الدخول الموحد (SSO) والتقاط النطاق اليوم، ثم قم بفرض الإعدادات المدارة عبر أسطولك، ووجه كل شيء عبر بوابة تتحكم فيها. نقاط الضعف الأمنية (CVEs) حقيقية، ويزداد التعرض للخطر مع كل مطور يفتح Claude Code.

TrueFoundry AI Gateway delivers ~3–4 ms latency, handles 350+ RPS on 1 vCPU, scales horizontally with ease, and is production-ready, while LiteLLM suffers from high latency, struggles beyond moderate RPS, lacks built-in scaling, and is best for light or prototype workloads.


Recent Blogs
Frequently asked questions
هل Claude Code متوافق مع SOC 2؟
تحافظ Anthropic على امتثال SOC 2 من النوع الثاني لواجهة برمجة تطبيقات Claude وعروضها للمؤسسات. ومع ذلك، فإن امتثال SOC 2 للنشر الذي يستخدم Claude Code يعتمد أيضًا على كيفية قيام المشغل بتكوين بنيته التحتية الخاصة به، وممارسات معالجة البيانات، والتسجيل. عادةً ما تضيف المؤسسات ضوابط الامتثال الخاصة بها فوق الأساس الذي توفره Anthropic.
هل يمكنك جعل كلود متوافقًا مع HIPAA؟
يمكن نشر كلود بطريقة متوافقة مع HIPAA عندما تلبي البنية التحتية المحيطة الضمانات المطلوبة. تقدم أنثروبيك اتفاقيات شركاء الأعمال (BAAs) للعملاء من الشركات المؤهلين. يجب على المؤسسات التأكد من أن معلومات PHI (المعلومات الصحية المحمية) لا يتم تضمينها عن غير قصد في المطالبات أو تخزينها دون ضوابط مناسبة.
هل يمكنك استخدام كلود لأغراض تجارية؟
نعم، كلود متاح للاستخدام التجاري عبر واجهة برمجة تطبيقات Anthropic. يمكن للشركات دمج كلود في منتجاتها وخدماتها بموجب سياسات استخدام Anthropic. يتطلب الاستخدام التجاري الموافقة على شروط خدمة Anthropic، وقد تتطلب بعض حالات الاستخدام مثل المجالات عالية المخاطر مراجعة إضافية.
هل كلود حاصل على شهادة ISO 27001؟
تسعى أنثروبيك للحصول على شهادات أمنية رائدة لبنيتها التحتية، وواجهة برمجة تطبيقات كلود للمؤسسات مدعومة بضوابط أمنية قوية. على المؤسسات التي تفكر في التوافق مع معيار ISO 27001 أن تتحقق من حالة الشهادة الحالية مباشرةً مع أنثروبيك، حيث يمكن أن يتغير نطاق الشهادة ومواعيد التجديد.
هل يشكل تثبيت كود كلود خطرًا أمنيًا؟
ليس كود كلود في جوهره خطرًا أمنيًا، لكن طبيعته التي تمنحه القدرة على التصرف تعني أنه يمكنه تنفيذ التعليمات البرمجية وتعديل الملفات وإجراء طلبات الشبكة، وكل ذلك ينطوي على مخاطر إذا لم يتم تحديد نطاقه بشكل صحيح. يُعد تشغيل كود كلود في بيئات معزولة، وتقييد الوصول إلى نظام الملفات، والحفاظ على مطالبات الأذونات ممارسات أساسية لتقليل التعرض للمخاطر.
هل يسمح كلود بالوصول عبر واجهة برمجة التطبيقات؟
نعم، توفر أنثروبيك واجهة برمجة تطبيقات (API) REST موثقة بالكامل يمكن للمطورين والشركات استخدامها للوصول إلى كلود برمجيًا. تدعم واجهة برمجة التطبيقات إنشاء النصوص، والرؤية، واستخدام الأدوات، والمحادثات متعددة الأدوار، وهي متاحة عبر مستويات متعددة من نماذج كلود.
ما هو امتثال API كلود؟
يشير امتثال API كلود إلى مجموعة معايير الأمان والشهادات وسياسات الاستخدام التي تحكم كيفية تشغيل API كلود والوصول إليها. ويشمل ذلك SOC 2 Type II، وسياسات الاحتفاظ بالبيانات، وضوابط تصفية المحتوى، وإرشادات الاستخدام المقبول من Anthropic، وكلها تحدد معًا وضع الامتثال لأي نظام مبني على كلود.
كيف يمكن الوصول إلى امتثال واجهة برمجة تطبيقات Claude مجانًا؟
تنشر Anthropic وثائق الامتثال الخاصة بها، ونظرة عامة على الأمان، وسياسات الاستخدام علنًا على موقعها الإلكتروني وبوابة الثقة الخاصة بها. يمكن للمطورين مراجعة هذه المواد مجانًا. يتطلب الوصول إلى تقارير الامتثال الرسمية (مثل تقارير تدقيق SOC 2) عادةً توقيع اتفاقية عدم إفشاء (NDA) وطلبها من خلال عملية مبيعات الشركات الخاصة بـ Anthropic.
هل امتثال واجهة برمجة تطبيقات Claude (API) عديم الحالة؟
واجهة برمجة تطبيقات Claude (API) عديمة الحالة بطبيعتها؛ فكل طلب API مستقل ولا يحتفظ بحالة الجلسة بين الاستدعاءات. يجب تمرير سجل المحادثة بشكل صريح في كل طلب. تبسط هذه البنية عديمة الحالة الامتثال عن طريق الحد من استمرارية بيانات المستخدم، على الرغم من أن المشغلين يظلون مسؤولين عن كيفية تخزينهم ومعالجتهم لمحتوى المحادثة على بنيتهم التحتية الخاصة.












.webp)
.webp)


.png)


.png)

.png)














