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 · Markdown version
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).
- 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 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).
- 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 builds an inventory of all S3 general purpose buckets in the account when it is enabled (AWS). 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). Microsoft Purview lists resources under a registered Azure subscription or resource group (Microsoft). Presidio has no enumeration stage: its analyzer takes a text string from the caller (Presidio docs).
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). 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). Purview lets a pattern's primary element be a regular expression with or without checksum validation (Microsoft).
- Dictionaries and keyword lists. Google supports custom dictionaries stored in Cloud Storage or BigQuery, and Purview supports keyword dictionaries (Google, Microsoft).
- Context words. Google says many built-in detectors need contextual clues nearby (Google). 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). Presidio uses spaCy as the default NLP engine for entities such as person names (Presidio docs).
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). Purview uses low, medium and high, which reflect how much supporting evidence sits near the primary element (Microsoft). 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).
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, Google). Macie reports per bucket and per object, and can retrieve up to 10 samples of sensitive data from an object (AWS). Presidio returns a list of results, each with entity type, score, start and end positions (Presidio docs).
Documented mechanics of five scanners
Google states its built-in detectors are not perfectly accurate (Google). 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).
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). 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). Google's Amazon S3 and Azure Blob Storage discovery is limited to Security Command Center Enterprise customers (Google). Immuta identifies data only in sources an administrator has registered (Immuta). Forgotten buckets, exports and snapshots are listed with inventory commands on the 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, AWS). Purview's Data Map reads a gzip file only when it maps to a single CSV (Microsoft). Presidio's image redactor relies on OCR (Tesseract by default) and is marked beta (Presidio docs). 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). 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); at list price a full inspection of 1 PB on Google is $648,393 (petabyte post).
- Macie documents that a single object sample is not guaranteed to be conclusive (AWS).
- Macie selects objects at random when a job's sampling depth is below 100 percent (AWS). 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, petabyte post).
- 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).
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). Purview's machine-learning person-name classification supports English-language names (Microsoft). Macie lists the countries and regions each identifier covers, so a national ID from a country not listed needs a custom data identifier (AWS). 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). Presidio's FAQ states that automated detection gives no guarantee all sensitive information is found (Presidio docs). On the site's 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). Default scrubadub, which matched only email, phone and credit card spans, found 4 percent of all labeled spans (benchmark data).
Using these limits when you run a scan
- List the stores outside the scanner's connectors before the first run, with the cloud inventory commands on the shadow data page.
- Read the per-bucket or per-source unclassifiable counts the tool reports, and treat them as coverage you do not have.
- Record the sampling depth, row limit and file-size limits beside every result.
- 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
“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
“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
Sources
- Amazon Macie: how automated sensitive data discovery works
- Amazon Macie: supported storage classes and formats
- Amazon Macie: quotas
- Amazon Macie: managed data identifiers
- Amazon Macie: managed data identifier quick reference
- Amazon Macie: custom data identifiers
- Google Sensitive Data Protection: match likelihood
- Google Sensitive Data Protection: infoTypes
- Google Sensitive Data Protection: inspecting storage
- Google Sensitive Data Protection: data profiles
- Google Sensitive Data Protection: documentation home
- Google Sensitive Data Protection: Amazon S3 discovery
- Microsoft Purview: sensitive information types
- Microsoft Purview: SIT entity definitions
- Microsoft Purview: Data Map supported sources
- Microsoft Purview: Data Map supported classifications
- Presidio: analyzer
- Presidio: languages
- Presidio: supported entities
- Presidio: evaluation
- Presidio: FAQ
- Immuta: data identification reference guide
- Amazon Macie: what is Macie
- Amazon Macie: job scope and sampling depth
- Amazon Macie: retrieving sensitive data samples
- Google Sensitive Data Protection: cloud storage discovery profiles
- Google Sensitive Data Protection: infoTypes reference
- Google Sensitive Data Protection: cost control best practices
- Microsoft Purview: register and scan multiple Azure sources
- Presidio: installation
- Presidio: image redactor
- Immuta: integrations
- Immuta: improved pack built-in identifier reference
- Google Sensitive Data Protection: supported file types