Named Entities and Document Fingerprinting

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② When every section has a ✓, tap Complete lesson.

0 of 9 read · keep scrolling

✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro

Named Entities and Document Fingerprinting: Advancing Your Information Protection Strategy

In the modern digital workplace, data is the most valuable asset an organization possesses. However, as the volume of data grows, so does the difficulty of protecting it. Traditional methods of identifying sensitive information often rely on Regular Expressions (Regex) or simple keyword lists. While these are effective for highly structured data like credit card numbers or Social Security numbers, they often fail when faced with unstructured or semi-structured data. This is where Named Entities and Document Fingerprinting come into play. These advanced detection methods allow organizations to move beyond simple pattern matching and into the realm of contextual understanding and structural recognition.

Named Entities utilize machine learning and natural language processing to identify complex data types such as person names, physical addresses, and medical terms that do not follow a strict mathematical format. On the other hand, Document Fingerprinting allows you to protect specific forms and proprietary documents by recognizing their unique structure and layout. Together, these tools form a sophisticated toolkit for any compliance administrator looking to secure their organization's intellectual property and sensitive personal information. In this lesson, we will explore how these technologies work, how to implement them, and how to integrate them into your broader Data Loss Prevention (DLP) strategy.

Not read yet

Understanding Named Entities

Named Entities represent a significant leap forward in how sensitive information types (SITs) are defined. In the past, if you wanted to find a person's name in a document, you were largely out of luck unless you had a massive dictionary of every possible name, which is impossible to maintain. Named Entities solve this by using pre-trained machine learning models that understand the context of language. They look for the "who," "where," and "what" within a block of text, even if the specific data hasn't been explicitly defined in a list.

How Named Entities Function

Unlike standard SITs that look for a pattern like nnnn-nnnn-nnnn-nnnn, Named Entities analyze the surrounding text to determine the likelihood that a string of characters represents a specific entity. For example, if the system sees the word "Street" or "Avenue" following a number and a capitalized word, the machine learning model assigns a high probability that this is a physical address.

Microsoft provides several categories of built-in Named Entities, including:

  • Person Names: Identifies full names of individuals across various cultures and languages.
  • Physical Addresses: Detects mailing addresses, including street names, cities, and postal codes.
  • Medical Terms: Recognizes conditions, treatments, and pharmaceutical names (often used for HIPAA compliance).
  • Legal Terms: Identifies specific legal jargon and document types that might indicate sensitive litigation material.

Callout: Pattern Matching vs. Named Entities

Traditional pattern matching (Regex) is deterministic; it looks for a specific sequence of characters. It is either a match or it isn't. Named Entities are probabilistic; they use context to determine if a piece of text "looks like" a name or an address. This makes Named Entities far more flexible but also requires a different approach to tuning and "confidence levels" to ensure accuracy.

Practical Use Case: GDPR Compliance

Consider an organization that must comply with the General Data Protection Regulation (GDPR). Under GDPR, any "identifiable information" must be protected. This includes not just ID numbers, but also names and addresses. If an HR representative exports a list of employees to a CSV file, a standard SIT might catch the Social Security numbers, but it might ignore the column containing home addresses. By using the "Physical Address" Named Entity, the DLP policy can identify that these strings of text are indeed sensitive locations and block the file from being shared externally.

Implementing Named Entities in DLP Policies

To use Named Entities, you don't need to write complex code. They are available in the Microsoft Purview compliance portal. When creating a new DLP policy, you can select "Sensitive info types" and then search for entities like "All Full Names" or "All Physical Addresses."

One of the most powerful features is the "Bundled" Named Entity. Microsoft offers bundles like "All PII" (Personally Identifiable Information) which combines names, addresses, and phone numbers into a single detection unit. This simplifies policy creation because you don't have to manually add five or six different SITs to cover a single regulatory requirement.


Not read yet

Document Fingerprinting

While Named Entities are great for finding specific types of data within a document, Document Fingerprinting is designed to identify the document itself. Think of a fingerprint as a digital "rubbing" of a form. If your company uses a specific "Intellectual Property Disclosure Form" or a "Standard Employment Contract," these documents have a consistent structure even if the data inside them changes.

The Mechanism of Fingerprinting

When you create a document fingerprint, the system processes a blank template of the form. It looks at the static text, the headings, the spacing, and the overall layout. It then creates a mathematical hash of these elements. When a user creates a new document based on that template and fills it in, the DLP engine can still recognize the "fingerprint" of the original form underneath the new data.

It is important to understand that fingerprinting is not just a simple file hash. If you change one word in a file, the file hash changes completely. However, a document fingerprint is more resilient. It looks for "shingles" or small segments of the document. If a significant percentage of these segments match the original template, the system triggers a match.

Note: Document Fingerprinting is most effective for forms that have at least 50-60% static content. If a document is mostly free-form text with very little structure, fingerprinting may result in a high rate of false negatives.

Steps to Create a Document Fingerprint

Creating a fingerprint involves a few specific steps within the Purview portal or via PowerShell. Here is the general workflow:

  1. Collect your templates: Gather the blank versions of the forms you want to protect. Ensure they are in supported formats like .docx, .pdf, or .xlsx.
  2. Upload the documents: In the Compliance Center, navigate to Data Classification > Classifiers > Document Fingerprints.
  3. Define the SIT: Once the document is uploaded and processed, the system creates a new Sensitive Information Type based on that fingerprint.
  4. Test the detection: Create a filled-out version of the form and see if the system correctly identifies it.

PowerShell Implementation

For administrators who prefer automation or need to manage a large number of fingerprints, PowerShell is the preferred method. You can use the New-DlpFingerprint and New-DlpSensitiveInformationType cmdlets.

# First, read the template file into a byte array
$template = [System.IO.File]::ReadAllBytes("C:\Templates\PatentApplicationForm.docx")

# Create the fingerprint object
$fingerprint = New-DlpFingerprint -FileData $template -Description "Standard Patent Application Form"

# Create the new Sensitive Information Type using the fingerprint
New-DlpSensitiveInformationType -Name "Patent_App_Fingerprint" -Fingerprints $fingerprint -Description "Detects our proprietary patent application forms."

Explanation of the code:

  • ReadAllBytes: This converts the physical file into a format the command can process.
  • New-DlpFingerprint: This command creates the mathematical representation of the document structure.
  • New-DlpSensitiveInformationType: This registers the fingerprint as a SIT that can be used in any DLP policy across the tenant.

Not read yet

Comparison: Named Entities vs. Document Fingerprinting

Choosing the right tool depends entirely on what you are trying to protect. The following table provides a quick reference for making that decision.

Feature Named Entities Document Fingerprinting
Primary Target Specific data points (Names, Addresses) Specific document structures (Forms)
Technology Machine Learning / NLP Hashing / Structural Analysis
Flexibility High (detects data anywhere) Low (requires a template)
Setup Effort Low (mostly built-in) Medium (requires gathering templates)
Best For PII, HIPAA, GDPR Compliance IP Protection, HR Forms, Tax Documents
False Positive Risk Moderate (common names) Low (very specific to the form)

Advanced Configuration: Customizing Sensitive Information Types

Sometimes, the built-in Named Entities or a simple fingerprint aren't enough. You may need to combine these with other elements to increase accuracy. This is often done using XML-based SIT definitions. By creating a custom SIT, you can define "Proximity" and "Confidence Levels."

Understanding Confidence Levels

In the world of information protection, confidence levels are a scale (usually 1-100) that tells the system how sure it should be before taking action.

  • Low Confidence (60-70): The system found the pattern but lacks supporting evidence (keywords nearby).
  • High Confidence (85-100): The system found the pattern and found supporting evidence like the words "Full Name" or "Employee ID" nearby.

When using Named Entities, Microsoft often provides multiple versions of the same entity (e.g., "Person Name - Low Confidence" and "Person Name - High Confidence"). You should use High Confidence SITs for restrictive actions like "Block," and Low Confidence SITs for "Audit" or "User Notification" actions.

Step-by-Step: Creating a Custom SIT with Named Entities

If you want to create a SIT that detects a person's name only when it appears within 50 characters of the word "Patient," you would follow this process:

  1. Export the SIT XML: Use PowerShell to get the existing SIT definitions.
  2. Modify the XML: Add a new Entity definition that includes the Named Entity and a Proximity requirement for your specific keywords.
  3. Upload the XML: Use Set-DlpSensitiveInformationTypeRulePackage to upload your changes.
<Entity id="a1b2c3d4-e5f6-g7h8-i9j0" patternsProximity="300" recommendedConfidence="85">
  <Pattern confidenceLevel="85">
    <IdMatch idRef="BuiltIn_Person_Name" />
    <Any minMatches="1">
      <Keyword idRef="Keyword_Patient_Terms" />
    </Any>
  </Pattern>
</Entity>

Explanation of the XML:

  • IdMatch idRef="BuiltIn_Person_Name": This tells the system to use the built-in machine learning model for names.
  • Keyword idRef="Keyword_Patient_Terms": This is a list of words like "Patient," "Doctor," or "Diagnosis."
  • patternsProximity="300": This ensures the name and the keyword are within 300 characters of each other, reducing the chance of accidental matches in unrelated text.

Not read yet

Best Practices for Implementation

Deploying these advanced detection methods requires a strategic approach. If you turn on "Person Name" detection for your entire organization overnight, you will likely be buried in false positives.

1. The "Crawl, Walk, Run" Approach

Always start in Test Mode. Microsoft Purview allows you to run DLP policies in "Simulation Mode." This lets you see what would have happened without actually blocking any user actions. Review the alerts for 14 days, tune your confidence levels, and then move to "Notification Mode" (where users see a tip but aren't blocked) before finally enforcing "Block Mode."

2. Use "Supporting Evidence" to Reduce Noise

Named Entities are powerful but can be broad. If you are looking for physical addresses, try to pair them with a "Keyword List" of your specific office locations or terms like "Billing Address" or "Shipping Destination." This significantly reduces false positives from random addresses found in email signatures.

3. Maintain your Fingerprint Library

Document Fingerprinting is not a "set it and forget it" tool. If your HR department updates the "Performance Review" form to a new version with a different header, the old fingerprint might stop working. Establish a process where the owners of sensitive forms notify the IT/Compliance team whenever a template is updated.

Callout: The "Signatures" Pitfall

One of the most common mistakes when using the "Person Name" or "Physical Address" Named Entity is forgetting about email signatures. Almost every corporate email contains a name and an office address at the bottom. To avoid blocking every single email, use exceptions in your DLP policies to ignore content that matches your corporate signature or exclude the "Signature" area if possible using advanced rules.

4. Combine SITs with Sensitivity Labels

Don't rely solely on automated detection. Use Named Entities and Fingerprinting to suggest or automatically apply Sensitivity Labels (like "Confidential" or "Highly Confidential"). Once a label is applied, the protection follows the file regardless of whether the SIT detection triggers again in the future.


Not read yet

Common Pitfalls and How to Avoid Them

Even with the best tools, things can go wrong. Understanding these common mistakes will save you hours of troubleshooting.

Over-reliance on Default Settings

The default "Person Name" SIT is designed to be inclusive. In a large organization, this will trigger on almost every document. Administrators often make the mistake of using the "Low Confidence" version in a blocking policy. Solution: Always look at the "Confidence Level" and the "Instance Count" before deciding on a policy action. Only block when multiple instances are found at a high confidence level.

Fingerprinting Low-Entropy Documents

If you try to fingerprint a document that is mostly blank or contains very common text (like a standard NDA that looks like every other NDA on the internet), you will get a high rate of false positives. Solution: Only fingerprint documents that have unique, static structural elements that are specific to your organization.

Performance Impact

While the DLP engine is highly optimized, processing every document for 50 different fingerprints and 20 different Named Entities takes resources. If you have too many complex rules, you might see a delay in how quickly policies are applied. Solution: Consolidate your SITs. Use "Bundled" entities where possible and remove fingerprints for forms that are no longer in use.

Ignoring Regional Variations

Named Entities for addresses and names vary by region. If your organization is global, ensure you are using the "International" versions of these entities or adding specific entities for the countries where you operate (e.g., "Japan - Resident Registration Number" vs "US - Social Security Number").


Not read yet

Step-by-Step: Creating a DLP Policy using Named Entities

Let's walk through a practical scenario: creating a policy to prevent the accidental sharing of patient names and addresses in a healthcare setting.

Step 1: Define the Sensitive Information Types

Go to the Microsoft Purview compliance portal > Data classification > Classifiers. Look at the list of Sensitive info types. Ensure you are familiar with "All Full Names" and "Physical Addresses."

Step 2: Start the DLP Policy Wizard

Navigate to Data loss prevention > Policies > Create policy. Choose the "Custom" category and give your policy a name like "Healthcare PII Protection."

Step 3: Choose Locations

Select where you want the policy to apply. For this scenario, choose Exchange email, SharePoint sites, and OneDrive accounts.

Step 4: Define Policy Settings

Create a rule within the policy:

  • Condition: Content contains any of these sensitive info types: "All Full Names" AND "Physical Addresses."
  • Proximity: Set the rule so these must be within 300 characters of each other.
  • Action: If the content is shared with "People outside my organization," then Block the action.

Step 5: Configure User Notifications

Turn on User notifications and customize the Policy Tip. Instead of a generic message, use something helpful: "It looks like you are trying to share a patient's name and address. Please ensure this is authorized under HIPAA guidelines before sending."

Step 6: Review and Turn On

Review your settings. Choose "Run the policy in simulation mode" first. Click Submit.


Not read yet

Troubleshooting Named Entities and Fingerprinting

If your policies aren't triggering as expected, check the following:

  1. Optical Character Recognition (OCR): If the sensitive information is inside an image (like a scanned PDF), Named Entities won't find it unless you have OCR enabled in your Purview settings.
  2. File Size Limits: There are limits to the size of files that the DLP engine can scan in real-time. Extremely large files might be skipped.
  3. Encrypted Files: If a file is encrypted with a key that the DLP engine doesn't have access to, it cannot scan the content for fingerprints or entities.
  4. Sampling Rate: In simulation mode, there can be a delay of up to 24 hours before matches appear in the dashboard. Don't assume the policy is broken just because you don't see results five minutes after testing.

Quick Reference: Key Concepts

  • Named Entity: A machine-learning-based SIT that identifies categories of data (People, Places, Things) based on linguistic context rather than strict patterns.
  • Document Fingerprint: A SIT created by hashing the structure of a specific template, used to identify filled-out versions of that form.
  • Confidence Level: A numerical value representing how likely it is that the detected text matches the SIT definition.
  • Proximity: A setting that requires two different SITs or keywords to be within a certain number of characters/words to trigger a match.
  • Bundled Entity: A collection of multiple Named Entities (like "All PII") treated as a single unit for easier policy management.

Not read yet

Summary and Key Takeaways

Implementing advanced information protection requires moving beyond the basics of credit card and ID number detection. By utilizing Named Entities and Document Fingerprinting, you can protect the "soft" data that is often the target of data breaches or accidental leaks.

  • Named Entities are Contextual: They use machine learning to identify names, addresses, and medical terms. This makes them ideal for GDPR and HIPAA compliance where data doesn't follow a fixed format.
  • Fingerprinting is Structural: It is the best tool for protecting proprietary forms, contracts, and templates. It looks at the "bones" of a document rather than just the text inside.
  • Tuning is Essential: Because Named Entities use probability, they can produce false positives. Use high confidence levels for blocking and low confidence levels for auditing.
  • PowerShell provides Granularity: While the UI is great for simple tasks, PowerShell allows for more complex SIT creation and bulk management of document fingerprints.
  • Test Before You Enforce: Always use Simulation Mode. Understanding the impact of your policies on user workflow is just as important as the protection itself.
  • Combine Methods for Accuracy: The most effective SITs often combine a Named Entity with a specific keyword list and a proximity requirement.
  • Keep Templates Updated: Document fingerprints are tied to the structure of your forms. If the form changes, the fingerprint must be updated to maintain protection.

By mastering these two advanced techniques, you transition from a basic compliance administrator to a true information protection expert, capable of securing the most complex and nuanced data within your organization.

Not read yet

Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.