Tanium Reveal Guide for HIPAA Pattern and Rule Development

What Are Reveal Patterns?

A Reveal Pattern in Tanium is a defined set of criteria using regular expressions or key words used to identify sensitive data at rest across endpoints. These patterns are part of Tanium's Reveal module, which supports data discovery for compliance, privacy, and security purposes. Reveal does not monitor data in motion; it focuses on scanning file systems and indexing content to detect matches.

What Are Reveal Rules?

Rules are collections of patterns that can be applied to Rule Sets. Rules can be customized to filter a pattern based on File type, File Location, File modified, and File size. Rules also allow for a tag to be added to a file that matches against the pattern.

How does Reveal work?

Reveal leverages Index, a shared service tool, which makes a database of the files on an endpoint. Reveal then deploys its Extractor scan against the Index database to compare data against the patterns that are applied to the desired machine(s). By default, Index runs once every 7 days, and Extractor runs once every hour. Index scans can be manually started through the Tanium Console if needed.

Writing Custom Reveal Patterns: Best Practices

Mitigating False Positives at the Regex Level

Tanium Reveal has a built-in validation mechanism to tailor patterns to provide less false positives. However, by being specific when creating patterns, such as field aware grouping, the amount of time spent validating/ invalidating matches can be drastically decreased.

Specificity and Contextual Anchoring

Utilizing field aware Regex can help ensure information is contextually accurate. This can be done in a single pattern, or by using Pattern Proximity Groups.

- The patterns included as examples such as date of birth do not look for a “date” string, but rather a labeled field with “DOB” (Or variants) with applicable data within a pre-defined number of spaces.

-Pattern Proximity Groups can be added to a rule to only match a pattern if it is within a specified number of spaces from another match. PPG’s are combined using “AND” functions so the data must be in proximity to all patterns in the group. For example - A rule could be created that checks for DOB but only matches if the DOB is within 40 characters of a Patient Name match.

Validating Pattern Accuracy

  • Always start testing patterns in a regex debugger such as regex101.com. By ensuring all the data you wish to match validates here, it cuts down on troubleshooting time.

  • Index by default runs on a 7-day recurring schedule, while extractor runs once every hour. To see results in a sooner timeframe, a manual index and extractor scan will need to be ran (Package deployment). If a file (already in the Index DB) is modified but not moved, only an extractor scan needs to be ran to update in Reveal.

  • Several Index packages exist that can be utilized for kicking off a manual scan. To force a full system scan, the [Index - Force Start Scans] package can be deployed (This will take a long time, especially for systems with large file structures). For testing of data in a specific directory, the package [Index - Request Immediate One-Time Scan] can be deployed to scan more efficiently.

  • Both Index and Extractor scans can be initiated through command line in the TaniumClient directory.

Full Index: taniumcx call index.force-start-scans

Extractor: taniumcx call index.force-start-extractor

Testing Patterns with Sample Data

Patterns parse different filetypes such as .pdf, .doc, .docx, .txt, and more depending on filters (or lack thereof) included in a rule. Creating several test documents with different file extensions is preferred for validation purposes.

Examples of Effective field sensitive Regex Patterns for HIPAA and more

Names (HIPAA focused – Applicable to other industries)

(?i)\b(First\s+Name|Patient\s+Name|Given\s+Name)\b\s*[:\-]?\s*(?! \b(blank|n\/a|none|unknown)\b\s*$([A-Z][a-z]+(?:\s+[A-Z][a-z]+)*)

Regex Element

Description

(?i)

Case-insensitive

\b(First\s+Name|Patient\s+Name|Given\s+Name)\b

Match field names like "First Name", "Patient Name", etc.

\s*[:\-]?\s*

Match optional colon or dash with surrounding spaces

(?! \b(blank|n\/a|none|unknown)\b\s*$

Don't match if value is blank, "n/a", "none", or "unknown"

([A-Z][a-z]+

Capture capitalized word (e.g. "John")

(?:\s+[A-Z][a-z]+)*)

Optionally allow additional capitalized words (e.g. "John Smith") )

Date of birth MM/DD/YYYY / MM/D/YYYY variant

(?i)(DOB|Date\s+of\s+Birth)\s*[:\-]?\s*(?! \b(blank|n\/a|none|unknown)?\b\s*$)(0?[1-9]|1[0-2])[\/\-](0?[1-9]|[12]\d|3[01])[\/\-](19|20)\d{2}

Regex Element

Description

(?i)(DOB|Date\s+of\s+Birth)

Match "DOB" or "Date of Birth"

\s*[:\-]?\s*

Allow optional colon/dash and whitespace

(?! \b(blank|n\/a|none|unknown)?\b\s*$)

If field is blank/n/a/etc, don't match )

(0?[1-9]|1[0-2])[\/\-](0?[1-9]|[12]\d|3[01])[\/\-](19|20)\d{2}

Matches month, day, and year (1900 – 2099) with slash or dash separator.

Street Addresses

(?i)\b(?:Address|Home\s+Address|Patient\s+Address)\b\s*[:\-]?\s*(\d{1,6}\s+ (?:[A-Z][a-z]*\s?)+(?:St|Street|Ave|Avenue|Blvd|Boulevard|Rd|Road|Ln|Lane|Dr|Drive|Ct|Court|Pl|Place|Terrace|Way|Pkwy|Parkway|Cir|Circle)\b(?:,\s*(?:Apt|Unit|Suite)\s*\w+)?(?:,\s*[A-Z][a-z]+(?:\s+[A-Z][a-z]+)*,\s*[A-Z]{2}\s*\d{5}(?:-\d{4})?)?)

Regex Element

Description

(?i)\b(?:Address|Home\s+Address|Patient\s+Address)\b

Match the field name

\s*[:\-]?\s*

Optional colon/dash and whitespace

(\d{1,6}

Street number (1–6 digits)

\s+ (?:[A-Z][a-z]*\s?)+

Street name (capitalized words like "Main", "Oak Ridge")

(?:St|Street|Ave|Avenue|Blvd|Boulevard|Rd|Road|Ln|Lane|Dr|Drive| Ct|Court|Pl|Place|Terrace|Way|Pkwy|Parkway|Cir|Circle)\b

Street type suffix

(?:,\s*(?:Apt|Unit|Suite)\s*\w+)?

Optional Apt/Unit/Suite number

(?:,\s*[A-Z][a-z]+(?:\s+[A-Z][a-z]+)*,\s*[A-Z]{2}\s*\d{5}(?:-\d{4})?)?)

Optional field for city, state, and zip code

Customizing Pre-Built Rules

Out-of-the-box rules cannot be directly edited, so to make modifications the rule must be cloned then adjusted on the duplicate.

Rules use “AND” functions when comparing data to patterns. If there are multiple patterns in a rule, the data must match all patterns in a rule to have it apply. In the case of variations (Like DOB formatting) Individual rules must be made for each variation, then added to the rule set.

Customization Examples

-There are different naming/ numbering schemes for data such as account or MRN numbers depending on the organization. For example: MRN numbers that are 6-10 digits, a pattern such as (?i)\b(?:MRN|Medical\s+Record\s+Number)\b\s*[:\-]?\s*([0-9\-]{9,15}) will match, but not for an unlabeled 6–10-digit string of numbers. If your organization has a different naming convention, adjustments will need to be made in the second half of the regex.

Implementing Exclusions

Syntax and Placement of Exclusion Rules

Exclusion rules can be added via the Profiles section of Reveal. There are file specific and directory exclusions available in the profile. Exclusions made in Profile only apply to extractor scans, so the file will still populate in Index but be ignored by extractor-(Unless Reveal is the only module installed utilizing index). There are exclusions included in the default profile- it is recommended to keep those in place. Exclusions can be targeted towards specific computer groups, so if a particular set of machines have a directory with many false positives, making group specific exclusions can streamline the validation process.

Several files in system directories such as system32, Web browser app data, and the /usr/ directory for Linux machines contain many false matches to data such as name and account numbers. By excluding these paths using Reveal profiles the validation process is further shortened.

Best Practices for Exclusions

Keep Exclusions simple and specific, ensure that places where sensitive data may be stored do not fall under the exclusions.

Sample Exclusion Patterns **If this fits your organizational needs**

Windows

.* \\AppData\\Local\Microsoft\\.*

Linux

^/usr/

^/etc/

Testing and Validation

It is recommended to set up exclusions prior to running index scans. To validate an exclusion, the Index DB must be reset via the [Index - Reset Database] package. Allocate some time to allow for the DB file to be completely cleaned before running Index and extractor scans.

Troubleshooting and Optimization

Other system files and application data will create false positive matches. Reveal has a built-in validation tool that allows for matched strings to be classified as a correct or incorrect via context. Validations can be seen in the appropriate tab under Reveal.

Performance Considerations

Reveal supports PCRE2 and Golang regex types. Golang requires more tuning but is less resource intensive on the endpoint.

Glossary of Terms

Term

Definition

Index

A database created by Tanium Reveal that catalogs files on endpoints. It enables efficient scanning by storing metadata about file contents.

Extractor

A component of Tanium Reveal that scans indexed files to detect matches based on defined rules and patterns.

PHI (Protected Health Information)

Any information about health status, provision of healthcare, or payment for healthcare that can be linked to an individual, as defined by HIPAA.

RegEx (Regular Expression)

A sequence of characters that defines a search pattern, used in Reveal patterns to identify sensitive data formats like names, dates, or MRNs.

Pattern

A defined search criterion, using RegEx or keywords, used by Tanium Reveal to detect specific types of sensitive data.

Rule

A logical grouping of one or more patterns. All patterns in a rule must match for the rule to trigger.

Ruleset

A collection of rules applied to endpoints. Rulesets are used to organize and deploy multiple rules for scanning.

Exclusion

A configuration that prevents certain files or directories from being scanned or flagged, reducing false positives.

Validation

The process of confirming that pattern matches are accurate and relevant, often involving manual review or test data.

False Positive

A scan result that incorrectly identifies a file or data as matching a pattern when it does not contain sensitive information.

Field-Aware RegEx

A RegEx pattern designed to match data only when it appears in a specific context, such as a labeled field (e.g., "DOB: 01/01/1990").

Manual Scan

A user-initiated scan that overrides the default schedule to immediately update the index or run extractors.

Profile

A configuration in Tanium Reveal that includes rules, exclusions, and settings applied to specific computer groups.

Useful Resources and References

https://help.tanium.com/bundle/ug_reveal_cloud/page/reveal/index.html