IBM’s 2025 Cost of a Data Breach Report found that 1 in 5 organizations reported a breach linked to shadow AI, showing how it’s becoming one of the fastest-growing vulnerabilities in application security.
When developers paste proprietary code into personal Claude accounts or use it to debug production issues, they’re creating security risks that traditional controls can’t detect.

The term “shadow AI” describes the use of personal AI tools or platforms that haven’t got any IT or security team approval.
Employees who use unauthorized tools, such as ChatGPT or other personal AI coding assistants for work tasks, can introduce serious risks. These include sensitive data leaks to public models, regulatory noncompliance with frameworks like GDPR and HIPAA, and an expanded attack surface.
Seeing as shadow AI operates outside organizational oversight, there’s no way to audit what data flows through it or how outputs get used.
The rise of shadow AI has a straightforward reason. Developers are under constant pressure to deliver faster, and free AI tools offer immediate productivity gains. A quick paste into ChatGPT to generate documentation feels harmless, but the security implications can be huge.
We’ve discussed the meaning of shadow AI, so what is shadow IT? It’s more about the unauthorized software, hardware, or cloud services that employees use without approval. Shadow AI is a subset of this problem, but it introduces additional risks that traditional shadow IT controls do not completely address.
With traditional shadow IT, the primary concern is unauthorized systems that manage or store organizational data. However, with shadow AI, the concern is also how AI systems may store, process, or learn from the data.
Engineering teams are particularly susceptible to shadow AI because of the productivity benefits when coding. The most usual entry points include:
Code debugging: Pasting proprietary source code into public AI chatbots to troubleshoot errors or understand unfamiliar codebases.
Documentation generation: Using AI to draft internal documents that could contain sensitive architectural details or business logic.
Infrastructure scripting: Generating Infrastructure as Code templates could reveal cloud configurations.
Code review shortcuts: Relying on personal AI accounts to explain, refactor, or review code instead of approved enterprise tools.
Many of these activities happen in browser tabs on developer workstations that leave no trace in traditional security monitoring systems.
We know about the more common scenarios in which shadow AI shows up, such as using a free AI coding assistant tied to a personal account, but there are other ways that security teams may not immediately recognize.
Developers sometimes install AI-based browser extensions for code completion that send data to external servers.
QA teams may also use public AI tools to generate test data from production database schemas, accidentally exposing sensitive information about internal systems.
DevOps engineers might paste Terraform configurations or Kubernetes manifests into AI chatbots for troubleshooting, revealing infrastructure details that could help attackers.
AI tools are now so easy to access that many organizations have not yet caught up with how to govern their use. Traditional software requires installation, and that can be blocked at the endpoint, but many AI tools run entirely in the browser. A developer can access Gemini or Claude in seconds without setting off any security alerts.
R\&D and software teams are also exposed here because they manage sensitive intellectual property and are quick to use tools that speed up development. Without insight into tool usage, security teams can’t accurately understand their exposure.
If developers paste proprietary code into public AI tools, that code could be stored by the provider. Some services also use inputs to improve their models, so any source code could influence responses given to other users, including competitors. Some providers say they don’t train on inputs, but the data still passes through external systems outside organizational control.
Aside from code, developers could share customer data, API keys, database schemas, credentials, or business logic in prompts. This kind of sensitive information is then stored outside approved systems, with no clear record of where it went or how it’s used. All it takes is a prompt containing production database credentials to expose an entire infrastructure.
Research shows that AI-assisted code leaks secrets at double the GitHub-wide baseline rate.
Agentic AI is when AI systems act on behalf of users and autonomously carry out tasks. Some third-party integrations and AI browser extensions can also act without human oversight. They could access code repositories, read clipboard contents, or even move data outside the organization while appearing to offer helpful functionality.
Shadow AI can make it harder to complete audits for GDPR, HIPAA, SOC 2, and PCI DSS. When regulators ask how sensitive data is managed, organizations may not be able to account for data shared through unauthorized AI tools. In many cases, there’s no record of what was shared or how it was used.
It’s difficult to track which AI tools are used, who is using them, or what data flows through them. Incident response also gets more complicated because if a breach occurs, investigators have no way to determine whether shadow AI played a role.
Prompt injection is the top LLM vulnerability according to OWASP. It happens when malicious input changes how an AI system behaves. When developers build AI features using tools that haven’t been approved, they may not fully understand the risks involved.
Attackers can create inputs that reveal hidden instructions or bypass security controls, which becomes more risky when AI systems interact with sensitive data or services.
The solution isn’t to ban AI tools, because companies that have tried to do this often find that employees continue using them anyway. In a recent study, 63% of employees said it is acceptable to use AI without IT approval when no approved alternative exists.
Developers who rely on these tools for productivity will usually find ways around restrictions, using personal devices, mobile hotspots, or other workarounds.
The result is that AI usage becomes harder to see and control. Years of shadow IT have already shown that blocking tools without offering secure alternatives often creates more risk, not less.
When creating a policy, it should outline which AI tools teams can use, what information should never be shared with AI, and how non-compliance will be managed. It should be practical in approach and provide developers with guidance on using AI safely.
If developers have access to approved AI tools that meet their needs, they won’t look for workarounds. Enterprise versions of popular AI assistants often include data protection features, audit logging, and legal guarantees about how information is used.
When developers build features that incorporate AI, run a threat modeling session to find potential security issues. Automated threat modeling tools with predefined risk templates for AI make this easier and help catch these vulnerabilities, along with other traditional security issues.
It’s important for developers to understand the risks of misusing AI tools, so security training for teams is vital. Not just reading about the risks, but practical exercises that cover such issues as secure prompting, data security, and code review for AI-generated outputs.
Also, just-in-time training that’s delivered when developers are working with code and a security issue is identified, reinforces secure practices.
Data loss prevention (DLP) tools can detect and block sensitive data from being pasted into AI services. It’s also a good idea to use network controls to restrict access to unapproved AI endpoints and to create a simple process for teams to request new AI tools for security review.
Shadow AI can’t be solved with only writing policies or banning certain tools. LLMs and other AI assistants that currently exist are too accessible, and developers who want to use them will find a way. What works is giving teams the skills to use AI safely and catching risks early, before they make it into production.
That starts with giving developers guidance and practical training on risks such as insecure AI-generated code, prompt injection, hardcoded secrets, and the exposure of sensitive data through prompts.
Hands-on labs help teams find these issues in real development environments rather than learning about them in theory. SecureFlag helps organizations build those skills through hands-on secure coding training focused on AI-assisted development and LLM and agentic AI security risks.
ThreatCanvas, an automated threat modeling solution, helps teams identify AI-related risks earlier and give developers better security context as they build.
When developers understand the risks and know how to act on them, shadow AI stops being an invisible threat.
Book a demo to see SecureFlag in action.
Shadow AI is when employees use AI tools without organizational approval. Rogue AI is different. It usually refers to AI systems that behave unpredictably, maliciously, or outside their intended purpose. While the two are different, both can create security and governance challenges.
AI coding assistants can become shadow AI when employees use personal accounts or versions that aren’t approved instead of authorized ones. It also depends on how the assistants are managed and on the data protection measures in place.
The term “shadow AI” isn’t specifically named in frameworks such as GDPR, HIPAA, and PCI DSS, but they do want organizations to prove strong data governance controls. Shadow AI can easily compromise this, as personal or sensitive data used by assistants creates compliance risks.
Certain metrics can be tracked, such as unauthorized tool detections, policy violations, adoption of approved AI tools, and feedback from regular developer surveys. Looking at these trends over time helps see whether governance efforts are working.