Indexing file systems

Index creates an index of local file systems, computes file hashes, and gathers file attributes and magic numbers in an SQLite database on the endpoint managed using Tanium Client.

Global Index configurations

You can configure Global Index settings as Index configurations in Tanium Client Management > Configuration Management. Index configurations that you assign in Tanium Client Management configure Index on endpoints managed using Tanium Client at a global level, and are assigned per computer group.  This enables you to configure multiple different profiles to meet the needs of your organization.

Index configurations set global Index settings, while individual solutions that leverage Index control the data they receive from Index with subscriptions.

An endpoint managed using Tanium Client can only have a single active Index configuration. If an endpoint matches the target criteria for multiple configurations, the configuration with the highest priority takes precedence.

Index configurations enable you to define the following Index settings:

  • Maximum Index Database Size

  • Index and Hashing Blockout Windows

  • Index Exclusions

Note: Legacy Threat Response Index exclusions are treated as global and these exclusions exclude paths from indexing by Index as a whole, which can cause blind spots for other solutions that use Index. You should migrate these exclusions to an Index Configuration in Tanium Client Management.

Index subscriptions

Index is a service that is shared between many Tanium solutions. Each solution leverages a subscription to interact with Index. Each solution registers a subscription with Index that directs Index on:

  • Paths to scan (scope)

  • Data to gather (inclusions, exclusions, hashing, etc.)

  • Scan frequency

Index uses these subscriptions to determine which paths to Index, and which data to send to each solution. If no subscriptions are registered, Index does not walk the disk.

Note: If a subscription includes a path that is also excluded in the active Index Configuration, the Index Configuration takes precedence, and the path is not indexed.

Index scoping

A scope defines the parameters of an Index scan. Each scope has a single scan origin that acts as the starting point of the scope. This can be a single directory, drive, or all drives. If a system has two drives, and you request 'all drives', Index creates two scopes, one for each drive. These scopes are registered with Index by the subscription for each solution and is updated if a configuration change is made for the Index subscription for a solution.

When a scope is removed due to an update to or removal of a subscription, Index checks if any other subscriptions are registered for that scope. If a scope no longer applies, Index removes the data for that scope from the Index database.

Walk the file system

Index builds an initial database for a system by walking the file system during its initial scan. After the initial scan, Index periodically completes additional scans to ensure data accuracy and integrity. The walk frequency is controlled by the subscriptions from Tanium solutions that leverages Index data, such as Asset SBOM, Reveal, or Threat Response.

Index records two types of data about files:

  • File Metadata: Examples include file creation time, path, and size

  • File Content Properties: Examples include file hash, MIME type, and magic number.

After the initial scan for any scope is completed, subsequent scans:

  • Identify and remove deleted files from the database.

  • For files in scope, compare file modification time and last digested time values. If the scan frequency defined by the subscription has elapsed or the modified time is more recent from the last digested time, Index will scan the file and update its database.

High Priority Paths

High Priority Paths are unique subscriptions registered by Threat Response. For more information on how High Priority Paths differ from traditional subscriptions, review Create filters.

Manage Index exclusions

Exclusions use regular expressions to exclude paths from indexing and enable you to search for more complex patterns and further constrain the scope of the search. For example, (if|ip)config(\.exe)?$ matches ifconfig, ipconfig, ifconfig.exe, and ipconfig.exe.

Global exclusions apply to all solutions that use Index, and are created and managed in the Index Configurations in Tanium Client Management. For more information, see Managing Client settings and Index configurations.

Exclusions that you add in solutions such as Integrity Monitor or Reveal are not visible in Client Management; make sure to view the exclusions in each solution to understand the full list of exclusions that apply.

Exclusions that you define in Integrity Monitor only apply to the Integrity Monitor Index Subscription. For more information, see Path exclusions.

Exclusions that you define in Reveal only apply to the Reveal Index Subscription. For more information, see Reveal endpoint settings.

You can no longer create Index exclusions in Threat Response. Such exclusions have been migrated to Index Configurations in Tanium Client Management. Any pre-existing exclusions defined in Threat Response also apply globally. For example, if a file is excluded in Threat Response, that file is excluded completely from Index, regardless of the settings in Reveal or Integrity Monitor.

Note: Exclusions prevent Index from including any indicated files in the Index database. However, Index still reads the metadata of excluded files in some situations, such as when the file exists within a high priority path.

When you add a new exclusion for a path that Index has already indexed, existing records for that path are not removed immediately. If the path is still covered by an active scan scope, Index prunes the previously-indexed records the next time that scope's regular walk runs. If the path is no longer covered by any active scan (for example, if an entire subscription or scope is removed), Index instead relies on age-based pruning: records older than CX.index.DigestMaxAgeDays are pruned on an interval controlled by CX.index.PeriodicPruneStaleIntervalHours. For more information, see Customize Index endpoint settings.

Note: Age-based pruning is suppressed while an endpoint is in a low-disk-space state, and pruning a record does not necessarily shrink the index.db file on disk immediately. Deleted rows can free internal database space without reducing the file size until a database maintenance (VACUUM) operation occurs. To reliably reduce the on-disk file size, reset the Index database rather than relying on pruning alone. For more information, see Managing disk space.

Customize Index endpoint settings

Customize Index configuration settings to provide functionality and database parameters. Making changes to Index settings can cause performance impacts.

To change the value of a setting, use the TaniumClient config command:

./TaniumClient config set CX.index.<setting name> <value>

Alternatively, you can use Tanium Interact to issue a question, analyze the question results, and determine which endpoints require administrative action and deploy actions to those endpoints. To target endpoints managed using Tanium Client, issue a question in Interact. In the Question Results grid, select the rows for the endpoints that require the action, and click Deploy Action. From the Deploy Action page, use the Deployment Package search box typeaheads to select packages. Select the Modify Tanium Client Setting or Modify Tanium Client Setting [Non-Windows] package. For the Windows package, REG_SZ is string, and REG_DWORD is int. For the Non-Windows package, the type is either string or numeric. For ValueName provide the fully-qualified name of the setting; for example, CX.index.MaxHashSizeMB. Provide a value. Configure a Deployment Schedule and Targeting Criteria. Click Deploy Action. For more information, see Deploying actions and playbooks in Console and Interact.

Table 1. Index endpoint settings

Setting

Value

Description

MaxHashSizeMB

INT

The maximum file size in MB to hash. (Default: 32)

VolumeDiscoveryMaxDriveSizeGB

INT

By default Index does not scan volumes with used space >20TB. If index is requested to scan a large path explicitly, for example a high priority path, it scans that path regardless of size. (Default: 20k)

MaxZipSizeMB

INT

Index extracts ZIP archives into memory. If the uncompressed size is larger than the provided value, Index does not extract and index the archive. (Default: 32 MB)

Note: Do not set CX.index.MaxZipSizeMB = 0 without understanding the impact on other Tanium modules in the environment. For example, this causes Tanium Reveal and Tanium SBOM to not have visibiity into zip file contents. Similarly, setting CX.index.ZipRecursionLimit = 0 has the same effect.
ScanFrequencyJitterPercent

INT

Adds a random offset to the next scan start time, calculated as a percentage of the scan frequency. Prevents Index scans on multiple endpoints from starting at the same time after simultaneous Force Start Scan actions. Set to 0 to schedule the next scan at the exact scan frequency. Value range: 0-100. (Default: 20)

ZipRecursionLimit

INT

Recursion limit for how deep to extract and index within ZIP archives. (Default: 10)

DigestMaxAgeDays

INT

The maximum age, in days, of a database record for a path that is no longer covered by any active scan scope before Index prunes it through age-based pruning. Age-based pruning is suppressed while an endpoint is in a low-disk-space state. (Default: 3)

PeriodicPruneStaleIntervalHours

INT

How often, in hours, Index checks for and prunes database records that have exceeded DigestMaxAgeDays. (Default: 2)