AI for Engineering Teams / Shadow AI in Engineering Teams: Risks, Costs, and How to Regain Control

Shadow AI in Engineering Teams: Risks, Costs, and How to Regain Control

Engineering leaders have a lot on their plates, but there's one thing that typically falls through the cracks: shadow AI. That’s when your developers use tools nobody signed off on, such as personal ChatGPT accounts, unauthorized Copilot subscriptions, or third-party LLM API calls hardcoded straight into production code. All of this happens outside your visibility or approval. Most VP-level engineering leaders already sense it's happening on their teams. What they don't know is how much.

In this article, we'll walk through the three core risks every engineering leader should know about and three key steps to mitigate them.

What is shadow AI in engineering teams?

Shadow AI shows up as unauthorized API keys embedded in microservices, personal Copilot subscriptions running on company laptops, and autonomous agents making calls to external models your security team has never reviewed. Usually, it's a feature of organizational drift, spreading gradually across many people and teams, rather than one rogue developer doing something they shouldn't.

The pattern tends to accelerate as AI moves from an assistant to an autonomous system. It often starts small, for example, a developer pasting code snippets into a chat interface to get a quick answer. Over time, that same developer writes a wrapper that calls GPT-4 directly from a continuous integration (CI) pipeline. Then they share the wrapper with a teammate. Three months later, a dozen teams are running workloads from an account that no one in finance or security even knows exists. That's shadow AI at enterprise scale.

It also shows up in subtler ways. Developers bring in third-party AI code review tools that process your codebase, AI-powered Slack plugins with access to engineering channels, or browser extensions that quietly send clipboard content to external servers. Add it all up, and the footprint is usually larger than most leaders initially assume.

What are the risks of shadow AI in engineering?

Shadow AI creates three distinct risk categories for engineering organizations. There's risk and legal exposure from unapproved data processing, cost unpredictability from ungoverned AI spend, and code quality and IP risk from unreviewed AI-generated code reaching production. Each requires a different response.

Compliance and legal exposure

When proprietary code, internal architecture documentation, or customer data gets processed by an external LLM, you have a data governance problem. Most free-tier and consumer-facing AI products have historically used user inputs to improve their models, though policies vary by provider and tier. Engineers working on regulated systems (fintech, healthcare, defense) who paste production data into an unapproved tool can trigger violations of GDPR, HIPAA, or SOC 2. Legal teams are still catching up on what exposure actually looks like, which means the risk falls to engineering leaders.

Cost unpredictability

Consider three engineering squads, each running autonomous agents with external APIs, and each paying through personal accounts or departmental credit cards. The finance team has no visibility into any of it. AI credits get consumed without attribution, without budgets, and without anyone tracking whether the spend is actually producing value. It's surprisingly easy for a quick experiment to cost thousands of dollars before anyone realizes it needs to be reported or escalated.

Code quality and IP risk

AI-generated code that bypasses your review process carries hidden risk. Security vulnerabilities in LLM-generated code are well-documented: The model doesn't know your security posture, your dependency requirements, or your internal APIs. Beyond quality, there are open questions about the IP ownership of code generated by models trained on open-source corpora. If a developer uses an unapproved tool to generate a core module, the IP status of that code is legitimately unclear.

How to detect shadow AI in your engineering organization

The most effective approach to detecting shadow AI involves combining several signals rather than relying on one. Repository scanning, network egress analysis, developer surveys, and billing anomaly review each surface a different part of the problem. Put together, they tell you what's running, where it came from, and what need drove people to use it in the first place.

The diagram below shows how these signals come together:

Start with your codebase. Search for API key patterns matching major LLM providers, things like sk- prefixes for OpenAI keys, Anthropic's key formats, or Google AI Studio tokens. Tools like TruffleHog or Gitleaks can inspect your Git history and surface secrets that were committed and later removed. You'll likely find things that surprise you.

Review your egress traffic logs for connections to known AI provider endpoints, such as api.openai.com, api.anthropic.com, generativelanguage.googleapis.com, and api.cohere.ai. This helps you catch API usage that leaves no trace in code, like browser-based tools, direct API calls from developer machines, or third-party integrations. Your network team can typically run this analysis in a few hours over a rolling 30-day window.

Run anonymized developer surveys, framing them as an inventory exercise, not an investigation. Ask developers which AI tools they're using, which tasks they use them for, and what gaps they're trying to fill. Anonymous responses yield more honest data and signal that the conversation is open, helping reduce the adversarial dynamic that tends to push tools further underground.

Pull billing data across all corporate accounts and cards your team might use. Unexpected charges from OpenAI, Anthropic, or AWS Bedrock that aren't tied to an approved project are a signal worth chasing down. Cross-reference this with your finance team quarterly, if not monthly.

Detection tells you where you stand, but it doesn't fix what's driving the behavior in the first place.

How to regain control of shadow AI

Blanket restrictions usually make things worse. Engineers who can't access AI tools they find genuinely useful find workarounds, which end up being harder to detect than the original behavior. The effective path is structured enablement: Start with an honest inventory of what's in use, fast-track approval for the tools developers already rely on, create a tiered data policy, and build in visibility from day one so ungoverned spend can't accumulate again.

Build an honest inventory first

Before you write a single rule, document what's actually in use. Combine your detection findings with survey results to build a realistic picture of the AI tooling used across your teams. You might find that 80% of shadow AI usage clusters around a handful of tools, which makes the path to an approved list much cleaner.

Fast-track the tools developers already use

The fastest way to kill adoption of an AI policy is to hand engineers a list of tools they didn't ask for and tell them everything else is banned. Instead, take the most-used tools from your inventory, run them through a security and compliance review, and fast-track approval for the ones that pass. Involve a few respected engineers in the review process, because they'll advocate for the outcome.

Apply a tiered data policy

A tool that processes only public documentation carries a different risk profile from one that processes production code or customer data. A tiered policy is easier for engineers to apply than a binary approved/not-approved list.

Taking the first step

Shadow AI isn't going away on its own, and treating it as an occasional cleanup task rather than an ongoing practice is how most organizations end up back at square one within a year. Detection, policy, and adoption all matter, but none of them stick without visibility that persists.

That's where JetBrains Central, part of JetBrains AI for Teams and Organizations, comes in. It gives engineering leaders centralized governance of AI tool usage across teams, including analytics, access management, model and agent policy controls, and cost attribution. Once spend and usage are tied to real accounts and real teams, it becomes much harder for shadow AI to quietly pile up again.

Learn more about JetBrains AI for Teams and Organizations.

FAQ

What is shadow AI in engineering teams?

Shadow AI refers to developers’ use of AI tools, services, or API integrations without organizational approval or visibility. This includes personal subscriptions to tools like ChatGPT or GitHub Copilot used on company code, third-party LLM API calls embedded directly in production services, and autonomous AI agents running outside approved infrastructure. The defining characteristic is the absence of oversight, not malicious intent.

Is shadow AI always a problem, or is some of it acceptable?

Exposure determines risk, not the tool itself. A developer using an AI code assistant on internal documentation carries a different risk profile than one using the same tool on customers' personally identifiable information (PII). The goal is to understand what's happening well enough to assess risk accurately, and to route high-risk usage through approved channels. Most shadow AI starts as someone solving a real productivity problem. Addressing that underlying need removes most of the incentive to work around official channels.

What data is most at risk when developers use shadow AI tools?

Production code, customer PII, and internal architecture documentation carry the highest risk when processed by unapproved external LLMs. Free-tier and consumer AI products have historically used inputs to improve their models. That means any sensitive data pasted into an unapproved tool may leave your control permanently. Regulated industries like fintech, healthcare, or defense-adjacent sectors face the sharpest exposure, since a single incident can trigger GDPR, HIPAA, or SOC 2 findings.

How do I find out which AI tools developers are using without permission?

The following four methods work well in combination. First, scan your repositories for API key patterns tied to major LLM providers. Second, review network egress logs for traffic to known AI endpoints. Third, run an anonymous developer survey framed as an inventory exercise rather than an audit. Fourth, pull billing data for unexpected charges from AI providers. Starting with the survey often produces the most actionable data fastest. It also tells you why developers chose the tools they did, and that context is essential for building a policy that actually works.

How do I create a policy for AI tool usage without alienating my engineering team?

Involve engineers from the start, from technology leaders to junior developers, regardless of title. Frame the policy as enabling faster access to better tools. Use your usage inventory to anchor it in reality rather than hypothetical risk, and make the approved list generous enough to cover legitimate use cases. Establish a fast-track review path for new tools, and revisit the policy every quarter as the tooling changes. Engineers will comply with policies they helped shape and can see the logic of.

How quickly can shadow AI spending become a significant budget problem?

Shadow AI describes tooling that was never sanctioned by the organization in the first place. An approved tool used incorrectly (for example, feeding customer PII into a coding assistant that's only approved for internal documentation) is a different problem: policy compliance rather than shadow usage. Both carry risk, but they call for different responses. Shadow AI requires detection and inventory, while misuse of approved tools requires clearer policy guardrails and usage monitoring.

JetBrains AI Solutions

Optimize your workflow. With AI built for you.

Junie

The AI coding agent with deep IDE integration that plans before it writes, then codes and tests while you stay in flow.

JetBrains AI in IDEs

Set of AI-powered capabilities built into JetBrains IDEs for software developers. It is not a standalone product or service, but an IDE-native experience composed of AI features, LLMs, agents, and integrations.

Air

Agentic Development Environment for engineering teams building products with AI.

AI for Teams and Organizations

An open system for agentic software development. Govern AI access across your engineering org, manage agents and models, and keep costs under control.

JetBrains Context

A repository intelligence layer for coding agents. It builds a semantic index of your codebase so agents retrieve what they need instead of exploring it file by file.

Central CLI

One CLI for every terminal agent. Claude Code, Codex, Gemini, and others plug into JetBrains AI and behave exactly as they do standalone. Access is granted centrally and instantly, with models, limits, and usage analytics governed in one place.