Category: Dafa Protection

  • Protecting Sensitive Data in Microsoft 365 Copilot Web Searches with Microsoft Purview DLP

    Protecting Sensitive Data in Microsoft 365 Copilot Web Searches with Microsoft Purview DLP

    An enterprise security architecture perspective with practical implementation and validation

    1. Introduction

    As organizations accelerate the adoption of generative AI and Microsoft 365 Copilot, protecting sensitive enterprise data across AI interactions is becoming an increasingly important security requirement.

    Traditional Data Loss Prevention (DLP) controls primarily focus on protecting sensitive information across endpoints, email, collaboration platforms, cloud applications and external data transfers. However, generative AI introduces additional data exposure paths that organizations must consider within their enterprise security architecture.

    One such exposure path is external web grounding. When users interact with Microsoft 365 Copilot or Copilot Chat, their prompts may contain sensitive business information, customer records, financial data, personally identifiable information or other confidential information. Depending on the request, Copilot may use external web search to retrieve additional context and improve the relevance of its responses.

    How can organizations prevent sensitive information from being exposed through external web searches without completely restricting the use of generative AI?

    Blocking AI interactions entirely may reduce exposure risks, but it can also negatively impact business productivity. A more targeted approach is to identify sensitive information within AI prompts and restrict specific data exposure paths while allowing legitimate business activities to continue.

    In this article, we explore the architecture, configuration and practical validation of this capability using a Microsoft 365 E5 lab environment. This is a practical continuation of our earlier Copilot prompt protection lab: that scenario restricted prompt processing, whereas this one targets external web search while allowing permitted Copilot responses.

    2. Microsoft Ignite 2026 and the evolution of AI data protection

    In my recent article on Microsoft Purview at Ignite 2026, we explored the broader evolution of data protection across Microsoft 365 Copilot and AI agents. This includes protection beyond sensitivity labels and the expansion of controls across AI interactions.

    The selective web grounding restriction was announced in public preview in spring 2026, including at RSA 2026, and the worldwide general availability rollout completed in June 2026 (Microsoft 365 Roadmap ID 548671).

    This is therefore a publicly documented, generally available capability in supported Microsoft 365 Copilot experiences not an NDA feature or a new Ignite 2026 launch. Microsoft’s RSA 2026 announcement provides the original release context.

    3. Understanding the security risk

    Consider an employee in a financial services organization using Copilot to research PCI DSS security recommendations. While constructing the prompt, the employee inadvertently includes customer payment card information. The business intention may be entirely legitimate, but the inclusion of sensitive information introduces a potential exposure risk if the interaction involves external web grounding.

    Sensitive data exposure flow

    Examples of information organizations may want to protect include credit card numbers, national identification numbers, customer records, confidential business identifiers and organization specific sensitive information defined through custom classifiers.

    The objective is to ensure that appropriate restrictions are applied when sensitive information crosses a defined security boundary, without necessarily preventing employees from using this information within an approved AI environment.

    4. Microsoft Purview DLP: Restricting external web grounding

    Control capabilitySecurity objective
    Prevent processing sensitive promptsRestrict the AI interaction itself when configured sensitive information is detected.
    Restrict external web groundingRestrict external web search for matching prompts while allowing continued AI processing.
    Restrict processing of labeled contentPrevent selected sensitivity labeled files and emails from being processed.

    For this implementation, we focus on restricting external web grounding based on Sensitive Information Types (SITs). When matching sensitive information is detected, external web search is restricted for that prompt. Copilot can continue generating a response using permitted information where available.

    Logical security control flow

    Selective Microsoft Purview DLP web grounding flow, showing available web search for ordinary prompts and restricted grounding for sensitive prompts
    Figure 2. Logical architecture of selective web grounding restriction using Microsoft Purview DLP. Sensitive prompts can trigger web-search restriction while permitted Copilot processing continues. Audit events and alerts help verify enforcement.

    The design principle is to restrict the risky data path rather than unnecessarily block the entire AI interaction.

    5. Lab environment and policy configuration

    A custom Microsoft Purview DLP policy was configured in a dedicated Microsoft 365 E5 lab environment and scoped to a single test account. The objective was to restrict external web grounding when a prompt contains sensitive information, without unnecessarily blocking normal Copilot processing. Although the rule includes several credential related SITs, this article’s controlled validation centers on synthetic payment card data.

    ConfigurationValue
    EnvironmentMicrosoft 365 E5
    Policy typeCustom DLP policy
    Policy nameLAB – Copilot Sensitive Web Search Protection
    Rule nameLAB – Restrict Sensitive Copilot Web Searches
    Policy locationMicrosoft Copilot, Copilot Chat, and Copilot Cowork
    Detection conditionContent contains sensitive information types
    Sensitive information typesCredit Card Number and credential-related SITs (tests below focus on Credit Card Number)
    Enforcement actionPerforming Web Searches restriction
    Alert actionGenerate Alert
    Policy modeEnabled

    Implementation steps

    1. Navigate to the Microsoft Purview portal and open Data Loss Prevention, then Policies.

    2. Create a custom DLP policy and select Microsoft Copilot, Copilot Chat, and Copilot Cowork as the policy location.

    3. Configure a rule using the Credit Card Number sensitive information type.

    4. Under Prevent Copilot from processing content, select Performing Web Searches.

    5. Configure alert generation, enable the policy and allow sufficient time for policy propagation.

    The important configuration decision is selecting Performing Web Searches = Block while leaving Processing Prompts unselected. Both actions evaluate typed prompt input, but only the latter prevents Copilot from processing the matching prompt altogether. The policy was scoped to the lab user for controlled validation; administrators should verify their tenant’s licensing, policy applicability, and synchronization before broader deployment.

    6. Practical implementation and validation

    Six scenarios were executed to evaluate sensitive information detection, selective web grounding restriction, continued productivity, avoidance of unnecessary restrictions and audit visibility. All payment information used in the tests was synthetic.

    Test Case 1: Web search without sensitive information

    Objective: Establish baseline Copilot behaviour when the prompt does not contain sensitive information.

    Test input:

    Search the web for the latest PCI DSS security recommendations and provide official source links. Include the publication dates of the sources.

    Expected behaviour: Copilot should be able to use external web grounding and return relevant information with source citations.

    Observed result: Copilot returned PCI DSS recommendations, publication dates and external source citations. No organizational policy restriction notification was displayed.

    Figure 3. Baseline web search
    Figure 3. Baseline Copilot web search without sensitive information, including source citations.

    Result: The baseline demonstrates normal Copilot functionality when sensitive information is not present.

    Test Case 2: Web search containing sensitive credit card information

    Objective: Validate whether sensitive information triggers the configured web grounding restriction.

    Test input:

    Search the web for the latest PCI DSS security recommendations and provide official source links. Include the publication dates of the sources.
    Payment Type: Visa
    Credit Card Number: 4111 1111 1111 1111
    Cardholder: Test User
    This is synthetic test data.

    Expected behaviour: Microsoft Purview detects the Credit Card Number SIT and restricts external web grounding.

    Observed result: Copilot displayed the notification: Some relevant content wasn’t included due to your organization’s policies. Despite the restriction, Copilot continued generating PCI DSS recommendations.

    Figure 4. Sensitive web search restriction
    Figure 4. Sensitive prompt with a policy notification and continued Copilot response.

    Result: The policy notification and continued response generation are consistent with selective web grounding restriction.

    Test Case 3: Sensitive information processing without web search

    Objective: Validate whether Copilot can continue performing legitimate productivity tasks involving sensitive information.

    Test input:

    Convert the following synthetic payment information into a structured table. Do not search the web.
    Customer Name: Test User
    Payment Type: Visa
    Credit Card Number: 4111 1111 1111 1111
    Payment Amount: EUR 250

    Expected behaviour: Copilot should remain capable of processing the information without requiring external web grounding.

    Observed result: Copilot displayed the policy restriction notification and generated the requested table, including the full synthetic credit card number.

    Figure 5. Continued AI processing
    Figure 5. Copilot continues a permitted task involving synthetic sensitive data without requesting web search.

    Result: The configured DLP action does not prevent sensitive information from being processed or reproduced in the response. In this scenario, the policy notification should not be mistaken for proof that an external web search was attempted. Organizations that must prevent processing of sensitive prompts should evaluate the separate Processing Prompts restriction.

    Test Case 4: Web search containing masked credit card information

    Objective: Evaluate selective enforcement and whether masked payment information triggers an unnecessary restriction.

    Test input:

    Search the web for the latest PCI DSS security recommendations and provide official source links. Include the publication dates of the sources.
    Payment Type: Visa
    Credit Card Number: XXXX XXXX XXXX 1111
    Cardholder: Test User

    Expected behaviour: The masked number should not independently satisfy the full credit card number detection criteria.

    Observed result: Copilot recognized the masked information and displayed external source citations without a visible policy restriction notification.

    Figure 6. Masked credit card validation
    Figure 6. Masked-card test: web citations are present without a visible restriction notification.

    Result: This demonstrates the value of targeted detection for legitimate business workflows involving masked identifiers.

    Test Case 5: Live web search containing sensitive information

    Objective: Evaluate the restriction using time sensitive information that may not be available in model knowledge.

    Test input:

    Search the live web for Microsoft Security announcements published on December 3, 2026. Provide the exact publication dates and official source URLs.
    Customer Payment Details:
    Payment Type: Visa
    Credit Card Number: 4111 1111 1111 1111
    Cardholder: Test User
    This is synthetic test data.

    Expected behaviour: Web grounding is restricted while Copilot can still generate a response.

    Observed result: Copilot displayed the policy notification and indicated that it could not verify Microsoft Security announcements for the requested date because retrievable web results were unavailable. It continued to provide general information about potential sources.

    Figure 7. Restricted live web search
    Figure 7. Live search with sensitive information: policy notice and unavailable current web results.

    Result: The unavailable current information and visible policy notification provide evidence consistent with external web grounding restriction.

    Test Case 6: Live web search without sensitive information

    Objective: Perform a comparative control test using the same research request without payment information.

    Test input:

    Search the live web for Microsoft Security announcements published on December 3, 2026. Provide the exact publication dates and official source URLs.

    Expected behaviour: Copilot should be able to retrieve current information when web search is otherwise available.

    Observed result: Copilot returned Microsoft Security and Microsoft Entra announcements, publication dates and external source citations without a visible policy warning.

    Figure 8. Live web search without sensitive information
    Figure 8. Comparable live search without sensitive information: current web results available.

    Result: The comparison demonstrates a clear difference in observed behaviour based on the presence of sensitive information. The returned announcements were not independently verified as part of this test.

    7. Comparative analysis of web grounding behaviour

    The comparison between Test Cases 5 and 6 provides particularly useful evidence because the research request remained the same while the sensitive payment information was removed.

    Comparative web grounding results
    Figure 9. Comparison of web-grounding behaviour with and without sensitive prompt information.
    Without sensitive informationWith sensitive information
    External citations displayedCurrent results unavailable
    Current results returnedOrganization policy restriction displayed
    Response generatedResponse generated
    No visible policy warningBehaviour consistent with restricted web grounding

    From an enterprise security architecture perspective, this distinction demonstrates the value of selectively restricting an AI data retrieval capability rather than indiscriminately disabling the entire AI experience.

    8. Security monitoring and audit validation

    Functional testing alone is not sufficient when validating an enterprise security control. Security operations and compliance teams also need visibility into policy matches, enforcement actions and associated user activities.

    Activity Explorer displayed three DLP rule match events on December 3, 2026, at 18:36, 19:22 and 21:09 (UTC+01:00), with the CopilotExperiences enforcement plane.

    Figure 9. Activity Explorer DLP rule match events
    Figure 10. Purview Activity Explorer records Copilot DLP rule-match events.

    The latest event was examined to validate the configured policy, sensitive information type and recorded actions.

    Event attributeRecorded value
    ActivityDLP rule matched
    Event timeDecember 3, 2026, 21:09
    Content nameSearch the web for the latest PCI DSS security rec
    Sensitive information typeCredit Card Number
    PolicyLAB – Copilot Sensitive Web Search Protection
    RuleLAB – Restrict Sensitive Copilot Web Searches
    Policy modeEnable
    Rule actionsGenerateAlert, RestrictWebGrounding
    ConditionHasActivity
    Matched valueUploadText
    Enforcement planeCopilotExperiences
    Figure 10. Detailed DLP enforcement event
    Figure 11. Detailed Copilot DLP event recording the RestrictWebGrounding action.

    The most significant evidence is the recorded RestrictWebGrounding action in enforcement mode. Combined with the user facing policy notifications and comparative tests, this supports the intended enforcement behaviour.

    9. Final test results

    Test scenarioPolicy notificationCopilot responseFunctional result
    Normal web searchNoGeneratedPass
    Web search with credit cardYesGeneratedPass
    Sensitive processing without web searchYesGeneratedPass
    Masked credit cardNoGeneratedPass
    Live web search with credit cardYesCurrent results unavailablePass
    Live web search without credit cardNoCurrent results returnedPass
    DLP rule match and actionApplicableActivity recordedVerified

    All six functional scenarios produced the expected user facing behaviour. Activity Explorer additionally confirmed sensitive information detection and recorded the web grounding restriction action. Individual audit records were not correlated to every test interaction, and external search traffic was not independently inspected. This validation therefore demonstrates functional behaviour and recorded policy enforcement rather than network level proof of data transmission prevention for every request.

    10. Enterprise security architecture considerations

    Targeted enforcement rather than blanket restrictions

    Completely blocking Copilot interactions whenever sensitive information is detected may introduce unnecessary operational friction, particularly within regulated industries. Selective web grounding restriction provides an additional enforcement option that can be evaluated against business requirements and classification policies.

    Protection without relying exclusively on sensitivity labels

    This implementation uses the Credit Card Number SIT rather than a sensitivity label. Users may enter sensitive information directly into prompts without referencing a classified document. This control provides an additional layer of protection for sensitive prompt text.

    Understanding the control boundary

    Test Case 3 demonstrates that restricting external web grounding does not prevent Copilot from reproducing sensitive information within a response. This is an input-driven web-search restriction, not a general output-content filter. Organizations should distinguish between preventing external web exposure, blocking sensitive prompt processing, protecting files and emails used for grounding, and preventing onward sharing to unauthorized destinations. The SIT-based typed-prompt rule in this lab does not independently inspect files uploaded directly as prompt attachments. Complementary controls, including Endpoint DLP and other Copilot-specific DLP policies, must be evaluated separately.

    AI data protection control boundaries
    Figure 12. Scope and limitations of the Copilot web-grounding restriction.

    Alignment with Zero Trust principles

    Zero Trust principleApplication to Copilot DLP
    Verify explicitlyEvaluate sensitive information within the prompt.
    Use least privilege accessRestrict unnecessary external grounding for matching requests.
    Assume breachReduce potential data exposure paths and maintain security monitoring.

    This capability contributes to a more granular and context aware data protection model but does not establish a complete Zero Trust architecture.

    Security operations and compliance

    DLP activities can support investigation, policy tuning, security control assessments, identification of recurring sensitive data handling patterns and compliance evidence collection. For organizations subject to PCI DSS, GDPR or other requirements, the control may contribute to a broader data protection strategy but does not alone demonstrate regulatory compliance.

    11. Recommended enterprise implementation approach

    Phased enterprise implementation
    Figure 13. Recommended phased deployment: discover, simulate, validate and enforce.

    An effective implementation should begin by identifying critical data assets and understanding how employees interact with AI applications. Start with discovery and simulation, validate the intended SIT matches, identify legitimate business scenarios, and test with a small pilot group before expanding enforcement. Establish a governed exception process—with business ownership, justification, user scope and periodic reviews—because some external research may be legitimate. Where appropriate and supported, audit-only policies or narrowly scoped exclusions can reduce unnecessary user friction while maintaining risk visibility.

    The objective should not simply be closing an audit finding or enabling another security feature. The primary objective should be protecting critical enterprise data while enabling the business to continue operating effectively.

    12. Key findings and architectural conclusions

    Architectural findingSupporting evidence
    Sensitive information based enforcementCredit Card Number SIT detected in Activity Explorer
    Selective web grounding restrictionPolicy notifications and comparative live search tests
    Continued AI productivityStructured responses generated
    Reduced unnecessary restrictionsMasked card test displayed no restriction
    Security monitoringDLP rule match events recorded
    Enforcement visibilityRestrictWebGrounding action recorded
    Control limitationSensitive information remained visible in responses

    AI data protection does not necessarily require an organization to choose between security and productivity. A well designed architecture can apply different enforcement decisions based on the sensitivity of the information, the intended business activity and the data exposure path.

    13. Conclusion

    As generative AI becomes increasingly integrated into enterprise workflows, traditional data protection strategies must evolve to address the additional risks introduced by prompts, responses, grounding sources and agent interactions.

    Through this practical validation, we observed that prompts without sensitive information continued to return web citations, while prompts containing synthetic credit card information triggered organizational policy restrictions. Copilot continued processing information and generating responses, demonstrating the distinction between restricting an external data exposure path and preventing AI interactions entirely.

    The recorded RestrictWebGrounding action within Microsoft Purview Activity Explorer further supported the observed enforcement behaviour. From an enterprise security architecture perspective, this represents a valuable addition to a layered AI data protection strategy.

    Architecture conclusion
    Figure 14. Enterprise architecture takeaway: targeted protection without unnecessary productivity loss.

    Next in this Microsoft Purview AI security series, we will explore additional protection boundaries—including the distinction between prompt input, grounding content and generated responses—through practical demonstrations and verifiable enforcement evidence.

    References

    Microsoft Ignite 2026 Book of News

    Secure the data that fuels AI with Microsoft Purview

    Microsoft Purview innovations at RSA 2026

    Microsoft Purview DLP for Copilot

    Microsoft Copilot prompt defense in depth