implementing-data-loss-prevention-with-microsoft-purview

mukul975/Anthropic-Cybersecurity-Skills

Реализует политики предотвращения утечек данных с помощью Microsoft Purview.

Звёзды36 321
Авторmukul975
Установок30

Установка

SKILL.md

Implementing Data Loss Prevention with Microsoft Purview

When to Use

  • Deploying DLP policies to prevent sensitive data (PII, PHI, PCI, intellectual property) from leaving the organization through email, cloud storage, chat, or endpoint file operations
  • Configuring sensitivity labels with encryption, content marking, and auto-labeling to classify documents and emails by confidentiality level
  • Creating custom sensitive information types with regex patterns to detect organization-specific data formats (employee IDs, project codes, internal account numbers)
  • Deploying endpoint DLP to control copy-to-USB, print, upload-to-cloud, and copy-to-clipboard actions for labeled or sensitive content on managed devices
  • Investigating DLP incidents through Activity Explorer to analyze policy match events, user activity patterns, and false positive rates for policy tuning

Do not use without appropriate Microsoft 365 E5, E5 Compliance, or E5 Information Protection licensing. Do not deploy DLP policies directly to production enforcement mode without a simulation period. Do not configure endpoint DLP without coordinating with the endpoint management team responsible for device onboarding.

Prerequisites

  • Microsoft 365 E5 or E5 Compliance / E5 Information Protection add-on license assigned to target users
  • Global Administrator, Compliance Administrator, or Compliance Data Administrator role in the Microsoft Purview portal
  • Exchange Online PowerShell module (ExchangeOnlineManagement v3.x) and Security & Compliance PowerShell for policy automation
  • Devices onboarded to Microsoft Purview endpoint DLP through Microsoft Intune or Configuration Manager (Windows 10/11 21H2+, macOS 12+)
  • Data classification scan completed or content explorer populated to understand existing sensitive data distribution
  • Stakeholder agreement on sensitivity label taxonomy (classification levels, encryption requirements, scope)

Workflow

Step 1: Design the Sensitivity Label Taxonomy

Define the classification hierarchy that maps to organizational data handling requirements:

  • Establish label tiers: Create a label hierarchy reflecting data sensitivity levels. A standard enterprise taxonomy includes:<!-- -->
    Public           -> No protection, external sharing allowed
    General          -> No encryption, internal watermark "GENERAL"
    Confidential     -> Encryption (all employees), header/footer marking
      ├─ Confidential - All Employees
      ├─ Confidential - Finance
      └─ Confidential - HR
    Highly Confidential -> Encryption (specific users/groups), watermark, no forwarding
      ├─ Highly Confidential - Project X
      └─ Highly Confidential - Board Only
    
  • Define protection settings per label: For each label, configure encryption scope (all employees, specific groups, or custom permissions), content marking (headers, footers, watermarks), and auto-labeling conditions:<!-- -->
    # Connect to Security & Compliance PowerShell
    Connect-IPPSSession -UserPrincipalName admin@contoso.com
    
    # Create parent label
    New-Label -DisplayName "Confidential" `
      -Name "Confidential" `
      -Tooltip "Business data that could cause damage if disclosed to unauthorized parties" `
      -Comment "Apply to internal business documents, financial reports, and customer data"
    
    # Create sub-label with encryption
    New-Label -DisplayName "Confidential - Finance" `
      -Name "Confidential-Finance" `
      -ParentId (Get-Label -Identity "Confidential").Guid `
      -Tooltip "Financial data restricted to Finance department" `
      -EncryptionEnabled $true `
      -EncryptionProtectionType "Template" `
      -EncryptionRightsDefinitions "finance-group@contoso.com:VIEW,VIEWRIGHTSDATA,DOCEDIT,EDIT,PRINT,EXTRACT,OBJMODEL" `
      -ContentType "File, Email"
    
  • Configure content marking: Apply visual indicators that persist with the document:<!-- -->
    Set-Label -Identity "Confidential-Finance" `
      -HeaderEnabled $true `
      -HeaderText "CONFIDENTIAL - FINANCE" `
      -HeaderFontSize 10 `
      -HeaderFontColor "#FF0000" `
      -HeaderAlignment "Center" `
      -FooterEnabled $true `
      -FooterText "This document contains confidential financial information" `
      -WatermarkEnabled $true `
      -WatermarkText "CONFIDENTIAL" `
      -WatermarkFontSize 36
    
  • Publish labels via label policy: Labels must be published to users through a label policy that defines which users see the labels and whether a default label or mandatory labeling is enforced:<!-- -->
    New-LabelPolicy -Name "Corporate Label Policy" `
      -Labels "Public","General","Confidential","Confidential-Finance",
              "Confidential-HR","HighlyConfidential","HighlyConfidential-ProjectX" `
      -ExchangeLocation "All" `
      -ModernGroupLocation "All" `
      -Comment "Standard corporate sensitivity labels"
    
    # Require justification for label downgrade
    Set-LabelPolicy -Identity "Corporate Label Policy" `
      -AdvancedSettings @{RequireDowngradeJustification="True";
                          DefaultLabelId="General"}
    

Step 2: Create DLP Policies with Sensitive Information Types

Configure DLP policies that detect and protect sensitive content across Microsoft 365 workloads:

  • Create a DLP policy using built-in sensitive information types: Microsoft Purview includes 300+ built-in SITs for credit card numbers, Social Security numbers, passport numbers, and health records. Create a policy targeting financial data:<!-- -->
    # Create DLP policy scoped to Exchange, SharePoint, OneDrive
    New-DlpCompliancePolicy -Name "Financial Data Protection" `
      -ExchangeLocation "All" `
      -SharePointLocation "All" `
      -OneDriveLocation "All" `
      -TeamsLocation "All" `
      -Mode "TestWithNotifications" `
      -Comment "Protects credit card numbers, bank account numbers, and financial identifiers"
    
    # Create rule for high-volume credit card detection
    New-DlpComplianceRule -Name "Block Bulk Credit Card Sharing" `
      -Policy "Financial Data Protection" `
      -ContentContainsSensitiveInformation @{
        Name = "Credit Card Number";
        MinCount = 5;
        MinConfidence = 85
      } `
      -BlockAccess $true `
      -BlockAccessScope "All" `
      -NotifyUser "SiteAdmin","LastModifier" `
      -NotifyUserType "NotSet" `
      -GenerateIncidentReport "SiteAdmin" `
      -IncidentReportContent "All" `
      -ReportSeverityLevel "High"
    
    # Create rule for low-volume with user override
    New-DlpComplianceRule -Name "Warn on Credit Card Sharing" `
      -Policy "Financial Data Protection" `
      -ContentContainsSensitiveInformation @{
        Name = "Credit Card Number";
        MinCount = 1;
        MaxCount = 4;
        MinConfidence = 75
      } `
      -NotifyUser "LastModifier" `
      -NotifyUserType "NotSet" `
      -GenerateAlert "Low" `
      -NotifyOverride "WithJustification"
    
  • Create custom sensitive information types with regex: Define organization-specific patterns for data that built-in SITs do not cover:<!-- -->
    # Create custom SIT for employee ID format (EMP-XXXXXX)
    $rulePackXml = @"
    <RulePackage xmlns="http://schemas.microsoft.com/office/2011/mce">
      <RulePack id="$(New-Guid)">
        <Version major="1" minor="0" build="0" revision="0"/>
        <Publisher id="$(New-Guid)"/>
      </RulePack>
      <Rules>
        <Entity id="$(New-Guid)" patternsProximity="300"
                recommendedConfidence="85">
          <Pattern confidenceLevel="85">
            <IdMatch idRef="EmployeeId_Regex"/>
          </Pattern>
          <Pattern confidenceLevel="95">
            <IdMatch idRef="EmployeeId_Regex"/>
            <Match idRef="EmployeeId_Keyword"/>
          </Pattern>
        </Entity>
        <Regex id="EmployeeId_Regex">EMP-[0-9]{6}</Regex>
        <Keyword id="EmployeeId_Keyword">
          <Group matchStyle="word">
            <Term>employee</Term>
            <Term>employee id</Term>
            <Term>emp id</Term>
            <Term>staff number</Term>
          </Group>
        </Keyword>
        <LocalizedStrings>
          <Resource idRef="EmployeeId_Regex">
            <Name default="true" langcode="en-us">Contoso Employee ID</Name>
            <Description default="true" langcode="en-us">
              Detects Contoso employee IDs in format EMP-XXXXXX
            </Description>
          </Resource>
        </LocalizedStrings>
      </Rules>
    </RulePackage>
    "@
    
    # Save and import the rule package
    $rulePackXml | Out-File -FilePath "EmployeeID_SIT.xml" -Encoding utf8
    New-DlpSensitiveInformationTypeRulePackage -FileData (
      [System.IO.File]::ReadAllBytes("EmployeeID_SIT.xml")
    )
    
  • Use sensitivity labels as DLP conditions: Create policies that apply different restrictions based on the label applied to the content:<!-- -->
    New-DlpCompliancePolicy -Name "Highly Confidential Sharing Control" `
      -ExchangeLocation "All" `
      -SharePointLocation "All" `
      -OneDriveLocation "All" `
      -Mode "Enable"
    
    New-DlpComplianceRule -Name "Block External Sharing of HC Content" `
      -Policy "Highly Confidential Sharing Control" `
      -ContentContainsSensitiveInformation $null `
      -ContentPropertyContainsWords "MSIP_Label_$(
        (Get-Label -Identity 'HighlyConfidential').Guid
      )_Enabled=True" `
      -BlockAccess $true `
      -BlockAccessScope "NotInOrganization" `
      -NotifyUser "LastModifier" `
      -GenerateIncidentReport "SiteAdmin" `
      -ReportSeverityLevel "High"
    

Step 3: Deploy Endpoint DLP Rules

Extend DLP protection to managed Windows and macOS endpoints to control file operations:

  • Verify device onboarding: Confirm devices are onboarded to Microsoft Purview endpoint DLP through Microsoft Intune or the local onboarding script:<!-- -->
    # Check onboarding status via Intune Graph API
    # GET https://graph.microsoft.com/beta/deviceManagement/managedDevices
    # Filter for complianceState and dlpOnboardingStatus
    
    # Local verification on Windows endpoint
    # Check registry key:
    # HKLM\SOFTWARE\Microsoft\Windows Advanced Threat Protection\Status
    # OnboardingState should be 1
    
  • Configure endpoint DLP settings: Define global settings that control which applications and file types endpoint DLP monitors:<!-- -->
    # Configure unallowed apps (browsers, cloud sync clients)
    Set-PolicyConfig -EndpointDlpGlobalSettings `
      -UnallowedApps @(
        @{Name="Chrome"; Executable="chrome.exe"},
        @{Name="Firefox"; Executable="firefox.exe"},
        @{Name="PersonalDropbox"; Executable="Dropbox.exe"}
      )
    
    # Configure unallowed Bluetooth apps
    Set-PolicyConfig -EndpointDlpGlobalSettings `
      -UnallowedBluetoothApps @(
        @{Name="BluetoothFileTransfer"; Executable="fsquirt.exe"}
      )
    
    # Configure network share groups
    Set-PolicyConfig -EndpointDlpGlobalSettings `
      -NetworkShareGroups @(
        @{
          Name = "Authorized Shares";
          NetworkPaths = @("\\server01\approved$", "\\server02\secure$")
        }
      )
    
    # Configure sensitive service domains (allowed cloud destinations)
    Set-PolicyConfig -EndpointDlpGlobalSettings `
      -SensitiveServiceDomains @(
        @{
          Name = "Approved Cloud Storage";
          Domains = @("sharepoint.com", "onedrive.com")
          MatchType = "Allow"
        },
        @{
          Name = "Blocked Cloud Storage";
          Domains = @("dropbox.com", "box.com", "drive.google.com")
          MatchType = "Block"
        }
      )
    
  • Create endpoint-specific DLP rules: Define rules that control copy-to-USB, print, upload, and clipboard operations for sensitive content:<!-- -->
    # Add endpoint location to existing policy
    Set-DlpCompliancePolicy -Identity "Financial Data Protection" `
      -EndpointDlpLocation "All"
    
    # Create endpoint-specific rule
    New-DlpComplianceRule -Name "Block USB Copy of Financial Data" `
      -Policy "Financial Data Protection" `
      -ContentContainsSensitiveInformation @{
        Name = "Credit Card Number";
        MinCount = 1;
        MinConfidence = 85
      } `
      -EndpointDlpRestrictions @(
        @{Setting="CopyToRemovableMedia"; Value="Block"},
        @{Setting="CopyToNetworkShare"; Value="Audit"},
        @{Setting="CopyToClipboard"; Value="Block"},
        @{Setting="Print"; Value="Warn"},
        @{Setting="UploadToCloudService"; Value="Block"},
        @{Setting="UnallowedBluetoothApp"; Value="Block"}
      ) `
      -NotifyUser "LastModifier" `
      -GenerateIncidentReport "SiteAdmin"
    
  • Configure printer groups and USB device exceptions: Allow specific printers and approved USB devices while blocking unauthorized removable media:<!-- -->
    # Define authorized USB devices by vendor/product ID
    Set-PolicyConfig -EndpointDlpGlobalSettings `
      -RemovableMediaGroups @(
        @{
          Name = "Approved Encrypted USBs";
          Devices = @(
            @{VendorId="0781"; ProductId="5583"; SerialNumber="*"}  # SanDisk Extreme
          )
        }
      )
    
    # Define authorized printers
    Set-PolicyConfig -EndpointDlpGlobalSettings `
      -PrinterGroups @(
        @{
          Name = "Corporate Printers";
          Printers = @(
            @{PrinterName="*Corporate*"; PrinterType="Corporate"},
            @{PrinterName="PDF Printer"; PrinterType="Print to PDF"}
          )
        }
      )
    

Step 4: Configure Auto-Labeling Policies

Deploy service-side auto-labeling to automatically classify content at rest and in transit:

  • Create auto-labeling policy for email: Automatically label inbound and outbound emails containing sensitive information:<!-- -->
    New-AutoSensitivityLabelPolicy -Name "Auto-Label Financial Emails" `
      -ExchangeLocation "All" `
      -Mode "TestWithNotifications" `
      -Comment "Automatically labels emails containing financial data as Confidential-Finance"
    
    New-AutoSensitivityLabelRule -Name "Financial SIT Match" `
      -Policy "Auto-Label Financial Emails" `
      -SensitiveInformationType @{
        Name = "Credit Card Number";
        MinCount = 1;
        MinConfidence = 85
      },@{
        Name = "U.S. Bank Account Number";
        MinCount = 1;
        MinConfidence = 85
      } `
      -WorkloadDomain "Exchange" `
      -ApplySensitivityLabel "Confidential-Finance"
    
  • Create auto-labeling policy for SharePoint and OneDrive: Label existing files at rest that match sensitive information patterns:<!-- -->
    New-AutoSensitivityLabelPolicy -Name "Auto-Label SP Financial Docs" `
      -SharePointLocation "https://contoso.sharepoint.com/sites/finance" `
      -OneDriveLocation "All" `
      -Mode "TestWithNotifications"
    
    New-AutoSensitivityLabelRule -Name "Financial Docs SIT Match" `
      -Policy "Auto-Label SP Financial Docs" `
      -SensitiveInformationType @{
        Name = "Credit Card Number"; MinCount = 1; MinConfidence = 85
      } `
      -WorkloadDomain "SharePoint" `
      -ApplySensitivityLabel "Confidential-Finance"
    
  • Simulate before enforcing: Always run auto-labeling in simulation mode first. Review the simulation results in the Microsoft Purview portal under Information Protection > Auto-labeling. The simulation shows estimated matches per location and sample content matches for validation. Only switch to enforcement mode after confirming accuracy:<!-- -->
    # Check simulation results
    Get-AutoSensitivityLabelPolicy -Identity "Auto-Label Financial Emails" |
      Select-Object Name, Mode, WhenCreated, DistributionStatus
    
    # Switch to enforcement after validation
    Set-AutoSensitivityLabelPolicy -Identity "Auto-Label Financial Emails" `
      -Mode "Enable"
    

Step 5: Monitor with Activity Explorer and Manage DLP Alerts

Use Activity Explorer and the DLP alerts dashboard to monitor policy effectiveness and investigate incidents:

  • Access Activity Explorer: Navigate to Microsoft Purview portal > Data Classification > Activity Explorer. Filter by activity type "DLPRuleMatch" to see all DLP policy matches. Key columns include:<!-- -->
    • Activity timestamp and user principal name
    • Sensitive information type matched and confidence level
    • Policy and rule name that triggered
    • Action taken (Audit, Block, Warn with Override)
    • Location (Exchange, SharePoint, OneDrive, Endpoint)
    • File name and site URL
  • Analyze false positive rates: Export Activity Explorer data filtered by "Override" actions with justification text to identify rules that users frequently override. A high override rate (>20%) indicates the rule may be too aggressive or matching non-sensitive content:<!-- -->
    Activity Explorer filter:
      Activity type = DLPRuleMatch
      Action = Override
      Date range = Last 30 days
      Policy name = Financial Data Protection
    
    Export to CSV for analysis of override justifications and
    affected file types to refine SIT confidence thresholds.
    
  • Configure DLP alerts: Set up alert policies in Microsoft Purview > Data Loss Prevention > Alerts to receive notifications for high-severity matches:<!-- -->
    # DLP alerts are configured within the DLP rule itself
    # Adjust alert volume thresholds on high-traffic rules
    Set-DlpComplianceRule -Identity "Block Bulk Credit Card Sharing" `
      -GenerateAlert "High" `
      -AlertProperties @{
        AggregationType = "SimpleAggregation";
        Threshold = 1;
        TimeWindow = "00:05:00"
      }
    
  • Query DLP events via Microsoft Graph API: Programmatically retrieve DLP alerts and policy match details for integration with SIEM or custom dashboards:<!-- -->
    import requests
    
    # Authenticate with Microsoft Graph (client credentials flow)
    token_url = "https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token"
    token_response = requests.post(token_url, data={
        "client_id": client_id,
        "client_secret": client_secret,
        "scope": "https://graph.microsoft.com/.default",
        "grant_type": "client_credentials"
    })
    access_token = token_response.json()["access_token"]
    
    headers = {"Authorization": f"Bearer {access_token}"}
    
    # Retrieve DLP alerts
    alerts_url = "https://graph.microsoft.com/v1.0/security/alerts_v2"
    params = {
        "$filter": "serviceSource eq 'microsoftDataLossPrevention'",
        "$top": 50,
        "$orderby": "createdDateTime desc"
    }
    response = requests.get(alerts_url, headers=headers, params=params)
    alerts = response.json().get("value", [])
    
    for alert in alerts:
        print(f"Alert: {alert['title']}")
        print(f"  Severity: {alert['severity']}")
        print(f"  Status: {alert['status']}")
        print(f"  Created: {alert['createdDateTime']}")
        print(f"  User: {alert.get('userStates', [{}])[0].get('userPrincipalName', 'N/A')}")
    
  • Retrieve DLP policy match details for compliance reporting: Use the unified audit log to extract granular DLP match data including the matched content, SIT type, and confidence level:<!-- -->
    # Search unified audit log for DLP policy matches
    Search-UnifiedAuditLog -StartDate (Get-Date).AddDays(-7) `
      -EndDate (Get-Date) `
      -RecordType "DLP" `
      -ResultSize 1000 |
      Select-Object CreationDate, UserIds, Operations,
        @{N='PolicyName';E={($_.AuditData | ConvertFrom-Json).PolicyDetails.PolicyName}},
        @{N='RuleName';E={($_.AuditData | ConvertFrom-Json).PolicyDetails.Rules.RuleName}},
        @{N='SITMatched';E={($_.AuditData | ConvertFrom-Json).SensitiveInfoDetections.SensitiveType}} |
      Export-Csv -Path "DLP_Audit_Report.csv" -NoTypeInformation
    

Key Concepts

TermDefinition
Sensitivity LabelA classification tag applied to documents and emails that can enforce encryption, content marking (headers/footers/watermarks), and access restrictions. Labels persist with the content and travel with files when shared externally.
Sensitive Information Type (SIT)A pattern-based classifier that detects specific data patterns (credit card numbers, SSNs, custom regex) in content. Each SIT has a confidence level (low/medium/high) determined by primary pattern match plus corroborating evidence (keywords, proximity).
DLP PolicyA set of rules that detect sensitive information in Microsoft 365 locations (Exchange, SharePoint, OneDrive, Teams, Endpoints) and apply protective actions (audit, warn with override, block) based on the sensitivity of matched content and the sharing context.
Endpoint DLPExtension of DLP protection to managed Windows and macOS devices that monitors and controls file operations including copy-to-USB, print, upload-to-cloud, copy-to-clipboard, and access by unallowed applications for files containing sensitive information.
Activity ExplorerA monitoring dashboard in Microsoft Purview that displays a historical view (up to 30 days) of labeled content activities, DLP policy matches, and user interactions with classified data across all monitored locations.
Auto-LabelingService-side automatic classification that applies sensitivity labels to documents and emails matching specified SIT patterns without requiring user interaction. Runs in simulation mode first to preview matches before enforcement.
Content MarkingVisual indicators (headers, footers, watermarks) applied by sensitivity labels to documents and emails. Markings persist in the file and are visible when printed or shared, serving as a visual classification reminder.
DLP AlertA notification generated when a DLP rule match meets the configured severity threshold. Alerts appear in the Microsoft Purview DLP alerts dashboard and can be routed to Microsoft Sentinel or other SIEM platforms.

Tools & Systems

  • Microsoft Purview Compliance Portal: Web-based administration interface for creating and managing sensitivity labels, DLP policies, auto-labeling rules, and reviewing Activity Explorer data and DLP alerts.
  • Security & Compliance PowerShell: PowerShell module (Connect-IPPSSession) providing cmdlets for programmatic management of labels (New-Label, Set-Label), label policies (New-LabelPolicy), DLP policies (New-DlpCompliancePolicy, New-DlpComplianceRule), and sensitive information types.
  • Microsoft Graph Security API: REST API providing programmatic access to DLP alerts (security/alerts_v2), data classification insights, and protection scope evaluation for integrating Purview DLP with custom applications and SIEM platforms.
  • Microsoft Intune: Endpoint management platform used to onboard Windows and macOS devices to endpoint DLP, deploy configuration profiles, and manage device compliance states.
  • Microsoft Sentinel: Cloud-native SIEM that ingests DLP alerts and audit logs from Microsoft Purview via the Microsoft 365 Defender data connector for correlation with other security events and automated incident response.
  • Unified Audit Log: Microsoft 365 audit service recording all DLP policy match events (RecordType "DLP") with detailed match metadata for compliance reporting and forensic investigation.

Common Scenarios

Scenario: Protecting Financial Data Across a Multinational Organization

Context: A financial services company with 15,000 users across 12 countries needs to prevent credit card numbers, bank account details, and financial statements from being shared externally through email, Teams, SharePoint, and endpoint file operations. The company must comply with PCI-DSS and GDPR.

Approach:

  1. Design a four-tier sensitivity label taxonomy: Public, Internal, Confidential (with sub-labels for Finance, Legal, HR), and Highly Confidential. Publish labels to all users with "Internal" as the default label and mandatory labeling enabled for email.
  2. Create a DLP policy "PCI-DSS Financial Data Protection" scoped to all Exchange, SharePoint, OneDrive, Teams, and Endpoint locations. Configure two rules: a warning rule for 1-4 credit card numbers (notify user, allow override with justification) and a blocking rule for 5+ credit card numbers (block external sharing, generate incident report to compliance team).
  3. Разверните endpoint DLP с правилами, блокирующими копирование на USB и загрузку в неутверждённые облачные сервисы для любого файла, содержащего номера кредитных карт или помеченного "Confidential - Finance". Разрешите печать с журналированием аудита. Настройте исключения для утверждённых USB-устройств для зашифрованных корпоративных дисков по vendor/product ID.
  4. Создайте политики авторазметки, которые сканируют существующие финансовые сайты SharePoint и расположения OneDrive, автоматически применяя "Confidential - Finance" к документам, соответствующим SIT номеров кредитных карт или номеров банковских счетов с уровнем достоверности 85+.
  5. Запустите все политики в режиме симуляции на 14 дней. Просмотрите Activity Explorer на предмет частоты ложных срабатываний, шаблонов переопределений и расположений незащищённого конфиденциального содержимого. Настройте пороги достоверности SIT с 75 до 85 для SIT кредитных карт после выявления ложных срабатываний из-за частичных последовательностей номеров в заметках о встречах.
  6. Переключитесь в режим принудительного применения после одобрения заинтересованными сторонами. Настройте оповещения DLP с интеграцией Microsoft Sentinel для корреляции инцидентов в реальном времени. Запланируйте ежемесячные проверки Activity Explorer для отслеживания метрик эффективности политик.

Подводные камни:

  • Развёртывание политик DLP в режиме принудительного применения без симуляции, что вызывает массовую блокировку легитимных деловых коммуникаций и нарушение продуктивности пользователей
  • Использование низких порогов достоверности (65) для SIT, что порождает чрезмерные ложные срабатывания, подрывающие доверие пользователей и приводящие к усталости от переопределений политик
  • Не настройка исключений endpoint DLP для утверждённых зашифрованных USB-устройств, что блокирует легитимные передачи данных авторизованным внешним сторонам
  • Забывание опубликовать метки конфиденциальности через политику меток после создания, в результате чего метки невидимы для конечных пользователей в приложениях Office
  • Не согласование развёртывания авторазметки с владельцами библиотек документов, что приводит к неожиданным изменениям меток на существующем содержимом, изменяющим разрешения доступа

Сценарий: реализация пользовательского DLP для защиты интеллектуальной собственности

Контекст: фармацевтической компании необходимо предотвратить передачу исследовательских данных, идентифицируемых внутренними кодами проектов (формат: RX-YYYY-NNNN) и идентификаторами соединений, за пределы исследовательского отдела. Данные появляются в лабораторных отчётах, исследовательских презентациях и электронных письмах.

Подход:

  1. Создайте пользовательский тип конфиденциальной информации с помощью regex RX-20[2-3][0-9]-[0-9]{4} с подтверждающими ключевыми словами ("compound", "trial", "formulation", "assay", "efficacy") в пределах 300 символов. Установите основной шаблон с достоверностью 85% и шаблон с подтверждением ключевыми словами с достоверностью 95%.
  2. Создайте второй пользовательский SIT для идентификаторов соединений с помощью regex CPD-[A-Z]{3}-[0-9]{5} с ключевыми словами ("molecule", "synthesis", "pharmacokinetics") для сопоставления с более высокой достоверностью.
  3. Разверните политику DLP с областью действия на список рассылки Exchange исследовательского отдела, семейство сайтов SharePoint для исследований и учётные записи OneDrive исследовательской команды. Блокируйте внешний общий доступ, блокируйте пересылку неисследовательским внутренним пользователям и создавайте оповещения для сотрудника по соблюдению требований в исследованиях.
  4. Настройте endpoint DLP для предотвращения копирования на USB и захвата экрана документов, содержащих пользовательские SIT, на ноутбуках исследовательского отдела. Разрешите печать только на утверждённых защищённых принтерах в исследовательском учреждении.
  5. Создайте метку конфиденциальности "Highly Confidential - Research" с шифрованием, ограничивающим доступ группой безопасности Research. Настройте авторазметку для применения этой метки к документам, соответствующим любому из пользовательских SIT.
  6. Отслеживайте Activity Explorer еженедельно в течение 30 дней после развёртывания. Команда по соблюдению требований выявляет, что regex RX-YYYY-NNNN соответствует историческим кодам проектов в архивных документах. Уточните regex до RX-202[4-6]-[0-9]{4} чтобы нацеливаться только на активные коды проектов и сократить ложные срабатывания на 60%.

Подводные камни:

  • Использование позиционных якорей regex (^ и $) в пользовательских SIT, которые не работают должным образом при оценке regex в Microsoft Purview и вызывают сбои сопоставления шаблонов
  • Установка слишком низкого MinCount (1) для SIT кодов проектов без подтверждения ключевыми словами, что соответствует изолированным экземплярам в общей деловой переписке, случайно следующим тому же формату
  • Не тестирование пользовательского SIT на репрезентативном образце корпуса перед развёртыванием политики DLP, что приводит к пропуску граничных случаев в шаблоне regex
  • Слишком широкая область действия политики (вся организация) вместо нацеливания на исследовательский отдел, что вызывает оповещения о легитимных упоминаниях кодов проектов в резюме для руководства

Формат вывода

## DLP Policy Deployment Report

**Policy Name**: PCI-DSS Financial Data Protection
**Deployment Date**: 2026-03-19
**Current Mode**: Simulation (TestWithNotifications)
**Locations**: Exchange Online, SharePoint Online, OneDrive, Teams, Endpoints

---

### Simulation Results (14-Day Period)

**Total Policy Matches**: 4,287
**Unique Users Affected**: 892
**Unique Files/Messages**: 3,641

| Rule | Matches | Action | Override Rate |
|------|---------|--------|---------------|
| Block Bulk Credit Card Sharing (5+) | 47 | Block | N/A |
| Warn on Credit Card Sharing (1-4) | 4,240 | Warn | 12.3% |

### Sensitive Information Type Breakdown

| SIT | Matches | Avg Confidence | False Positive Est. |
|-----|---------|----------------|---------------------|
| Credit Card Number | 3,891 | 87% | 8.2% |
| U.S. Bank Account Number | 312 | 82% | 15.1% |
| ABA Routing Number | 84 | 79% | 22.6% |

### Recommendations

1. **Enable enforcement** for "Block Bulk Credit Card Sharing" rule -
   47 matches are all true positives involving bulk credit card data in
   spreadsheet attachments.

2. **Increase confidence threshold** for ABA Routing Number from 75 to 85 -
   22.6% false positive rate driven by 9-digit numbers in invoice references
   matching the routing number pattern.

3. **Add file type exception** for password-protected ZIP attachments that
   trigger false positives when the credit card SIT matches encrypted content
   metadata.

4. **Deploy endpoint DLP** in audit mode for 7 additional days before
   enabling block actions on USB copy and cloud upload.

---

### DLP Alert Summary (Last 7 Days)

| Severity | Count | Top Policy | Top User |
|----------|-------|------------|----------|
| High | 12 | Financial Data Protection | j.smith@contoso.com |
| Medium | 89 | IP Protection - Research | r.chen@contoso.com |
| Low | 234 | General PII Protection | (distributed) |

### Activity Explorer Insights

- Peak DLP match activity: Monday 09:00-11:00 UTC (weekly report distribution)
- Top matched location: Finance SharePoint site (62% of all matches)
- Most overridden rule: "Warn on Credit Card Sharing" (523 overrides, 12.3%)
- Override justification analysis: 78% "Business requirement", 15% "False positive",
  7% "Other"

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: implementing-data-loss-prevention-with-microsoft-purview](https://darkplay.ru/ai/skills/mukul975-anthropic-cybersecurity-skills-implementing-data-loss-prevention-with-microsoft-purview)

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

Code Architectaffaan-m · Проектирует архитектуру функций, анализируя существующие паттерны и соглашения кодовой…
225 587 ★
Database Migrationaffaan-m · Каркас команды workflow для database-migration в everything-claude-code.
225 587 ★
Database Revieweraffaan-m · Специалист PostgreSQL: оптимизация запросов, схемы, безопасность, Supabase.
225 587 ★
Healthcare Revieweraffaan-m · Проверяет медицинский код: клиническая безопасность, CDSS, PHI и целостность данных.
225 587 ★
Mle Revieweraffaan-m · Ревьюер ML-инженерии: данные, признаки, обучение, оценка, сервинг и мониторинг.
225 587 ★
Pytorch Build Resolveraffaan-m · Специалист по ошибкам PyTorch: формы тензоров, CUDA, градиенты и DataLoader.
225 587 ★
Security Revieweraffaan-m · Ищет и устраняет уязвимости: секреты, SSRF, инъекции, крипто и OWASP Top 10.
225 587 ★
Seo Specialistaffaan-m · SEO-специалист: технический аудит, оптимизация страниц, структурированные данные, Core…
225 587 ★
Spec Mineraffaan-m · Извлекает поведенческие спецификации из кода для OpenSpec в виде блоков Requirement и…
225 587 ★
ui-ux-pro-maxnextlevelbuilder · Профессиональные знания по UI/UX-дизайну для ИИ-ассистентов программирования. Включает…
151 010 ★

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8