Downloading Windows patches in an air-gapped environment
When your Tanium Server is in an air-gapped environment, the server cannot download patches from the Internet. Instead, you must configure Tanium Patch to install patches from an alternate location. You have two options:
-
Patch air-gapped environments using Offline CAB
Note: Offline CAB supports patching Windows versions earlier than Windows 11 version 22H2. For endpoints on Windows 11 version 22H2 or later, use Patch air-gapped environments using Tanium Scan for Windows.
-
If you want to configure a UNC share on a Tanium Appliance, you must add an authentication user for TDownloader as described in the Add an authentication user for TDownloader.
-
Review your firewall configuration to confirm that the necessary ports are open for remote sources. For more information, see Manage remote systems.
Patch air-gapped environments using Tanium Scan for Windows
If you are using the Tanium Scan for Windows scan method, you must configure Tanium Scan to retrieve patches from a local WSUS server.
-
Ensure that your local WSUS server is configured to store updates locally. For more information, see Microsoft Documentation: Choose a WSUS storage strategy.
-
Configure Tanium Scan for Windows.
-
From the Main menu, go to .
-
Click Tanium Scan for Windows and then click Edit.
-
Select Enable Tanium Scan for Windows (if not already selected) and select a scan source.
-
In the Tanium Scan Source section, select Local WSUS Server to retrieve patches from a local WSUS server.
-
Enter the URL and the Content Download Port. The content download port is the port from which the Tanium Server can download patch installation files. The Tanium Server then delivers the files as part of a Patch deployment.
The default port may be 8530 or 80, depending on the WSUS server version. You can configure the WSUS server to use a custom port.
-
Choose a PEM file containing the certificate authority for the WSUS server. The certificate should be the Base64-encoded ASCII, certificate chain format.
-
-
If you want to synchronize after Microsoft releases many significant patches, select Enable Schedule Synchronization.
-
Use the arrows to select products to include in scans.
Note: Synchronize all products, regardless of which products are present in the environment. Selectively choosing products can cause gaps in critical or important patches. -
Use the arrows to select update classifications to include in scans.
Note: Select Critical Updates, Security Updates, Service Packs, and Update Rollups. -
Click Submit.
-
-
Configure WSUS server allowed URLs.
-
Add the WSUS Server URL.
-
From the Main menu, go to and click Settings
> Configuration Settings if needed.
-
In the WSUS Server Configuration section, enter the URL and click Submit. A regular expression for the URL is generated and added.
-
Click View Allowed URLs, or go to to view the entry that was added.
-
-
On the WSUS server, change the following settings:
-
Set the intranet URL for detecting updates and the statistics server to http://<WSUS server URL>:<port>.
-
Disable the Configure Automatic Updates setting.
-
-
-
Create a scan configuration that uses Tanium Scan.
-
From the Main menu, go to .
-
Click Create Scan Configuration.
-
Enter a name and description for the configuration.
-
For the Platform, select Windows.
-
For the Configuration Technique, select Tanium Scan.
-
In the Frequency field, enter a number and a time parameter.
Note: Set this value to less than three days to improve the Patch coverage metric. -
(Optional) Select Enable Random Scan Delay and enter a time to distribute the network activity.
The default is 120 minutes.
Tip: For VDI environments, set a longer scan delay, such as 480 minutes or higher, depending on the density and hardware performance of your VDI environment, to reduce the impact of the scan on the host system. -
(Optional) Select Scan only within defined window to define the scan window options, such as browser time or local time on the endpoint, how often the window repeats, and override options. For more information, see Downloading Windows patches in an air-gapped environment.
Note: The scan window specifies when a scan can start. If you enabled Random Scan Delay, scans can potentially start as late as the specified delay after the end of the scan window. For example, if a scan attempts to start one minute before the end of the scan window, but receives the full random scan delay of 120 minutes, the scan does not start until after that 120 minutes and continues to run until completion, even though the scan window is already closed. -
Click Create Scan Configuration.
-
In the Targeting section, click Select Computer Groups to add one or more computer groups.
-
-
On the WSUS server, stage and approve the patches.
-
For patches that are applicable to Windows 11 version 22H2 or later endpoints, manually synchronize the patches. For more information, see Manually synchronize patches.
Patch air-gapped environments using Offline CAB
If you are using the Offline CAB scan method, you must configure Patch to install patches from an alternate file location on an authorized local server that is accessible to the endpoints within the air-gapped environment.
-
Create a scan configuration with the Offline CAB configuration technique. For more information, see Create a scan configuration.
-
From the Main menu, go to and then click Airgap Configuration.
-
Define the alternate location for patch files on the local network.
-
Select Enable Settings for Airgap - Windows.
-
Provide an Alternate Patch File Location where all air-gapped files are staged and then click Save.
Important:-
The network location that you specify must be accessible by the Tanium Server. To use a UNC path or a credential-protected URL, configure the settings based on the Tanium Server version and operating system.
-
Tanium Server 7.5.3.3503 and later: You must configure a downloads authentication entry for the UNC path or credential-protected URL. For information about configuring a downloads authentication entry, see Enabling authentication between platform servers and remote systems.
-
(TanOS) Tanium Server earlier than 7.5.3.3503: You must configure credentials in the TanOS Tanium Operations menu. For information, see Tanium Appliance User Guide: Add an authentication user for TDownloader
-
(Windows) Tanium Server earlier than 7.5.3.3503: You must configure the Tanium Server service account to run as a Windows user with sufficient permissions. For information, see Tanium Appliance User Guide: Add an authentication user for TDownloader
-
-
Tanium does not support hidden or administrative shares.
-
-
From the Main menu, go to to verify that the configured alternate Patch file location is listed.
-
-
In the Download Airgap Utility section, click Download Utility to download the airgap-downloader.exe utility.
Note: You must run this utility on a Windows computer that can access the internet. -
In the Generate Download Manifest section, select the Include CAB File and Include MS-CVEs.dat File options and then use the filters to create a list of patches to use in the air-gapped environment. For example, you can filter on a specific patch list, or you can filter only for Windows patches released during the past month that are applicable and have not been superseded.
-
In the list that you generate, select individual patches to include, or hold the Shift key and then select multiple patches.
-
Click Download Manifest to generate a file that contains a list of URLs for patch files that you will download and use to patch the air-gapped endpoints.
A urls.txt file is downloaded to your computer. For example:
CODEhttp://download.windowsupdate.com/microsoftupdate/v6/wsusscan/wsusscn2.cab https://content.tanium.com/files/hosted_dats/MS-CVEs.dat https://content.tanium.com/files/windows-patch/wsusscn2.json -
Use the urls.txt file that you generated from the Tanium Server to download files from a computer that is connected to the internet.
-
Copy the urls.txt and airgap-downloader.exe files to a computer that is connected to the internet and open a command prompt to that directory.
-
To download the package files from sources contained in urls.txt, run:
CODEairgap-downloader.exe download_files --no_renameNote: If the urls.txt and airgap-downloader.exe files are not in the same directory, you must also include the--urls_sourceoption.The command downloads the files in the list and generates a results.zip archive that contains:
-
The downloaded files
-
A manifest results.txt
-
-
Extract the contents of the results.zip file to the root of the alternate Patch file location that you defined on the local network.
-
Verify the Offline Cab configuration
To verify that Offline Cab for airgap was configured correctly, you can confirm the following:
- Verify that the Tanium Server has the staged files:
- From the Main menu, go to .
- Select the Patch - External File References - Windows package and click Edit Selected
.
- In the Files section, click wsusscn2.cab and verify that the SHA-256 field has a non-empty hash value.
- Click MS-CVEs.dat and verify that the SHA-256 field has a non-empty hash value.
- Verify that the Windows endpoints can scan against the staged files:
- From the Main menu, go to .
- In the Scan Source Details section, verify that the hash value in the Microsoft Offline CAB File Information matches the value in step 1c.