Join our Newsletter — 33% off our NHI Course

What is the difference between shadow AI and prompt-based leakage?

Shadow AI is the use of unsanctioned AI tools or browser extensions that security teams do not know about, while prompt-based leakage is the act of pasting sensitive data into an AI tool to get a response. Shadow AI describes the hidden channel. Prompt-based leakage describes the unsafe behavior inside that channel. Both can expose confidential data.

Shadow AI is the hidden channel, prompt leakage is the unsafe action

shadow ai is a visibility and governance problem: people use tools the organisation has not approved, inventoried, or monitored. Prompt-based leakage is a data-handling problem: someone places sensitive material into an AI system that may store, log, or expose it. The distinction matters because the first problem is discovery and control, while the second is user behaviour and information exposure.

A useful way to think about the difference is that shadow AI answers, “Where is the AI use happening?” while prompt leakage answers, “What did the user put into it?” The same hidden tool can create both risks, but they are not the same failure mode. You can have shadow AI without leakage if the tool is never fed sensitive data, and you can have prompt leakage in an approved tool if users paste confidential content into it.

That separation also affects incident handling. If the issue is shadow AI, the first question is whether the organisation can discover the tool, its data flows, and its access path. If the issue is prompt-based leakage, the first question is what data was shared, whether it was retained or used for training, and whether the prompt history, connected accounts, or downstream responses exposed it further. The response path is different even when the business impact ends up being similar.

Why the distinction matters for control design

Shadow AI is usually addressed with discovery, policy, and sanctioned alternatives. Prompt-based leakage is usually addressed with data handling rules, user coaching, prompt inspection or redaction, and controls that reduce the chance of pasting confidential material in the first place. If you treat both as one generic “AI risk,” you often miss the operational split between finding unknown tools and reducing unsafe use inside known tools.

This is why Shadow AI and AI Agent Discovery Guide is useful when the question is about identifying the hidden channel itself. It focuses on discovery through OAuth grants, API keys, cloud, endpoint, and network signals, which is the right lens when the organisation needs to inventory unsanctioned AI use before it can govern it.

For prompt leakage, the stronger lens is data loss prevention and user behaviour rather than inventory alone. A sanctioned AI tool can still become a leakage path if users paste source code, customer data, credentials, or regulated data into prompts. In practice, the control question is whether the organisation can prevent or reduce sensitive input, not simply whether the tool is approved.

Where both risks overlap in practice

The two risks often reinforce each other. Shadow AI increases the odds that users will turn to an unreviewed service with unknown retention, logging, or training settings, while prompt-based leakage increases the likelihood that whatever is inside the hidden channel becomes exposed. That combination can move a simple policy violation into a confidentiality incident, especially when users paste code, secrets, internal documents, or customer data into a tool outside corporate control.

Authorised tools are not automatically safe either. A permitted product can still be a prompt-leakage vector if the user shares more than the business need requires, or if the organisation has not defined what data classes are prohibited. The control boundary is therefore not “approved versus unapproved” alone, it is also “what data is allowed to enter the model context, and what happens to it after that.”

Generative AI Data Loss Prevention Guide is relevant here because it addresses prompt redaction, browser controls, AI tool tiers, and prompt logging. That is the practical control layer for reducing leakage even when users are already interacting with AI systems.

Risk and Threat Considerations

Shadow AI creates blind spots in governance, logging, and data handling, while prompt-based leakage creates direct exposure of confidential material through user input. The highest risk appears when the two are combined, because an unsanctioned tool can also have weak retention controls, opaque sharing behaviour, or connected accounts that widen the blast radius.

Failure mechanism: Users bypass approved AI channels, then paste sensitive data into a tool whose retention, training, sharing, or access settings the organisation does not control or understand.

Impact: Confidential information can be stored, reproduced, searched, exfiltrated, or reused outside intended boundaries, creating disclosure, legal, and business risk.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

CIS Controls v8 and NIST SP 800-53 Rev 5 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

Framework Control / Reference Relevance
CIS Controls v8 CIS-3 — Data Protection Shadow AI and prompt leakage both expose sensitive data through uncontrolled channels.
CIS-8 — Audit Log Management AI prompt and usage logs help detect unknown tools and investigate leakage events.
Recommendation — Classify and protect sensitive data before users can place it into AI tools. Collect and review logs that show AI tool access, prompts, and connected accounts.
NIST SP 800-53 Rev 5 AU-2 — Audit Events Logging AI use and prompts supports detection and later investigation of leakage.
AC-6 — Least Privilege Limits who can access AI tools and related data sources, reducing blast radius.
Recommendation — Define AI access and prompt events as auditable security events. Restrict AI tool and data access to the minimum required.
ISO/IEC 27001:2022 A.5.12 — Classification of information Prompt leakage depends on whether users know what data is prohibited in AI tools.
Recommendation — Label data clearly so users can avoid pasting restricted information into AI prompts.

Practitioner Guidance

What to prioritise: Treat discovery and data control as separate workstreams. First establish which AI tools are actually in use, then decide what data classes may enter them. If you only publish an approved-tools list, users will still route around it when the approved path is inconvenient.

What to verify: Confirm whether prompts, uploads, chat history, and connected integrations are retained, searchable, or used for training. If a tool can accept sensitive data, verify that the policy is enforceable in the user workflow, not only in documentation.

Practitioner takeaway: The real control objective is not just to ban shadow AI or warn against oversharing, it is to close the gap between where AI is used and what information users are allowed to place into it.