Shadow AI is the use of generative AI applications, browser extensions, coding assistants, embedded SaaS features, or model APIs outside the organization’s approved governance path. The risk is not simply that an employee found an unsanctioned website. The organization may not know which data users upload, how the provider retains it, whether it trains on prompts, which accounts are connected, or whether generated output enters business decisions.
Within Security Engineering, shadow-AI management starts with discovery. Microsoft’s current guidance for preventing data leakage to shadow AI begins by identifying AI apps in use, the users interacting with them, and whether sensitive data is being sent. Defender for Cloud Apps and Purview can then support sanctioning, monitoring, blocking, and data controls.
The engineering objective is to make AI usage visible and reduce unsafe data flows without driving employees to increasingly hidden workarounds.
Discovery should precede blocking
Network, endpoint, proxy, secure web gateway, browser, CASB, SaaS-management, and DLP telemetry can identify AI apps and usage patterns.
Start by understanding which tools are popular, which teams use them, and what business problem they solve.
Blocking before discovery can create operational disruption and simply shift users to personal devices or less visible services.
Classify apps by risk and business value
Security and compliance posture, data-handling terms, training policies, SSO support, auditability, tenant controls, encryption, retention, subprocessors, model/provider, and administrative governance all matter.
Usage volume and business need matter too. An app with moderate technical risk but strong business value may justify a managed path, while an unknown consumer app handling sensitive source code may not.
Sanctioning should be an explicit decision, not the absence of a block.
Protect sensitive data even in sanctioned apps
Approval of an AI provider does not mean every employee may upload every class of data.
DLP controls can restrict sensitive labels, source code, regulated records, credentials, or other protected content while still allowing safe use.
The policy should distinguish the application from the data. “Approved app” and “approved data for this app” are separate decisions.
Browser and endpoint controls can enforce unsanctioned-app policy
Defender for Cloud Apps can mark apps sanctioned or unsanctioned and integrate blocking with endpoint/network controls depending on the deployment.
Other organizations may use secure web gateways, DNS filtering, proxy policy, browser management, or RBI.
Remote Browser Isolation can provide a middle path for risky web access when users need to view content but local execution or file transfer should be constrained.
OAuth-connected AI apps need separate review
Some AI tools request access to email, documents, calendars, source repositories, CRM, or cloud storage through OAuth.
This can expose far more data than a user manually pastes into a prompt.
Review requested permissions, publisher identity, token lifetime, admin consent, and whether the application can retain or process connected data after the user stops actively using it.
Approved alternatives are part of the control
Shadow use often grows because employees have a real need and the official path is too slow or too limited.
Provide sanctioned models, coding tools, browser assistants, or enterprise AI platforms that support the high-value use cases users already perform.
A secure alternative reduces policy friction more effectively than repeated warnings against an attractive productivity tool.
Education should be specific to AI data flows
Generic “do not share confidential data” training is easy to ignore. Give examples of what can go wrong: pasting customer records, uploading contracts, connecting a repository, using personal accounts, sharing credentials, or relying on generated legal/security advice.
Users should know where approved AI tools are and which data classifications they may use with them.
Training should evolve as the organization’s sanctioned toolset changes.
Shadow AI should feed the AI inventory
Once an unsanctioned tool is discovered and approved, it should enter the organization’s AI inventory with owner, use case, data classification, vendor evidence, controls, and review date.
If it is rejected, discovery systems should continue monitoring for attempted use.
This connects day-to-day security visibility with broader AI governance rather than keeping shadow AI as an isolated SOC problem.
Vendor changes can turn sanctioned AI into new risk
AI providers change models, terms, retention, training practices, subprocessors, plugins, and enterprise controls rapidly.
Sanctioned apps should therefore be reviewed periodically and when material vendor changes are announced.
The existing vendor and supply-chain risk article provides the wider third-party model.
Metrics should measure behavior, not only blocked domains
Useful metrics include discovered AI apps, active users, sensitive-data events, unsanctioned usage attempts, approved alternative adoption, OAuth grants, repeat policy offenders, and time from discovery to review.
A falling block count may mean users moved to approved tools—or that visibility got worse.
Metrics should therefore combine enforcement with discovery coverage and business adoption.
Shadow AI is controlled when usage becomes visible and intentional
The mature program can see which AI tools are used, classify them, protect data, block unsafe paths, offer safe alternatives, and bring approved use into the same inventory and governance process as centrally deployed AI.
The goal is not to eliminate employee experimentation. It is to stop unknown providers and unknown data flows from becoming invisible production dependencies.
Discovery coverage should include browser-based apps, desktop clients, mobile apps, IDE extensions, plugins, APIs, and AI features embedded inside otherwise approved SaaS. A network-only view can miss local applications or encrypted traffic patterns that endpoint or identity telemetry can reveal.
Personal accounts create a separate risk because enterprise controls may apply to the domain but not the user’s consumer account. Where business use is permitted, require enterprise tenants with contractual and administrative controls rather than allowing sensitive work through personal subscriptions.
Source-code and developer workflows deserve special policy. Coding assistants may receive proprietary code, secrets, infrastructure manifests, vulnerability information, or customer identifiers. Repository integration and IDE telemetry should be reviewed alongside ordinary browser use.
AI-generated output can also become a shadow dependency. Teams may paste generated scripts, legal text, architecture, or data transformations into production without recording which tool created them. Governance should focus on how output is validated and reviewed, not only on preventing prompts from leaving the organization.
Approved alternatives should be instrumented for adoption. If employees continue using unsanctioned apps after an enterprise tool is deployed, investigate whether the approved tool lacks required models, integrations, speed, language support, or accessibility. Security controls improve when product gaps are treated as engineering feedback.
Incident response should include shadow-AI scenarios such as sensitive data uploaded to a consumer service, OAuth consent to an unapproved app, or generated code introducing a vulnerability. Runbooks should identify vendor contact, account removal, token revocation, data-deletion requests, and internal notification paths.
Generative AI app catalogs change rapidly, so discovery classification should not depend only on a static block list. Policies should identify newly observed domains and applications, and security teams should have a workflow for reviewing tools that have not yet been scored.
Business-unit ownership helps prioritize review. If hundreds of developers use one new coding assistant, that deserves faster assessment than an obscure app used once. High-volume shadow use often signals an unmet platform requirement that can be addressed centrally.
Data-loss controls should account for copied output too. Users can move model-generated content back into internal systems, including hallucinated or malicious code. Secure use guidance should require normal review, testing, and source validation before AI output becomes production code or authoritative documentation.
AI browser extensions and meeting assistants can capture page content, audio, transcripts, and credentials with broader scope than users realize. Extension permissions and SaaS integrations should therefore be part of discovery and consent review, not only the primary AI website domain.
Shadow AI governance should align with incident and legal-hold processes. If a discovered service handled sensitive data, the organization may need to preserve evidence, revoke OAuth grants, request provider deletion, notify privacy/security teams, or investigate which records were exposed. Discovery should retain enough metadata to support that response.
Sanctioning decisions should have expiry or review dates. A tool approved today can change its model provider, enterprise controls, or training policy next quarter. Periodic reassessment prevents “approved once” from becoming indefinite trust.
AI usage data should be handled carefully because discovery logs can reveal employee interests, projects, and sensitive URLs. Access to shadow-AI telemetry should be limited to teams that need it for security, privacy, or governance.
Policy should also cover API keys purchased individually by developers. Web filtering can see browser apps but may miss direct SDK use from CI, scripts, or notebooks. Cloud billing, secrets stores, egress telemetry, and code scanning can help identify unsanctioned model APIs.
The mature program turns shadow AI into governed demand: discover it, understand why users need it, move legitimate use toward approved services, and retain enforcement for tools whose risk cannot be justified.
Shadow-AI governance should include a review path for new use cases on already sanctioned platforms. An approved enterprise model used for summarization may still require additional controls before it is connected to production databases, customer communications, or privileged tools. App approval and use-case approval are separate decisions.
Security teams should share discovery trends with platform/product owners. If unsanctioned usage clusters around one missing capability—better coding assistance, image generation, multilingual support, or document upload—that demand can guide the next approved service instead of creating an endless block-and-bypass cycle.