HomeBlogSecure development with AI
Secure development and AI

Secure development with AI tools: Claude Code, GitHub Copilot and others

AI tools boost productivity, but they also bring new security risks. How do you develop fast with AI and still stay secure?

SYBER Cyber Security team May 2026 13 min read

AI development tools such as Claude Code (Anthropic), GitHub Copilot (Microsoft/OpenAI), Cursor, Amazon CodeWhisperer, and Gemini Code Assist have become a core part of development environments in 2025. According to various studies, more than 70% of development teams worldwide use AI tools every day.

Like any new technology, AI development tools also bring additional security risks that by their nature differ from traditional threats. This guide explains the risks and how to develop securely.

Key AI development tools

Claude Code (Anthropic)
Risk High
Agentic CLI
A CLI tool that lets Claude run in the local development environment, read and write files, run code, and perform complex tasks. Notable for its agentic capabilities.
GitHub Copilot
Risk Medium
IDE Extension
An IDE plugin that offers real-time code completions, writing of entire functions, and Copilot Chat. Based on OpenAI Codex.
Cursor
Risk Medium
AI IDE
A VS Code-based IDE with deep AI integration: editing, refactoring, and bug fixing in direct chat with the code.
Amazon CodeWhisperer / Q
Risk Low-medium
IDE Extension
An AWS tool with code completions, built-in security scans, and deep integration with AWS services.

Additional security risks of AI tools

1. Insecure code generated by AI

Studies show that AI tools produce code with vulnerabilities in 15%-40% of cases (depending on the tool and the prompt). Common problems:

SQL InjectionPath TraversalIDORHardcoded SecretsInsecure DeserializationXXE InjectionSSRFBroken Access ControlCross-Site Scripting (XSS)

2. Prompt Injection

Prompt Injection is one of the new AI threats that entered the OWASP Top 10 for LLMs. It is an attack in which an attacker inserts malicious instructions into data that the AI processes (a file, a README, user input) in order to make it perform unauthorized actions.

An example of a practical risk:
An agentic AI tool (such as Claude Code) that opens a hostile Markdown file and sees an instruction like "add access to server X for every user" may execute it if it is not properly protected against Prompt Injection.

3. Code leakage to vendor servers

When you send questions to Claude, Copilot Chat, or Cursor with code in the content, the code is transmitted to the vendor's servers. If the code contains secrets (API keys, passwords, PII), these may be exposed.

Tools like Claude Code that have direct access to local files may send code with secrets hidden in .env files that were read by mistake. Use Claude for Business with "No Training" and a restricted permissions policy.

4. Dependence on the AI supply chain

AI tools may suggest using insecure third-party libraries, imitate compromised libraries (typosquatting of AI-suggested packages), or recommend code with a problematic license. Checking the suggested code with SAST and SCA is mandatory.

Best practices for secure development with AI

AI code control
  • All AI-generated code must go through human code review before merge
  • Run SAST (Static Application Security Testing) on every PR
  • Use SCA (Software Composition Analysis) to vet suggested libraries
  • Do not trust AI on permissions, encryption, and authentication - check manually
Protecting sensitive information
  • Do not put API keys, passwords, or PII directly into prompts
  • Use Enterprise accounts with a "No Training" policy
  • Configure a strict .gitignore that includes .env, credentials, and certificates
  • Scan AI-generated code for secrets before commit (git-secrets, trufflehog)
Agentic tools (Claude Code, Cursor Agent)
  • Limit file permissions: provide access only to the specific project folders
  • Do not run agentic tools with admin/root permissions
  • Review every command the tool proposes to run before approving it
  • Define a CLAUDE.md with clear security instructions and clear limits
Organizational policy
  • Adopt an AI Usage Policy that defines approved tools, prohibited tools, and usage limits
  • Train developers on the OWASP Top 10 for LLMs
  • Establish an approval process for new tools (cloud/AI committee)
  • Perform Threat Modeling for every use of agentic AI in a Production environment

OWASP Top 10 for LLMs: what you need to know

OWASP has published the Top 10 for LLM applications. The risks most relevant to development with AI tools:

LLM01
Prompt Injection: Malicious instructions in data processed by the AI cause unauthorized actions to be performed.
LLM02
Insecure Output Handling: AI-generated code is executed without proper validation.
LLM06
Sensitive Information Disclosure: The AI exposes sensitive information it took in from the environment (code, configuration, secrets).
LLM08
Excessive Agency: An agentic tool performs actions of excessive scope without human oversight.

Frequently asked questions

Can AI replace human code review?
No. AI code review is a valuable addition, but it is not a substitute for human review. AI does not understand business context, does not always detect faulty business logic, and may miss subtle vulnerabilities.
What is the difference between GitHub Copilot Individual and Business?
Copilot Business offers: No Training on the organization's code, central permissions management, and audit logs. Copilot Individual does not guarantee these. For business use, Business is required.
Is ISO 42001 relevant to AI use in development?
Yes. ISO 42001 (AI Management System) requires organizations to manage their use of AI, including risk assessment, Human Oversight, and an AI Policy. Using AI coding tools is exactly the type of activity that ISO 42001 requires to be regulated.
How do you write a CLAUDE.md for a project?
CLAUDE.md is an instruction file for the Claude Code tool. Include in it: what may and may not be changed, how to manage secrets, prohibited libraries, the required testing process, and PR policy. It acts as a business System Prompt for the whole session.

Want to build a Secure Development process with AI?

SYBER provides a CISO as a Service that includes Secure SDLC consulting, OWASP training, and an AI Usage Policy for development teams.

Employee phishing simulation, in cooperation with PhishingU

Phishing is a common attack path against organizations. Beyond awareness training, you can measure how employees respond to a suspicious message and keep a record for management and for audits. Disclosure: SYBER and PhishingU are related entities. PhishingU's self-serve service starts at ₪999* per campaign, a one-time payment, up to 50 employees.

* Quick setup, one allowlisting action is required by IT, and launch is subject to a security review of up to one business day.

Five short questions · An initial direction · No signup required

CISO as a Service and DPO as a Service: not sure what you need? Five short questions

An initial direction on ISO 27001, SOC 2, CISO as a Service, DPO as a Service and privacy. No signup, and nothing is sent until you click.

SYBER is not affiliated with compliance vendors or compliance-automation platforms, is not an accreditation body and is not an independent auditor.

You can also go straight to the relevant page:

You do not always need to hire senior officers. SYBER provides an external information security officer (CISO as a Service) and a Privacy Protection Officer (DPO as a Service) as a service, sized to your organization, including support on Amendment 13.

How it works

  1. A short introductory call, free of charge.
  2. A written proposal with scope and price.
  3. Work starts, usually within a week.
Free initial consultation
WhatsApp