Creating patterns
In Reveal, a pattern is an expression that matches entities that can otherwise be hidden in the context of other information. You can create patterns based on regular expressions (regex) or keywords.
For example, a pattern could match an entity such as a credit card number or email address. Assign a pattern to a rule to match entities in unstructured data such as a word processing document, text file, PDF document, or spreadsheet. Reveal provides patterns for several types of sensitive information, such as credit card numbers, social security numbers, and email addresses.
Update patterns created by Tanium
Patterns created by Tanium update automatically through a content feed that is checked once every 24 hours by default. If a deployed rule uses an updated pattern, the update automatically deploys to Tanium Client managed endpoints, based on the time configured in the Rule Publication On Modify setting. To immediately deploy updated rules, from the Main menu, go to , click Deploy All Rule Sets, enter your credentials, and click OK. For more information, see Deploy rules.
-
To adjust the automatic update schedule, go to the Reveal Overview page and click Settings
. On the Settings tab, update the Content Feed Update Interval Hours setting.
-
To manually check for updates, click Refresh
in the Last Modified by Tanium section of the Patterns page.
Update patterns in an air-gapped environment
If you want to manually update content or your Tanium Server is in an air-gapped environment, you can upload the content archive from the Reveal settings.
- Download the latest content archive from a computer that can access the internet: https://content.tanium.com/files/published/reveal/reveal-content/stable/reveal2-content-stable.zip
- Transfer the file to a computer in the air-gapped environment.
- Go to the Reveal Overview page and click Settings
.
- On the Settings tab, clear the value in the Content Feed Update Interval Hours. Click Save. An Upload Content tab appears
- Click the Upload Content tab. Drag and drop the content archive to the tab to upload it.
Regex pattern considerations
Consider the following items before creating a regex pattern.
-
Use the RE2 syntax and style. For more information, see https://github.com/google/re2/wiki/Syntax
-
Define the goal for your pattern:
-
Who is the intended user for this pattern?
-
What data does that user need to discover?
-
Why does that user need to discover that data?
-
-
Research and understand the format of the data that you want to match. For example, you might want to look for a particular ID that has 4-10 alphanumeric characters that are not case sensitive.
-
Define example matches, both expected matches and some examples that are close, but that you do not want to match.
-
Develop, test, and validate your regex using a regex editor, such as https://regex101.com.
-
Optimize your regex:
-
Minimize the use of open-ended terms (such as
*) and lookaheads. -
Use a regex editor that displays the number of steps the engine took to match your test data. Try to minimize the number of steps required for a match.
-
Avoid using ^ or $ anchors in regex patterns.
-
To add a comment, use the pound sign (#). To use # as a literal character, escape it with a backslash (\), for example, \#.
-
Create a regex pattern
Create a regex pattern to specify a pattern for the data that you want to find in files. You can use the pattern in a rule to search for that data.
Before creating the pattern, review Regex pattern considerations.
Create a keyword list
Create a keyword list to specify keywords for the data that you want to find in files. This keyword list is included as a pattern that you can use in a rule to search for that data.
- From the Main menu, go to , click Create Pattern, and then select Keyword Pattern.
- Enter a name for the pattern.
- (Optional) Provide a description for the pattern.
- Specify the keywords for the data that you want to find in files, using one of the following methods:
- Click Create.
Edit a pattern
Delete a pattern
You can delete only patterns that are not Reserved patterns or used in a rule.