What is Claude Code Security?
Claude Code Security is the former name of Claude Security, a tool from Anthropic that scans entire codebases for security vulnerabilities and suggests patches for manual approval. Instead of only looking for known patterns, the AI traces how components interact and how data flows through the application. Each finding gets a severity and confidence rating, and no change is applied without human approval.
Anthropic introduced the tool in February 2026 as a research preview. Since 30 April 2026, it has been available as a public beta for Claude Enterprise customers. Anthropic announced access for further plans at the time; as of November 2026, Claude Security is still limited to Enterprise.
This is different from the security of Claude Code itself, the coding assistant. That is covered in the section “Is Claude Code secure?”.
As of November 2026 · reviewed by Martin Bastius, lawyer and CLO at heyData
How does Claude Security work technically?
You can open Claude Security from the sidebar in Claude.ai or at claude.ai/security. Admins enable it in the admin console; no API integration or custom agent is needed. According to Anthropic, scans now run on Claude Mythos 5.2, the model the company rates as its most capable for cybersecurity. Usage is billed as standard token consumption under the Enterprise plan, with no add-on. Your team applies the patches in Claude Code using the models your organisation already has there; Claude Security does not give you direct access to Mythos (Anthropic).
The tool builds on Anthropic’s own security research. Using Claude Opus 4.6, the team says it found more than 500 vulnerabilities in production open-source codebases, some of which had gone unnoticed for decades.
The core components
- Analysis of entire codebases: The AI reads the code like a security researcher, traces data flows across components and also detects logical vulnerabilities, such as flawed access checks.
- Multi-stage verification: Each finding is re-checked to reduce false positives and receives a severity and confidence rating.
- Patch suggestions with approval: For each finding, Claude generates instructions for a targeted patch. Your team reviews it and implements it in Claude Code on the web – nothing is applied without approval.
- Scheduled scans and traceability: Scans can be limited to specific directories or branches and scheduled regularly. Dismissed findings are documented with a reason, and results can be exported as CSV or Markdown or sent to tools such as Slack or Jira via webhooks.
Is Claude Code secure?
Claude Code is as secure as your settings. In manual mode it starts with read-only permissions and asks for approval before running commands that can change your system. Additional layers such as the sandbox are yours to switch on. Anthropic describes the basics in its official security documentation.
Permissions and write access
Claude Code only writes to the folder you started it in and its subfolders. Read-only commands such as “ls” or “git status” run without a prompt; everything else waits for your approval, either once or permanently via an allow rule. Run “/permissions” to see which rules currently apply.
Sandbox
Without the sandbox, a command you have approved can write anywhere your user account has access. With “/sandbox”, Claude Code runs Bash commands with file system and network isolation, which limits them at operating system level.
Prompt injection and MCP servers
Against prompt injection, Claude Code asks for approval before commands it cannot fully analyse, among other safeguards. Anthropic itself states that no system is immune to every attack. For MCP servers, Anthropic reviews connectors for its directory but does not security-audit them. Only connect your own servers or servers from providers you trust. What a successful attack means for data protection and liability is explained in our article on prompt injection, data protection and liability.
Settings for teams
Companies can enforce rules centrally through managed settings. Usage can be monitored via OpenTelemetry. For your vendor assessment, Anthropic provides its SOC 2 Type 2 report and ISO 27001 certificate, among other documents, in its Trust Center.
Why security is becoming critical for AI code assistants in your company
The professionalisation of AI usage reflects real challenges your team faces every day. What began as an experimental tool now processes protected business logic and in some cases personal data.
Professionalisation and pressure to perform
Your team uses AI assistants for code that goes live with customers tomorrow. At the same time, your compliance and legal departments are asking legitimate questions about liability and traceability. Pure functionality (“Write me this function”) is no longer enough; you need processes that document how AI-generated code is reviewed and approved.
Growing risk awareness
The deeper you integrate AI, the clearer the risks become:
- Quality defects: AI models also learn from flawed or outdated code. Without review, insecure patterns can end up in your software.
- Data protection leaks: Developers could accidentally enter real customer data or credentials into prompts to reproduce errors. This data then leaves your company.
- Licensing risks: Generated code snippets may resemble copyrighted code. Check origin and licence compliance before adopting code.
The legal perspective: focus on the GDPR
As soon as you use Claude Code or Claude Security in your company, the rules of the GDPR apply. Technical security features support you, but they do not release you from your legal obligations.
Data minimisation and purpose limitation
Article 5 of the GDPR is your constant companion. Make sure the AI assistant only accesses the data necessary for the development purpose. Real customer data, production databases or test data containing personal data do not belong in repositories you share for analysis. You can use permissions and project settings to restrict Claude Code’s access to certain directories.
Third-country transfer and prompt privacy
Anthropic is a US company. Your code is transmitted to Anthropic for analysis.
- Data processing agreement: Sign a data processing agreement with Anthropic and check the legal basis for the third-country transfer, such as the EU-US Data Privacy Framework or standard contractual clauses. Make sure your data is not used to train the models in the commercial plans.
- Check the DPIA: Whether you need a data protection impact assessment under Art. 35 GDPR depends on whether, and which, personal data sits in the connected repositories. heyData reviews your data processing agreement with Anthropic as part of its data protection support.
- Clarify data retention: For Mythos models, Anthropic applies 30-day data retention for safety monitoring by default. As Claude Security scans with Mythos 5.2, check with Anthropic before your first scan whether this period also applies to your repositories, and record it in your record of processing activities.
Regulatory classification under the EU AI Act
The EU AI Act entered into force in 2024 and applies in stages. As the person responsible for technology, you need to know how Claude Security fits into this framework.
AI in software development as a risk category
The language model behind Claude Code is a general-purpose AI model. The obligations for it fall on Anthropic as the provider. Your company, as a user, is a so-called deployer. A code assistant is not a high-risk system in itself. However, if you use it to develop software that is itself a high-risk system (e.g. in medical technology), you must meet the strict requirements for quality, documentation and risk management for that product – regardless of whether AI helped write the code.
- AI literacy: Since February 2025, companies must ensure that their employees have sufficient competence in using the AI systems they deploy (Art. 4 AI Act). This also applies to development teams working with Claude Code.
- Human oversight: For high-risk systems, the AI Act requires effective human oversight. Beyond that, it is good practice anyway: Claude Security supports it because no patch is applied without approval.
Security challenges: from prompt injection to liability
The autonomy of tools such as Claude Code creates new attack surfaces. The technical solution is only as strong as the weakest link in your process chain.
The phenomenon of prompt injection
An attacker could try to influence the code assistant via comments in external libraries or manipulated documentation. If Claude analyses such a file, a hidden command could cause the AI to suggest unwanted actions or build a backdoor into your code. Anthropic uses safeguards against prompt injection, but the creative nature of such attacks always requires a vigilant human eye.
Who is liable for the code?
This is the most important question for your management. As things stand, liability for software errors – whether AI-generated or not – lies with your company. Anthropic accepts no liability for the correctness of the code.
Recommended action: Establish clear review processes. No AI-generated code should flow into the main branch without the okay of a developer. Use Claude’s security features as an additional filter, but never as the final authority.
Practical significance for your company: how to proceed
For you as a technical decision-maker, introducing Claude Security involves several operational steps. Simply switching on the feature is not enough.
Evaluation and tool selection
Systematically compare Claude Security with other solutions such as GitHub Copilot Autofix, GitLab Duo or classic SAST tools. Pay particular attention to:
- Transparency: How traceable are findings and approvals? Can you prove who accepted or rejected which patch?
- Integration: Can the tool be integrated into your existing security infrastructure (e.g. CI/CD pipelines, SonarQube)?
- Customisability: Can you define your own security policies specific to your industry?
Integration into your governance processes
The introduction requires adapting your internal guidelines:
- AI policy: Create a binding AI policy that specifies which data (e.g. no real passwords or customer data) may be transmitted to the assistant and which repositories may be connected.
- Training: Train your team to interpret Claude Security’s results correctly and not to adopt patch suggestions “blindly”.
For a wider view of setting up AI agents in line with the GDPR, from the legal basis to monitoring, see our guide on making AI agents GDPR-compliant.
Conclusion
Claude Security finds vulnerabilities that rule-based scanners miss and leaves every patch to your team’s approval. For now the tool is a beta and only available to Enterprise customers. Your company is liable for the code that goes live. You need the data processing agreement with Anthropic before you connect the first repository.
With heyData’s EU AI Act Packet, you classify AI tools such as Claude Code by role and risk and train your team with the AI literacy module under Art. 4 AI Act.
Take the first step: Book a free demo now
FAQ
Can Claude Security really find all vulnerabilities?
Can Claude Security really find all vulnerabilities?
No. According to Anthropic, Claude Security also finds logic flaws that rule-based scanners miss and rates each finding for severity and confidence. False positives and missed issues are still possible, so manual reviews and conventional scanners remain necessary.
Is my private code data used for training?
Is my private code data used for training?
In the commercial plans (Team, Enterprise, API), Anthropic does not use your data to train its models according to its terms. Check the current contract terms and sign a data processing agreement before connecting sensitive repositories.
What's the biggest advantage over classic SAST tools?
What's the biggest advantage over classic SAST tools?
Classic SAST tools look for known patterns. Claude Security, by contrast, analyses the context in the code – data flows and how components interact – and can therefore also find logical vulnerabilities. However, it complements rather than replaces established security scanners and manual reviews.
Who can use Claude Security?
Who can use Claude Security?
Claude Security has been available as a public beta for Claude Enterprise customers since 30 April 2026; admins enable it in the admin console. Other plans do not have access as of November 2026. Usage is billed as standard token consumption under the Enterprise plan.
Is Claude Code secure?
Is Claude Code secure?
In manual mode, Claude Code starts with read-only permissions and asks for approval before commands that can change your system. With “/sandbox”, you can additionally isolate commands at file system and network level. You decide what Claude Code may do through its permissions; responsibility for approved commands and code stays with you.








