---
title: "How Sensitive Data Discovery Works, and What Scanners Miss"
description: "Discovery lists stores, reads or samples data, then runs detectors. Vendor docs show four gaps: unconnected stores, formats, sampling limits, detector fit."
url: https://sensitivedatadiscoverytools.com/sensitive-data-discovery/
canonical: https://sensitivedatadiscoverytools.com/sensitive-data-discovery/
reviewed: 2026-12-04
last_updated: 2026-12-04
---

# How sensitive data discovery works, and what scanners miss

A discovery scan lists data stores, reads or samples their contents, and runs detectors that report each match with a confidence. Vendor documentation shows four places a scan misses data: stores never connected, formats it cannot read, sampling and size limits, and detectors that do not fit the data.

Last reviewed December 4, 2026.

## Key facts

- Purview Data Map samples the top 128 rows in each column or the first 1 MB, whichever is lower; on a 10 million row table that is 0.00128 percent of the rows ([Microsoft](https://learn.microsoft.com/en-us/purview/data-map-data-sources)).
- Macie's identifier pages, Google's infoTypes reference and Purview's SIT definitions page give no precision or recall for built-in detectors; Presidio's [evaluation page](https://presidio.dataprivacystack.org/evaluation/) reports only that tuning raised its F score by about 30 percent.
- On the site benchmark, default Presidio found 0 of 620 organization spans and 9 percent of 379 street address spans ([benchmark data](/api/benchmark.json)).
- A 10 percent Macie job over 1,000 objects with 10 sensitive ones misses all 10 with probability 0.347 (the site's arithmetic, worked below).

## What a discovery scan does

### Enumerating stores

[Amazon Macie](/tools/amazon-macie/) builds an inventory of all S3 general purpose buckets in the account when it is enabled ([AWS](https://docs.aws.amazon.com/macie/latest/user/what-is-macie.html)). [Google Sensitive Data Protection](/tools/google-sensitive-data-protection/) profiles every supported resource inside the organization, folder or project that a scan configuration covers, and picks up new tables as they appear ([Google](https://cloud.google.com/sensitive-data-protection/docs/data-profiles)). [Microsoft Purview](/tools/microsoft-purview/) lists resources under a registered Azure subscription or resource group ([Microsoft](https://learn.microsoft.com/en-us/purview/register-scan-azure-multiple-sources)). [Presidio](/tools/presidio/) has no enumeration stage: its analyzer takes a text string from the caller ([Presidio docs](https://presidio.dataprivacystack.org/analyzer/)).

### Reading objects or sampling rows

Macie groups objects by bucket name, prefix, storage class, file extension and last-modified date, then analyzes a representative sample from each group ([AWS](https://docs.aws.amazon.com/macie/latest/user/discovery-asdd-how-it-works.html)). Row and file limits for Purview and Immuta are in the table below.

### Running detectors

A detector is a rule or model that decides whether a span of text is a given type of sensitive data. Documented detector types:

- Patterns with validation. Google lists pattern matches, mathematical checksums, digit restrictions and prefixes among its techniques ([Google](https://cloud.google.com/sensitive-data-protection/docs/concepts-infotypes)). Purview lets a pattern's primary element be a regular expression with or without checksum validation ([Microsoft](https://learn.microsoft.com/en-us/purview/sensitive-information-type-learn-about)).
- Dictionaries and keyword lists. Google supports custom dictionaries stored in Cloud Storage or BigQuery, and Purview supports keyword dictionaries ([Google](https://cloud.google.com/sensitive-data-protection/docs/concepts-infotypes), [Microsoft](https://learn.microsoft.com/en-us/purview/sensitive-information-type-learn-about)).
- Context words. Google says many built-in detectors need contextual clues nearby ([Google](https://cloud.google.com/sensitive-data-protection/docs/concepts-infotypes)). Macie marks some identifiers as keyword-required (table below).
- Named entity recognition and machine learning. Macie describes managed identifiers as using machine learning and pattern matching ([AWS](https://docs.aws.amazon.com/macie/latest/user/managed-data-identifiers.html)). Presidio uses spaCy as the default NLP engine for entities such as person names ([Presidio docs](https://presidio.dataprivacystack.org/installation/)).

### Confidence and thresholds

Google assigns one of five likelihood levels, from VERY_UNLIKELY to VERY_LIKELY, and removes findings below the minimum level set in the request ([Google](https://cloud.google.com/sensitive-data-protection/docs/likelihood)). Purview uses low, medium and high, which reflect how much supporting evidence sits near the primary element ([Microsoft](https://learn.microsoft.com/en-us/purview/sensitive-information-type-learn-about)). Immuta tags a column only when an identifier matches at least 90 percent of the sampled values, with lower thresholds for person name (45 percent), full name (20 percent), location (80 percent) and street address (80 percent) ([Immuta](https://documentation.immuta.com/saas/configuration/tags/data-discovery/data-identification-reference-guide/improved-pack-built-in-identifier-reference)).

### What an inventory finding contains

Google's discovery produces data profiles with sensitivity and risk levels, and can save about 10 sample findings per bucket to BigQuery ([Google](https://cloud.google.com/sensitive-data-protection/docs/data-profiles), [Google](https://cloud.google.com/sensitive-data-protection/docs/profile-org-folder-cloud-storage)). Macie reports per bucket and per object, and can retrieve up to 10 samples of sensitive data from an object ([AWS](https://docs.aws.amazon.com/macie/latest/user/findings-retrieve-sd.html)). Presidio returns a list of results, each with entity type, score, start and end positions ([Presidio docs](https://presidio.dataprivacystack.org/analyzer/)).

## Documented mechanics of five scanners

Table: Documented mechanics of Macie, Google Sensitive Data Protection, Purview, Presidio and Immuta

| Mechanic | Amazon Macie | Google Sensitive Data Protection | Microsoft Purview | Presidio | Immuta |
|---|---|---|---|---|---|
| Detector count | No total published; our count of the [quick-reference page](https://docs.aws.amazon.com/macie/latest/user/mdis-reference-quick.html): 166 identifier IDs, 53 of them bank account numbers | [Over 200 built-in infoType detectors](https://cloud.google.com/sensitive-data-protection/docs) | [More than 200 Data Map system classifications](https://learn.microsoft.com/en-us/purview/data-map-classification); the [SIT definitions page](https://learn.microsoft.com/en-us/purview/sit-sensitive-information-type-entity-definitions) states no total | No total published; our count of the [supported entities page](https://presidio.dataprivacystack.org/supported_entities/): 99 entity type names | [Built-in identifiers in the improved pack](https://documentation.immuta.com/saas/configuration/tags/data-discovery/data-identification-reference-guide/improved-pack-built-in-identifier-reference); no total counted here |
| Sampling | [Representative sample per object group in automated discovery](https://docs.aws.amazon.com/macie/latest/user/discovery-asdd-how-it-works.html); jobs set [a percentage of objects](https://docs.aws.amazon.com/macie/latest/user/discovery-jobs-scope.html) | [Per-file byte limit, file percentage and row limits](https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage); S3 buckets get [a sample, typically up to 30 GB per bucket](https://cloud.google.com/sensitive-data-protection/docs/discovery-for-amazon-s3) | [Top 128 rows or first 1 MB per column; 1 in 100 delimited/JSON/XML/TXT files in a resource set](https://learn.microsoft.com/en-us/purview/data-map-data-sources) | [None documented: scans only the text the caller passes](https://presidio.dataprivacystack.org/analyzer/) | [At most 13,000 rows; 10 percent capped at 10,000 on Databricks and Redshift, which the docs say can be biased toward earlier records](https://documentation.immuta.com/saas/configuration/tags/data-discovery/data-identification-reference-guide) |
| File limits | [Size caps per format: PDF over 1,024 MB, Word and Excel over 512 MB, text, EML and TAR over 20 GB, Avro, Parquet, gzip and ZIP over 8 GB](https://docs.aws.amazon.com/macie/latest/user/macie-quotas.html); [Glacier Deep Archive and Express One Zone not analyzed](https://docs.aws.amazon.com/macie/latest/user/discovery-supported-storage.html) | [Supported types include Avro, CSV, PDF, Word, Excel and images](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types); sampling [not supported for images](https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage) | [First 20 MB of a document; larger documents get metadata only](https://learn.microsoft.com/en-us/purview/data-map-data-sources) | [No file reader in the analyzer](https://presidio.dataprivacystack.org/analyzer/); [image redactor is marked beta](https://presidio.dataprivacystack.org/image-redactor/) | Column-based tags on registered sources ([Immuta](https://documentation.immuta.com/saas/configuration/integrations)) |
| Confidence model | [Some identifiers require a nearby keyword](https://docs.aws.amazon.com/macie/latest/user/mdis-reference-quick.html); custom identifiers take [keywords and a proximity rule](https://docs.aws.amazon.com/macie/latest/user/custom-data-identifiers.html) | [Likelihood levels](https://cloud.google.com/sensitive-data-protection/docs/likelihood) ([above](#confidence-and-thresholds)) | [Low (65 or below), medium (75), high (85) rule values](https://learn.microsoft.com/en-us/purview/sit-sensitive-information-type-entity-definitions); [Data Map system classifications need 60 percent of column values to match](https://learn.microsoft.com/en-us/purview/data-map-classification-supported-list) | [A score per result](https://presidio.dataprivacystack.org/analyzer/); [context words documented per entity](https://presidio.dataprivacystack.org/supported_entities/) | Tag at a match share of sampled values ([thresholds above](#confidence-and-thresholds)) |

Google states its built-in detectors are not perfectly accurate ([Google](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference)). Presidio's evaluation page says the default configuration is not very accurate and points to the presidio-research package for measuring your own data ([Presidio docs](https://presidio.dataprivacystack.org/evaluation/)).

## The four ways scanners miss data

### 1. Stores the scanner was never pointed at

Macie analyzes S3 general purpose buckets and not S3 directory buckets, and its documentation suggests exporting database snapshots or DynamoDB exports to S3 to scan them. S3 Glacier Flexible Retrieval is also absent from the supported storage classes (Deep Archive and Express One Zone are in the table above) ([AWS](https://docs.aws.amazon.com/macie/latest/user/discovery-supported-storage.html)). Past 10,000 buckets per account, Macie stops evaluating the older buckets for security and access control and no longer keeps complete inventory data on them ([AWS](https://docs.aws.amazon.com/macie/latest/user/macie-quotas.html)). Google's Amazon S3 and Azure Blob Storage discovery is limited to Security Command Center Enterprise customers ([Google](https://cloud.google.com/sensitive-data-protection/docs/discovery-for-amazon-s3)). Immuta identifies data only in sources an administrator has registered ([Immuta](https://documentation.immuta.com/saas/configuration/integrations)). Forgotten buckets, exports and snapshots are listed with inventory commands on the [shadow data](/shadow-data/) page.

### 2. File types and formats the scanner cannot read

Macie skips images, audio and video and files over its per-format size caps (table above; [AWS](https://docs.aws.amazon.com/macie/latest/user/discovery-supported-storage.html), [AWS](https://docs.aws.amazon.com/macie/latest/user/macie-quotas.html)). Purview's Data Map reads a gzip file only when it maps to a single CSV ([Microsoft](https://learn.microsoft.com/en-us/purview/data-map-data-sources)). Presidio's image redactor relies on OCR (Tesseract by default) and is marked beta ([Presidio docs](https://presidio.dataprivacystack.org/image-redactor/)). Macie does not read a passport scan saved as a JPEG, even in a supported bucket. Macie reports a per-bucket count of objects it could not classify ([AWS](https://docs.aws.amazon.com/macie/latest/user/discovery-supported-storage.html)). A run with no findings covers none of those objects.

### 3. Sampling depth and monthly quotas

Google's cost guidance recommends sampling to control inspection charges ([Google](https://cloud.google.com/sensitive-data-protection/docs/best-practices-costs)); at list price a full inspection of 1 PB on Google is $648,393 ([petabyte post](/blog/what-it-costs-to-scan-a-petabyte/)).

- Macie documents that a single object sample is not guaranteed to be conclusive ([AWS](https://docs.aws.amazon.com/macie/latest/user/discovery-asdd-how-it-works.html)).
- Macie selects objects at random when a job's sampling depth is below 100 percent ([AWS](https://docs.aws.amazon.com/macie/latest/user/discovery-jobs-scope.html)). With 10 sensitive objects among 1,000, the chance a 10 percent job misses all of them is C(990,100)/C(1000,100) = 0.347; raising depth to 30 percent cuts it to 0.028 (the site's arithmetic).
- A Macie job at 10 percent depth over 1 PB reads about 100 TB and costs $75,000 at list price ([Macie pricing](https://aws.amazon.com/macie/pricing/), [petabyte post](/blog/what-it-costs-to-scan-a-petabyte/)).
- Macie jobs analyze at most 5 TB per account per month by default, raisable to 1,000 TB through Service Quotas and higher through AWS Support, and stop analyzing a single file after 10 hours ([AWS](https://docs.aws.amazon.com/macie/latest/user/macie-quotas.html)).

### 4. Detectors that do not fit the data

Presidio's default configuration has recognizers and models for English only, and other languages need a changed NLP engine and recognizers ([Presidio docs](https://presidio.dataprivacystack.org/analyzer/languages/)). Purview's machine-learning person-name classification supports English-language names ([Microsoft](https://learn.microsoft.com/en-us/purview/data-map-classification-supported-list)). Macie lists the countries and regions each identifier covers, so a national ID from a country not listed needs a custom data identifier ([AWS](https://docs.aws.amazon.com/macie/latest/user/mdis-reference-quick.html)). Macie identifiers marked as keyword-required in the quick reference report nothing for a bare nine-digit value with no keyword within the proximity window ([AWS](https://docs.aws.amazon.com/macie/latest/user/mdis-reference-quick.html)). Presidio's FAQ states that automated detection gives no guarantee all sensitive information is found ([Presidio docs](https://presidio.dataprivacystack.org/faq/)). On the site's [benchmark](/benchmark/) of 500 synthetic finance records, default Presidio found none of the organization spans because it ships no organization recognizer, and 9 percent of 379 street address spans because its location recognizer finds cities and countries ([Presidio supported entities](https://presidio.dataprivacystack.org/supported_entities/)). Default scrubadub, which matched only email, phone and credit card spans, found 4 percent of all labeled spans ([benchmark data](/api/benchmark.json)).

## Using these limits when you run a scan

1. List the stores outside the scanner's connectors before the first run, with the cloud inventory commands on the [shadow data](/shadow-data/) page.
2. Read the per-bucket or per-source unclassifiable counts the tool reports, and treat them as coverage you do not have.
3. Record the sampling depth, row limit and file-size limits beside every result.
4. Test detectors on a labeled sample of your own data, in your locales, before trusting a threshold.

## In their words: what people found

- “almost every time it's salary information” Matthew Radolec runs systems engineering, incident response, cloud and managed data detection and response at Varonis (works at a vendor). Interview, June 3, 2025: [Adapting to New Threats, Copilot Risks & The Future of Data](https://www.cloudsecuritypodcast.tv/videos/adapting-to-new-threats-copilot-risks-the-future-of-data)
- “the more you know your data, the better you can protect and leverage it” Heather Federman, Head of Privacy and Product Counsel, Signifyd. Post, November 29, 2022: [Redefining data mapping](https://iapp.org/news/a/redefining-data-mapping)
- “Building is great for a number of reasons, but they're hard to maintain.” Shahab Asghar, Associate General Counsel, Global Data Privacy and Security, Coinbase. Talk, September 25, 2019: [No one's having an easy time with DSARs, don't worry](https://iapp.org/news/a/no-ones-having-an-easy-time-with-dsars-dont-worry)

[All 25 voices](/voices/)

## Sources

1. [Amazon Macie: how automated sensitive data discovery works](https://docs.aws.amazon.com/macie/latest/user/discovery-asdd-how-it-works.html)
2. [Amazon Macie: supported storage classes and formats](https://docs.aws.amazon.com/macie/latest/user/discovery-supported-storage.html)
3. [Amazon Macie: quotas](https://docs.aws.amazon.com/macie/latest/user/macie-quotas.html)
4. [Amazon Macie: managed data identifiers](https://docs.aws.amazon.com/macie/latest/user/managed-data-identifiers.html)
5. [Amazon Macie: managed data identifier quick reference](https://docs.aws.amazon.com/macie/latest/user/mdis-reference-quick.html)
6. [Amazon Macie: custom data identifiers](https://docs.aws.amazon.com/macie/latest/user/custom-data-identifiers.html)
7. [Google Sensitive Data Protection: match likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood)
8. [Google Sensitive Data Protection: infoTypes](https://cloud.google.com/sensitive-data-protection/docs/concepts-infotypes)
9. [Google Sensitive Data Protection: inspecting storage](https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage)
10. [Google Sensitive Data Protection: data profiles](https://cloud.google.com/sensitive-data-protection/docs/data-profiles)
11. [Google Sensitive Data Protection: documentation home](https://cloud.google.com/sensitive-data-protection/docs)
12. [Google Sensitive Data Protection: Amazon S3 discovery](https://cloud.google.com/sensitive-data-protection/docs/discovery-for-amazon-s3)
13. [Microsoft Purview: sensitive information types](https://learn.microsoft.com/en-us/purview/sensitive-information-type-learn-about)
14. [Microsoft Purview: SIT entity definitions](https://learn.microsoft.com/en-us/purview/sit-sensitive-information-type-entity-definitions)
15. [Microsoft Purview: Data Map supported sources](https://learn.microsoft.com/en-us/purview/data-map-data-sources)
16. [Microsoft Purview: Data Map supported classifications](https://learn.microsoft.com/en-us/purview/data-map-classification-supported-list)
17. [Presidio: analyzer](https://presidio.dataprivacystack.org/analyzer/)
18. [Presidio: languages](https://presidio.dataprivacystack.org/analyzer/languages/)
19. [Presidio: supported entities](https://presidio.dataprivacystack.org/supported_entities/)
20. [Presidio: evaluation](https://presidio.dataprivacystack.org/evaluation/)
21. [Presidio: FAQ](https://presidio.dataprivacystack.org/faq/)
22. [Immuta: data identification reference guide](https://documentation.immuta.com/saas/configuration/tags/data-discovery/data-identification-reference-guide)
23. [Amazon Macie: what is Macie](https://docs.aws.amazon.com/macie/latest/user/what-is-macie.html)
24. [Amazon Macie: job scope and sampling depth](https://docs.aws.amazon.com/macie/latest/user/discovery-jobs-scope.html)
25. [Amazon Macie: retrieving sensitive data samples](https://docs.aws.amazon.com/macie/latest/user/findings-retrieve-sd.html)
26. [Google Sensitive Data Protection: cloud storage discovery profiles](https://cloud.google.com/sensitive-data-protection/docs/profile-org-folder-cloud-storage)
27. [Google Sensitive Data Protection: infoTypes reference](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference)
28. [Google Sensitive Data Protection: cost control best practices](https://cloud.google.com/sensitive-data-protection/docs/best-practices-costs)
29. [Microsoft Purview: register and scan multiple Azure sources](https://learn.microsoft.com/en-us/purview/register-scan-azure-multiple-sources)
30. [Presidio: installation](https://presidio.dataprivacystack.org/installation/)
31. [Presidio: image redactor](https://presidio.dataprivacystack.org/image-redactor/)
32. [Immuta: integrations](https://documentation.immuta.com/saas/configuration/integrations)
33. [Immuta: improved pack built-in identifier reference](https://documentation.immuta.com/saas/configuration/tags/data-discovery/data-identification-reference-guide/improved-pack-built-in-identifier-reference)
34. [Google Sensitive Data Protection: supported file types](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types)
