Allowing Tanium Client downloads from Internet URLs

The URL expressions that you configure on the Allowed URLs page enable Tanium Clients to successfully run content that requires file downloads from Internet URLs. For example, a package that you deploy through an action, or a sensor that you include in a question, might run a script that requests a file download. The Client API uniquely identifies the download by URL, including file name. For security, the Client sends a message to the Tanium Server, which checks the requested URL against its lists of package file URLs and allowed URLs. The URLs of package files are known URLs that the package author specified. You use the allowed URLs to account for dynamic URLs, such as URLs that a Client script computed. If the URL does not match either list, the request fails.

The first time the Tanium Server handles a Tanium Client file download request that passes the allowed URLs check, the Server downloads the file and stores a temporary package file and metadata so that it can distribute the file to endpoints. For more information, see File distribution. The allowed URLs configuration includes settings that affect how often the Server checks for changes to the requested URL files and how often the Server clears temporary files.

Note: Allowed URLs read permission is required to view allowed URLs configurations. Allowed URLs write permission is required to create, modify, or delete allowed URLs configurations. The Administrator reserved role has these permissions.

The Tanium Server and Tanium Module Server also access Internet URLs to download content. If your enterprise network uses SSL intercept technologies, such as man-in-the-middle (MITM) proxies, you must configure them so that they do not prevent the servers from downloading files from these locations. For more information, see Internet URLs or Additional URLs.

View allowed URLs

  1. From the Main menu, go to Administration > Permissions > Allowed URLs.

    The page displays the settings that are described in Allowed URL settings.

  2. (Optional) To displays the identifier for each allowed URL, click Customize Columns Customize columns and select ID.
  3. (Optional) Enter a text string in the Filter items field to filter the grid by URL Expression.

Add allowed URLs

  1. From the Main menu, go to Administration > Permissions > Allowed URLs.
  2. Click New URL Expression.
  3. Configure the following settings and click Save.
    Table 1. Allowed URL settings

    Setting

    Description

    URL

    Specify a URL.

    To allow multiple files from a base URL, select Treat the above text as a regular expression and specify the regular expression (regex). For example, the following regex allows any download from www.microsoft.com:

    CODE
    http\:\/\/www\.microsoft\.com\/.*

    Note that the value is case sensitive. For example, the regex https\:\/\/192\.0\.2\.1\/abc\.csv allows https://192.0.2.1/abc.csv but not https://192.0.2.1/ABC.csv. The regex to allow both files is https\:\/\/192\.0\.2\.1\/abc|ABC\.csv.

    When Tanium Clients initiate a download that passes this check, the Tanium Server downloads the file so that it can distribute it to Clients through the linear chain.

    Download Interval

    (Optional) Select Check for changes after and specify an interval at which the Tanium Server checks the URL for changes to the requested file. The default is every six hours. If the check indicates there are changes to the file, the Server updates its copy of the file and restarts the expiration clock. For URL definitions that specify a regular expression, the Server maintains a timer for each match.

    Expiration

    (Optional) Select Clean up downloaded files after and specify the interval for clearing stale files. The default is seven days. This means that the Tanium Server deletes files that it has not downloaded and that Tanium Clients have not requested in the past seven days. If a Client subsequently requests the URL, the Server downloads it again and resumes the update checks. For URL definitions that specify a regular expression, the Server maintains a timer for each match.

    Tip: To troubleshoot issues that relate to clearing stale files, see Download catalog cleaner log or Download catalog cleaner log.

Edit allowed URLs

  1. From the Main menu, go to Administration > Permissions > Allowed URLs.
  2. Select an allowed URL configuration and click Edit.
  3. Update the settings that Allowed URL settings describes and click Save.

Delete allowed URLs

  1. From the Main menu, go to Administration > Permissions > Allowed URLs.
  2. Select an allowed URL configuration and click Delete Edit.

Export or import allowed URLs

Export allowed URLs

Export allowed URLs as a file in the format required for your workflow:

  • CSV

    You can use any application that supports CSV format to display the same allowed URL attributes (columns) as the Console Allowed URLs grid shows and then customize the display. For example, you can use Microsoft Excel to create charts based on allowed URL attributes.

  • JSON

    You can export multiple allowed URL configurations as a JSON file. Exporting configurations is useful if you want to import them into another Tanium environment. For example, you might test allowed URLs in a lab environment to ensure that they work as intended before importing them into your production environment. You must be assigned a role with the Export Content permission to export a JSON file. If you have Import Signed Content permission, you can then import the file into another Tanium Server. The Administrator reserved role has export and import permissions.

Perform the following steps to export allowed URLs:

  1. From the Main menu, go to Administration > Permissions > Allowed URLs.
  2. (Optional, CSV exports only) To add or remove attributes (columns) for the CSV file, click Customize Columns Customize Columns in the grid and select the attributes.
  3. Select rows in the grid to export only specific allowed URLs. If you want to export all allowed URLs, skip this step.
  4. Click Export Export.
  5. (Optional) Edit the default export File Name.
    Note: The file suffix (.csv or .json) changes automatically based on the Format selection.
  6. Select an Export Data option: All allowed URLs in the grid or just the Selected allowed URLs.
  7. Select the file Format:
    • List of Allowed URLs - CSV

    • Allowed URL Definitions - JSON (requires Export Content permission)

  8. Click Export.

    The Tanium Server exports the file to the downloads folder on the system that you used to access Tanium Console.

Import content files

You must be assigned a role with Import Signed Content permission to import content files through the following steps.

  1. (Non-Tanium-provided content only) Digitally sign the content file and ensure a public key is in place to validate the signature. For more information, see Authenticating content files.
    Note: You do not have to generate keys or signatures for Tanium-provided solutions. Tanium signs this content before making it available, and the associated public key is distributed to the Tanium Server key store during the Server installation process.

    If you plan to import a file that another user signed, you can first perform an integrity check on the file. For more information, see Verify content file signatures.

  2. From the Main menu, go to any of the following Administration pages:
    • Configuration > Solutions
    • Permissions > Filter Groups
    • Under Content, select Sensors, Packages, or Saved Questions
    • Under Actions, select Scheduled Actions, All Pending Approvals, or Actions I Can Approve
  3. Select an Import option based on the source of the content:
    • Import > Import Files: Perform one of the following steps to select one or more files:

      • Drag and drop files from your file explorer.

      • Click Browse for File, select the files, and click Open.

    • Import > Import URL: Enter the URL in the Import URL field, and click Import.

  4. For each file, expand Expand the File name, review the content to import, and select resolutions for any conflicts with existing content. For more information, see Resolve import conflicts.
  5. If you want to overwrite existing content set assignments for all imported objects with the default Tanium-defined assignments, select Include content set overwrite. By default, Include content set overwrite is cleared and the Tanium Server preserves the existing content set assignments.
  6. Click Begin Install.

Copy allowed URL details

Copy information from the Allowed URLs page to your clipboard to paste the information into a message, text file, or spreadsheet. Each row in the grid is a comma-separated value string in the content that you copy.

  1. From the Main menu, go to Administration > Permissions > Allowed URLs.
  2. Perform one of the following steps:
    • Copy row information: Select one or more rows and click Copy Copy.
    • Copy cell information: Hover over the cell, click Options Options, and click Copy Copy.