Downloading Linux patches in an air-gapped environments

When your Tanium Server is in an air-gapped environment, the server cannot download patches from the Internet. Instead, you must download patches to your local repository and configure Tanium Patch to scan and download using the repository.

CAUTION:

Do not click Initialize Endpoints from the Help > Support page. Otherwise, all the changes that you make to the external packages in the following procedure are deleted. Also, do not send requests to the following routes:

  • POST /v1/jobs/all

  • POST /v1/jobs/sync-external-file-references

Download Linux CVE metadata

Use the Download Airgap Utility to download Linux CVE metadata. The Tanium Server uses this data to parse advisory details, CVE mappings, and package versions that resolve vulnerabilities.

  1. From the Main menu, go to Modules > Patch > Scan Management and then click Airgap Configuration.
  2. Download the Airgap Downloader utility. This utility is primarily used for Windows air-gapped environments but you can also use the utility to download Linux CVE metadata.
    • If you previously enabled Airgap Configuration, click Download Utility to download the airgap-downloader.exe utility.

    • If you do not see the Download Utility button, complete the following steps:

      1. Select Enable Offline CAB file.

      2. In the Alternate Patch File Location field, enter a dummy URL. This alternate location is used for Windows air-gapped environments and does not apply to Linux air-gapped environments. However, you still need to provide a value to continue to the next step.

      3. Click Save. The Download Airgap Utility section appears.

      4. Click Download Utility.

  3. Populate a text file with the file addresses of the Linux patch metadata.
    1. Create a urls.txt file.
    2. From the Main menu, go to Administration > Content > Packages.
    3. Search for and select Patch - External File References – Linux.
    4. For each file that you want to include, copy the File Address field to the urls.txt text file; one address per line.
  4. Download the Linux patch metadata.
    1. Copy the urls.txt and airgap-downloader.exe files to a Windows computer that can access the Internet.
    2. Open a command prompt to that directory.
    3. Run the following command to download the package files from sources contained in urls.txt: airgap-downloader.exe download_files --no_rename
      Note: If the urls.txt and airgap-downloader.exe files are not in the same directory, you must also include the --urls_source option.

      The command downloads the files that are defined in the urls.txt and generates a results.zip archive that contains the following contents:

      • The downloaded files

      • A manifest results.txt

    4. Copy and extract the contents of the results.zip file to an air-gapped computer that can access the Tanium Console. For example, you can copy the contents to a flash drive, insert the drive into the air-gapped computer that is running the Tanium Server, and then transfer the files.

Modify the Patch - External File References – Linux package

By default, the Patch - External File References – Linux package contains external URL references to all the Linux patch metadata. Modify the File Address field for all the files in the package so that the fields do not point to an external URL.

  1. On the air-gapped computer where you extracted the results.zip file, open Tanium Console.
  2. From the Main menu, go to Administration > Content > Packages.
  3. Search for and select Patch - External File References – Linux.
  4. Click Edit Mode.
  5. In the Files section, click Delete trash for every file.
  6. Click Add File > Local Files and then click Browse for Files.
  7. Select the Linux files that were extracted from the results.zip. After you upload the files, notice that the File Address field includes the file name only and does not include an external URL.
  8. Click Save.

Recreate the Required Files - Linux configuration

Recreate the Required Files – Linux configuration to initialize the use of the updated Patch - External File References – Linux package.

  1. From the Main menu, go to Shared Services > Endpoint Configuration > Configurations.
  2. Search for and select Required Files – Linux.
  3. Click Delete.

After a few minutes the file is recreated.

Add local repositories

Add your locally hosted repositories that the Tanium Server can contact and then target the computer groups with the air-gapped endpoints. Tanium Patch uses these repositories to scan for and download packages that you can use to patch Linux endpoints. For more information, see Add and target Linux repositories.

Configure scans for air-gapped environments

Create a scan configuration to target Linux endpoints that are air-gapped and ensure that these endpoints are not targeted by other scan configurations.

  1. From the Main menu, go to Modules > Patch > Scan Management > Scan Configurations.
  2. Click Create Scan Configuration and complete the fields with the following settings.
    • Configuration Technique: Select Tanium Scan.

    • Repositories: Add the local repositories that you previously configured.

  3. Click Create Scan Configuration. The configuration is created, and the Scan Configuration details page appears.
  4. In the Targeting section, click Select Computer Groups and target the group of air-gapped Linux endpoints.
  5. Unenforce the default [Tanium Scan] - Linux scan configuration from Linux endpoints that are air-gapped.
    1. From the Main menu, go to Modules > Patch > Scan Management > Scan Configurations.
    2. Select [Tanium Scan] - Linux.
    3. In the Targeting section, remove the computer groups that include air-gapped Linux endpoints.

What to do next

Verify that you are getting scan results from endpoints and then create patch deployments as needed.