Managing watched paths with watchlists
Watchlists define a set of files, directories, and Windows registry paths that you want to monitor for changes. Create specific watchlists that target the Tanium Client managed endpoints where Integrity Monitor should watch the specified paths.
Before you begin
-
On Windows endpoints, the Audit File System operating system permission must be configured to record permission changes. For more information, see (Windows) Configure permission recording.
When you enable the Permission change type for a path in a watchlist, Integrity Monitor automatically configures the appropriate System Access Control List (SACL) audit settings for every file and folder in that path for that watchlist.
-
To specifically record file or registry rename operations on an endpoint, or to specifically record modifications to individual registry values on an endpoint, you must enable the Collect process and user attribution information setting in the monitor that you deploy to that endpoint. For more information, see Create or edit a monitor.
If you disable this setting, these operations are recorded as follows:
-
Integrity Monitor records a rename operation as a delete operation followed by a create operation. On Solaris and AIX endpoints, Integrity Monitor always records a rename operation as a delete operation followed by a create operation.
-
Integrity Monitor does not return modifications to registry values as events. Create and delete operations are still recorded for individual registry values, regardless of this setting.
-
Create or edit a watchlist
Create or edit a watchlist to identify the name, path style, and optional watchlist templates. Integrity Monitor includes watchlist templates that contain critical files and directories that are typically monitored for Windows and Linux, and registry paths that are typically monitored for Windows.
-
Create as many watchlists as necessary, targeted narrowly to watch only the necessary paths on the appropriate endpoints.
-
Name each watchlist based on the application, business unit, or compliance standard you want to monitor.
-
Use a template as a starting point, and modify the watchlist to suit the needs of your environment. Monitors that use the default watchlists from the included templates might record a significant number of events that are not necessarily cause for concern.
Add and edit paths
After you create a watchlist, you add paths to determine the files, directories, and Windows registry paths that are monitored. If you used a template when creating a watchlist, you can edit the paths that were defined in the template.
Paths
The paths you add to a watchlist determine the files, directories, and registry paths that are monitored on endpoints where the watchlist is deployed. You can configure each path in a watchlist to trigger events for changes in files or registry keys. Integrity Monitor records create, write, delete, or rename operations for files, directories, or registry keys, as well as changes to permission for files or directories.
To refine the files, directories, and registry paths that are monitored for a watchlist, add path inclusions or path exclusions. Without inclusions or exclusions defined, the path matches all files and subdirectories in a file path or all subkeys in a registry path. By default, a file path that specifies a directory includes subdirectories recursively, and a registry path that specifies a registry key includes subkeys recursively.
If you directly specify a symbolic link in a path (including with the use of wildcard characters), Integrity Monitor watches the directories or files that the symbolic link references. It also follows symbolic links nested within that referenced directory. To avoid recursion, Integrity Monitor does not watch the referenced directories or files if the symbolic link is contained within a directory that you specify in a path. For example, assume you have a symbolic link at /my/path/directory-symlink that references /other/path/referenced-directory. If you specify the path /my/path/directory*, Integrity Monitor watches the referenced directory /other/path/referenced-directory, and it also follows any additional symbolic links contained within /other/path/referenced-directory. If you specify the path /my/path, then Integrity Monitor watches the symbolic link file itself, but it does not watch the referenced directory.
Inclusions and exclusions
If you define path inclusions, the path matches only subdirectories, files, or registry subkeys that match the inclusions.
If you define path exclusions, the path does not match subdirectories, files, or registry subkeys that match the exclusions.
Exclusions take precedence over inclusions. If you define both inclusions and exclusions, the path matches all directories, files, or registry keys that match the inclusions, except those that match exclusions.
For more information, see Reference: Watchlist paths, inclusions, and exclusions.
-
Be specific when defining watchlists. For example, watching the C:\ or / directories on endpoints results in a large number of events that are not cause for concern. To help focus on events of concern, follow these guidelines:
-
When possible, add multiple specific file paths instead of a single directory path. Add multiple specific registry subkey paths instead of higher-level registry keys.
-
If you add a directory path, add inclusions for specific file types to watch, such as
*.exeand*.dll. -
Create multiple, focused watchlists for different types of applications, software components, system configuration areas, or compliance standards. For example, if you need to monitor critical operating system files for Windows, and SQL Server critical files, directories, and registry entries, create separate watchlists for Windows and SQL Server. You can target different computer groups with these watchlists for different monitoring needs.
-
-
Rely primarily on inclusions to refine paths, and try to limit the number of exclusions for cleaner watchlists and more predictable monitoring.
Add a file path
Add file paths to a watchlist to define the files and directories that you want to monitor for changes on certain endpoints.
(Windows) Add a registry path
Add registry paths to a watchlist to define the registry keys that you want to monitor for changes on certain endpoints. Registry paths are available only for watchlists with a Windows path style.
Considerations for registry paths
Determining watched subkeys
A path matches all subkeys recursively under a key or keys that are specified by the path. For example, if you specify the path HKEY_LOCAL_MACHINE\a, then the path matches all subkeys of the a key (such as HKEY_LOCAL_MACHINE\a\x, HKEY_LOCAL_MACHINE\a\x\y, and HKEY_LOCAL_MACHINE\a\z), unless you otherwise exclude them. If the Collect process and user attribution information setting is enabled in the monitor that you deploy to that endpoint, all values of matching subkeys are watched.
You cannot monitor an entire subtree, such as HKEY_LOCAL_MACHINE, and you cannot specify individual values within a key.
Using an abbreviation for a subtree
You can use the abbreviation for the subtree in a path. Integrity Monitor expands the subtree name when you save your changes. For example, you can enter the path HKLM\MyKey, which is saved as HKEY_LOCAL_MACHINE\MyKey.
|
Subtree name |
Abbreviation |
|---|---|
|
|
|
|
|
|
Using the HKEY_CURRENT_USER subtree in a path
When you add a path in the HKEY_CURRENT_USER subtree, such as HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy, Integrity Monitor changes the HKEY_CURRENT_USER subtree in the path to HKEY_USERS\* when you save your changes (for example, HKEY_USERS\*\Software\Microsoft\Windows\CurrentVersion\Group Policy). Because the Tanium Client uses the SYSTEM account, the HKEY_CURRENT_USER subtree applies to the SYSTEM account rather than the user account that is currently signed in to Windows. Using HKEY_USERS\* instead lets Integrity Monitor record events for all users, including the user account that is currently signed in to Windows.
Using a redirected registry key in a path
For 64-bit Windows, the registry redirector maps some keys, such as HKEY_LOCAL_MACHINE\SOFTWARE\, to a WOW6432Node subkey (for example, HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node) for use by 32-bit applications. When you add key paths that are redirected under WOW64, the watchlist does not automatically include the parallel key paths under the WOW6432Node keys. If you want to monitor keys under these paths, you must enter them separately.
Import a path
You can import paths to a watchlist from a file that you created in another monitoring tool or from a template that is provided with Integrity Monitor.
Add paths from a file
Tanium provides limited support for importing paths from Tripwire configurations, Open Source HIDS Security (OSSEC) configurations, Log Correlation Engine (LCE) Client policies, or CSV files. For more information, see CSV format for path imports. An imported file can contain either file and directory or registry paths.
- From the Main menu, go to .
- Click the name of the watchlist.
- Click .
- Click Choose Files.
- Browse to and select the path file or files and click Open.
- Click Import to import the file or files.
CSV format for path imports
The first line of a CSV file specifies the field names and defines the order of the values in the subsequent rows. The import uses the following fields:
|
Field |
Description |
|---|---|
|
|
The file, directory, or registry path |
|
|
Whether to monitor a Windows file path for changes in permission ( |
|
|
An exclusion to apply to the path |
You can add additional exclusions to a path by adding subsequent lines with all fields empty except for excludes_spec. These lines inherit the blank field values from the parent entry.
The following example CSV file demonstrates the structure to use to import paths to Integrity Monitor.
path,ops_permission,excludes_spec
C:\\autoexec.bat,on,
C:\\Windows\\logs,off,**
C:\\Windows,on,NtServicePackUninstall
,,NtServicePackUninstall\\**
,,NtUninstall
,,NtUninstall\\**
,,Help
,,Help\\**
C:\\Windows\\assembly,on,**
Line descriptions for example CSV file
In the preceding example, this line adds the path C:\autoexec.bat and enables monitoring file permission changes:
C:\\autoexec.bat,on,
This line adds the path C:\Windows\logs, disables monitoring file permission changes, and adds the exclusion \**, which excludes any subdirectories within C:\Windows\logs:
C:\\Windows\\logs,off,\\**
These lines add the path C:\Windows, enable monitoring file permission changes, and add exclusions for three directories and their subdirectories (NtServicePackUninstall, NtUninstall, and Help):
C:\\Windows,on,NtServicePackUninstall
,,NtServicePackUninstall\\**
,,NtUninstall
,,NtUninstall\\**
,,Help
,,Help\\**
Finally, this line adds the path C:\Windows\assembly, enables monitoring file permission changes, and adds the exclusion \**:
C:\\Windows\\assembly,on,\\**
Add paths from templates
Integrity Monitor includes watchlist templates that contain critical files and directories that are typically watched for Windows and Linux. You can use these templates when creating new watchlists, and you can also use them to add paths to existing watchlists.
- From the Main menu, go to .
- Click the name of the watchlist.
- Click .
- Select one or more templates and click Import.
(Windows path style only) Update the Permission change type setting for multiple paths
- From the Main menu, go to .
- Click the name of the watchlist.
- Select one or more paths.
- Click Manage Change Type.
- Update the selection for Permission and click Save.
Review watchlist details
On the Watchlists page, click Expand for a watchlist to view the monitors that target the same endpoints, computer groups that the watchlist targets, and the revision number of the watchlist.
To view paths for a watchlist, click the name of the watchlist. From the details page for the watchlist, click Expand for a path to view inclusions and exclusions for that path.
To determine the watchlists that apply to particular endpoints, ask a question using the Integrity Monitor - Active Watchlists sensor.
Deploy watchlists
After you create, edit, or delete watchlists, you must deploy all watchlists to the endpoints. A Deploy Now banner appears, and Pending Deployment (new watchlists),
Needs Deployment (changed watchlists), or
Pending Deletion (deleted watchlists) appears in the Status column for the watchlist on the Watchlists page.
If you have more than one watchlist, all watchlists are deployed each time you deploy watchlists.
- Click Deploy Now in the banner or Deploy Watchlists on the Watchlists page.
- Confirm the deployment. If you have more than one watchlist, all watchlists are deployed.
Export a watchlist
You can export a watchlist to transfer it to another environment (for example, if you created the watchlist in a QA or lab environment and you want to move it to a production environment) or for backup.
Import a watchlist
You can import a watchlist into another environment (for example, you want to add the watchlist to a production environment) or for backup.
- From the Main menu, go to .
- Click Import Watchlist
.
- Click Choose File.
- Browse to the watchlist file and click Open.
- Click Import to import the file.