Effective and Controlled Linux Patch Automation

Overview of Tanium Patch for Linux

Tanium Patch enables you to effectively patch your Linux endpoints across many different enterprise Linux distributions. Keeping your Linux endpoints patched reduces risk and increases your security hygiene by mitigating vulnerabilities, ensuring compliance with security policies, and maintaining the overall health of your IT environment. With Tanium Patch, your teams can implement patching strategies that match your organization's goals with minimal effort and infrastructure. Various levels of automation are available to ensure your Linux endpoints are patched effectively and at the right time.

Depending on your organization's requirements, you can implement one or more of the following approaches to patch your Linux endpoints.

  • Zero touch patch automation

  • Lite touch patch automation

  • Manually scheduled patch deployments

For each of these strategies, we will outline the recommended Tanium Patch configurations for scanning and deployments with examples. These various strategies of patching your Linux endpoints will also depend on the Linux distributions you service. The differences per distribution will be highlighted along the way to ensure that you can tailor your patching strategy to the specific requirements and characteristics of each Linux distribution.

Zero Touch Patch Automation for Linux Endpoints

Tanium Patch can be configured to perform zero touch patch automation for your Linux endpoints. The outcome of this method is to automatically patch your Linux endpoints without the need for repeatedly creating new deployments in patch cycle.

The following video covers the content of this section.

Note:

If repository snapshots are required (see

Repository Snapshots), then consider the lite touch patch automation (see

Lite Touch Patch Automation for Linux Endpoints ) or manual patch deployments (see

Manually Scheduled Patch Deployments).

Required Configurations for Zero Touch Patch Automation for Linux Endpoints

  • Computer groups

    • Patch Supported Systems

    • All On-Premises Linux

  • Two scan configurations

  • One or more deployments

  • One or more block lists (optional)

Create Required Computer Group

See Create a computer group

  1. Go to Administration, Permissions, Computer Groups

  2. Click New Computer Group.

    1. Name: All On-Premises Linux

    2. Enable Filter: Enable

    3. Choose Default Filter Groups content set

    4. Filter Bar: ( Is Linux equals True and Is Cloud equals False )

Scan Configurations for Zero Touch Patch Automation

Zero Touch Tanium Scan Configuration

Configure a Tanium Scan Configuration that includes all of your targeted distributions' repositories.

  1. Go to Patch>Scan Management and click Create Scan Configuration.

  2. Enter a name and description for the scan configuration (i.e. Zero Touch Tanium Scan).

  3. Select Linux for the Platform.

  4. For Configuration Technique, select Tanium Scan.

    Note:

    Repositories must already be configured.

  5. Click Add Repository and add the repository for your distribution and version. Repeat as needed for additional repositories.

  6. Set Frequency to 1 Day.

  7. Select Enable Random Scan Delay.

  8. Set the Random Scan Delay to 120 minutes.

  9. Configure Scan Window (optional).

  10. Click Create Scan Configuration.

After creating the Zero Touch Tanium Scan configuration, scroll down to the Targeting section and click Select Computer Groups. Select the Computer Group(s) you want to target. It is recommended that you create and use the All On-Premises Linux computer group.

Zero Touch Repository Scan Configuration

It is recommended to create a scan configuration that uses the Repository Scan technique for cloud-hosted Linux endpoints and all other Linux endpoints not included in the Zero Touch Tanium Scan Configuration. The Repository Scan configuration will instruct the endpoints to use the repositories configured on endpoint for scanning and patch deployments.

  1. Go to Patch>Scan Management and click Create Scan Configuration.

  2. Enter a name and description for the scan configuration (i.e. Zero Touch Repo Scan).

  3. Select Linux for the Platform.

  4. For Configuration Technique, select Repository Scan.

  5. Select Use repositories configured on endpoint.

Note:

Alternatively, you can deselect this option and add specific repositories for your endpoints to scan against.

  1. Set Frequency to 1 Day.

  2. Select Enable Random Scan Delay.

  3. Set the Random Scan Delay to 120 minutes.

  4. Configure Scan Window (optional).

  5. Click Create Scan Configuration.

After creating the Zero Touch Repo Scan configuration, scroll down to the Targeting section and click Select Computer Groups. Select the Computer Group(s) you want to target. It is recommended that you select the Patch Supported Systems built-in computer group.

Patch Scan Priorities

Each endpoint can only have one enforced scan configuration. The targeted scan configuration with the highest priority is enforced on the endpoint.

  1. Navigate to Patch>Scan Management. Scroll down to the Linux scan configurations and click Prioritize.

  2. Drag and drop the scan configurations in the desired order, ensure that the Zero Touch Tanium Scan is highest, and the Zero Touch Repo Scan is second (if applicable).


    Effective and Controlled Linux

    Effective and Controlled Linux

Deployments for Zero Touch Patch Automation

After creating the necessary scan configurations for your Linux endpoints, the next step is to create the ongoing patch deployment for automation.

Install All Updates or All Security Updates

Tanium Patch deployments for Linux offer simple options to install all applicable patches or all applicable security patches. These options are recommended if you have a smaller number of Linux endpoints to manage and/or where patch versioning isn't required.

If you require locking dependency version, then it is recommended you use the lite touch patch automation with repository snapshots. See

Lite Touch Patch Automation for Linux Endpoints.

Tip:

Tanium recommends that you configure maintenance windows for your endpoints before proceeding with creating any deployments.

Create Deployment

  1. Go to Patch>Deployments. Click Create Deployment then click Create Install Deployment.

  2. Enter a name for the deployment (i.e. Linux - Zero Touch Patch Automation)

  3. Select Linux for the Platform.

  4. Scroll to the Deployment Details section and under Content to Deploy, select Install All Updates or Install All Security Updates.

  5. Under Endpoints to Target, select the Computer Group(s) you want to include in the deployment (i.e. All Linux)

  6. Under Deployment Type and Schedule, select Ongoing for Deployment Type.

  7. Select a Start Time and deployment time zone.

  8. Set the Distribute Over Time to 120 minutes or an appropriate value for your environment.

    Tip:

    Ensure maintenance windows are at least two hours longer than the distribute over time setting for your deployments.

  9. For Deployment Settings:

    1. Enable Download Immediately by checking the box for Download all package files immediately.

    2. Ensure Override Maintenance Windows is NOT selected.

    3. Ensure Override Block Lists is NOT selected.

  10. Select Restart for Restart After Operation (if desired).

  11. Click Preview to Continue, then click Deploy.

Tip:

Tanium Patch will only restart Linux endpoints if any patches are installed that actually require a restart.

You have configured zero touch patch automation to automatically install all updates (or all security updates) on your Linux endpoints. Your endpoints will evaluate which patches are required and install them during their configured maintenance windows. If you selected the option to restart after the deployment, then the Linux endpoint will restart if any of the installed patches require it.

You can also use Tanium Automate to make a playbook to do phased-based lite touch patch automation (see

Phased Patch Deployments with Tanium Automate).

Lite Touch Patch Automation for Linux Endpoints

Tanium Patch can be configured to perform lite touch patch automation for your Linux endpoints. The outcome of this method is to automatically patch your Linux endpoints in phases without the need for repeatedly creating new deployments each patch cycle. In addition, this lite touch method will include using repository snapshots to ensure the exact same versions of patches and dependency packages are installed across your endpoints.

The following video covers the content of this section.

Required Configurations for Lite Touch Patch Automation for Linux Endpoints

  • Two or more computer groups (i.e. QA and Production, ring 1-4)

  • Two or more repository snapshots (i.e. one for each ring/phase)

  • Two or more scan configurations (i.e. one for each ring/phase)

  • Two or more deployments (i.e. one for each ring/phase)

With these configurations in place, the lite touch process would be as follows for a patch cycle:

  • Patch cycle begins (monthly, quarterly, etc.).

  • Take a snapshot of the repositories needed.

  • Update ring 1 scan configuration to use the new snapshot. Scan configurations for all other rings will remain on the previous repo snapshot.

  • Ring 1 deployment automation installs all needed patches within maintenance windows.

  • Update ring 2 scan configuration to use the new snapshot.

  • Ring 2 deployment automation installs all needed patches within maintenance windows.

  • Repeat the previous steps for as many rings as needed.

  • Repeat the entire process at the beginning of the next patch cycle.

Repository Snapshots

To ensure the exact same versions of patches and dependency packages are installed across your endpoints, repository snapshots must be taken at the beginning of each patch cycle. Repository snapshots are then applied to Tanium Patch scan configurations.

Create Repository Snapshot

  1. Go to Patch>Scan Management, Repositories.

  2. Select the repositories that require a snapshot:

    1. Examples

    2. Rocky Linux 8 – AppStream

    3. Rocky Linux 8 – Base

    4. Rocky Linux 8 - Extras

  3. Click Create Snapshot.

  4. Enter a name for the snapshot. (i.e. 2025-03-13 Rocky8).


    Effective and Controlled Linux
    Note:

    Use standardized snapshot names that are clear. YYYY-MM-DD Distribution.

  5. Click Confirm.

  6. Allow time for the snapshot to complete.

  7. Expand each repository to review the snapshot status and ensure that the status is Success before proceeding.


    Effective and Controlled Linux

Scan Configurations for Lite Touch Patch Automation

Configure a Tanium Patch Scan Configuration for each phase or ring that includes all of your targeted distributions' repositories.

  1. Go to Patch>Scan Management, click Create Scan Configuration.

  2. Enter a name and description for the scan configuration (i.e. Lite Touch Tanium Scan – Ring 1).

  3. Select Linux for the Platform.

  4. For Configuration Technique, select Tanium Scan.

    Note:

    Repositories must already be configured.

  5. Click Use repository snapshots for deployment under Deployment Snapshots.

  6. Click Add Repository and add the repository for your distribution and version. Repeat as needed for additional repositories.

  7. Select the most recent Deployment Snapshot.


    repo snapshot
  8. Set Frequency to 1 Day.

  9. Select Enable Random Scan Delay.

  10. Set the Random Scan Delay to 120 minutes.

  11. Configure Scan Window (optional).

  12. Click Create Scan Configuration.

After creating the Tanium Scan configuration, scroll down to the Targeting section and click Select Computer Groups. Select the Computer Group(s) for your Ring 1 Linux endpoints.

Repeat the process to create additional Tanium Scan configurations for each ring or phase.

Note:

1. Some cloud-hosted Linux endpoints and/or distributions do not support repository snapshots (i.e. Amazon Linux, etc.). Use repository scan configurations for those endpoints. 2. Repository snapshots are specifically used for Tanium Patch deployments. Tanium Patch scans will continue to evaluate and report the patch status from the latest repository metadata.

Patch Scan Priorities

Each endpoint can only have one enforced scan configuration. The targeted scan configuration with the highest priority is enforced on the endpoint.

  1. Navigate to Patch>Scan Management. Scroll down to the Linux scan configurations and click Prioritize.

  2. Drag and drop the scan configurations in the desired order, ensure that the newly created configurations are high enough in priority to be applied.


    Effective and Controlled Linux

    Effective and Controlled Linux

Deployments for Lite Touch Patch Automation

Lite Touch patch automation will require creating a deployment for each ring/phase.

Install All Updates or All Security Updates

Tanium Patch deployments for Linux offer simple options to install all applicable patches or all applicable security patches.  These options are recommended when repository snapshots are in place. You can still opt to use block lists for your lite touch patch automation.

Tip:

It is recommended that you configure maintenance windows for your endpoints before proceeding with creating any deployments.

  1. Go to Patch>Deployments. Click Create Deployment, then click Create Install Deployment.

  2. Enter a name for the deployment. (i.e. Linux - Ring 1)

  3. Select Linux for the Platform.

  4. Scroll to the Deployment Details section and under Content to Deploy, select Install All Updates or Install All Security Updates.

  5. Under Endpoints to Target, select the Computer Group(s) you want to include in the deployment (i.e. Patch – Ring 1).

  6. Under Deployment Type and Schedule, select Ongoing for Deployment Type.

  7. Select a Start Time and deployment time zone.

  8. Set the Distribute Over Time to 120 minutes or an appropriate value for your environment.

    Tip:

    Ensure maintenance windows are at least two hours longer than the distribute over time setting for your deployments.

  9. For Deployment Settings:

    1. Enable Download Immediately by checking the box for Download all package files immediately.

    2. Ensure Override Maintenance Windows is NOT selected.

    3. Ensure Override Block Lists is NOT selected.

  10. Select Restart for Restart After Operation (if needed.)

  11. Click Preview to Continue, then click Deploy.

  12. Repeat the above steps to create a deployment for each ring.

Tip:

Tanium Patch will only restart Linux endpoints if any patches are installed that actually require a restart.

Note:

Tanium recommends using ongoing deployments when using repository snapshots, especially with some distributions that archive older versions of packages (i.e. Ubuntu and Rocky Linux). Using ongoing deployments with regular scans increases the success that the packages will be cached by Tanium before they are archived and removed from the vendor's repository. 


Effective and Controlled Linux

Update Scan Configuration Repository Snapshot

As you progress through your patching cycle, you will need to update each ring's scan configuration to use the newer repository snapshot.

  1. Go to Patch>Scan Management.

  2. Find your Ring 1 Scan Configuration and click the pencil Edit icon.

  3. Select the snapshot version created at the beginning of this patch cycle.

  4. Then click Confirm.

  5. Repeat these steps for each ring as part of your patching cycle.


    Effective and Controlled Linux

You have configured lite touch patch automation to automatically install all updates (or all security updates) on your Linux endpoints. Your endpoints will evaluate which patches are required and install them during their configured maintenance windows. If you selected the option to restart after the deployment, then the Linux endpoint will restart if any of the installed patches require it.

You can also use Tanium Automate to make a playbook to do phased-based zero touch patch automation (see

Phased Patch Deployments with Tanium Automate).

Manually Scheduled Patch Deployments

Customers can leverage the same process for Lite Touch Patch Automation with Repo Snapshots for manually scheduled patch deployments (see

Lite Touch Patch Automation for Linux Endpoints). Some customers or Linux endpoints may not be a good fit for patch automation. In addition, using manually scheduled patch deployments is a good way to validate processes as you move into more automation.

Follow the process for

Lite Touch Patch Automation for Linux Endpoints with the follow process changes:

  • Patch cycle begins (weekly, monthly, quarterly).

  • Take a snapshot of the repositories needed.

  • Update ring 1 scan configuration to use the new snapshot. All other rings' configurations will remain on the previous repo snapshot.

  • Schedule Ring 1 deployment to install all needed patches.

  • Update ring 2 scan configuration to use the new snapshot.

  • Schedule Ring 2 deployment to install all needed patches.

  • Repeat the previous steps for as many rings as needed.

  • Repeat the entire process at the beginning of the next patch cycle.

Phased Patch Deployments with Tanium Automate

Tanium Automate can sequence phased patch deployments along with optional pre and post deployment activities. The outcome of this method is to automatically patch your Linux endpoints in phases with predictable and verifiable sequencing each patch cycle.

The Tanium Automate playbook for phased patch deployments will be an adaptation of the lite touch method (see

Lite Touch Patch Automation for Linux Endpoints ). This will include using repository snapshots to lock dependency versions to ensure the exact same patches and their dependencies are installed across your endpoints.

Components needed

  • Maintenance Windows

  • Two or more computer groups (i.e. QA and Production, ring 1-4)

  • One or more repository snapshots (i.e. one for each ring/phase)

  • One scan configuration with a repository snapshot

  • One or more block lists (optional)

  • One Automate playbook

With these configurations in place, the phased process would be as follows for a patch cycle:

  • Patch cycle begins (weekly, monthly, quarterly).

  • Take a snapshot of the repositories needed.

  • Update scan configuration(s) to use the new snapshot.

  • Playbook automation installs all needed patches on ring 1 endpoints including any pre/post actions and/or verification steps.

  • Playbook automation installs all needed patches on ring 2 endpoints including any pre/post actions and/or verification steps.

  • Repeat the previous steps for as many rings as needed.

  • Repeat the entire process at the beginning of the next patch cycle.

Create Automate Playbook

  1. Go to Automate>Playbooks. Click Create Playbook.

  2. Name the playbook. (i.e. Phased Patch Deployment – Linux).

  3. Enter a description. (i.e. Phased Patch Deployment – Linux).

  4. Click Add Step, choose Install Patch.

  5. Enter the Step Name (i.e. Phased Patch Deployment – Linux – Ring 1).

  6. Enter the Step Description (i.e. Phased Patch Deployment – Linux – Ring 1).

  7. Click Create Deployment.

  8. Enter the name and description for the deployment (i.e. Phased Patch Deployment – Linux – Ring 1).

  9. Select Linux for the Platform.

  10. Scroll to the Deployment Details section and under Content to Deploy, select Install All Updates or Install All Security Updates.

  11. Under Endpoints to Target, select the Computer Group(s) you want to include in the deployment (i.e. Ring 1 – Red Hat Linux).

  12. Under Deployment Type and Schedule, set the Distribute Over Time to 120 minutes or an appropriate value for your environment.

  13. Under Deployment Settings, ensure that Override Maintenance Windows is NOT selected, and Override Block Lists is NOT selected.

  14. Select Restart for Restart After Operation (if needed).

  15. Click Preview to Continue, then click Apply.

  16. Set the Step Duration for your Ring 1 Patch deployment step (i.e. 72 hours).

  17. Click Apply and Add Step.

  18. Repeat the above steps to create a patch deployment for Ring 2, etc.

    Tip:

    Adjust Patch deployment step duration for each ring to match your requirements.

  19. Add any required pre/post actions and/or verifications between the patch deployments in the playbook. (optional).

  20. Click Create to save the playbook.

  21. Click the Actions menu for your playbook to Start or Schedule your playbook as needed.


    Effective and Controlled Linux

Patch Compliance Reporting and Dashboard

Whether you are using zero touch automation, lite touch automation, manual patch deployments, or some combination of all of these, it's important to be able to show your work. Many organizations are required to report their patch compliance for regulatory purposes and/or service level agreements. Tracking the patch compliance of your endpoints is built-in to Tanium.

Endpoint Management Dashboard

  1. Go to Data>Dashboards.

  2. Find and click on the Endpoint Management Dashboard.

  3. At the top left of the page, select the Computer Group drop down and select All Linux.

  4. Review the chart panels in the Operating System Patch Summary section to see various metrics on your missing patches. Click any data points to review the report data.


  5. Effective and Controlled Linux
  6. Scroll to the Compliance Reporting section of the dashboard.


    Effective and Controlled Linux
  7. The first set of panels shows the overall patch compliance. The left side shows the current state of patch compliance for your Linux endpoints. The panel on the right shows the patch compliance over the last 90 days. Use these metrics to track your effectiveness in keeping your Linux endpoints patched.

  8. Scroll down to the OS Patch Compliance – Detailed panels. You'll see more granular patch compliance showing just how far out of compliance your endpoints may be (i.e. 26-50 missing patches).

  9. You can click into any chart title or metric to see the report data behind the chart panel. You can also export the dashboards and/or reports to be shared with other people or platforms


    Effective and Controlled Linux
Note:

Patch compliance data is evaluated on latest repository metadata (i.e. patch compliance is not shown for repository snapshots).

Tanium Patch Components for Linux

Repositories

Repositories are used by Linux to install and update software. Tanium Patch uses the Linux operating system package manager to interact with repository metadata to detect which patches are installed and which patches are applicable. The default repositories for most enterprise Linux distributions are included in Tanium Patch. You can add additional repositories as needed.

Scan Configuration Techniques

Repository Scan

With the Repository Scan technique, the endpoint is instructed to scan and download patches directly from the repositories configured on the endpoint. Alternatively, you can configure which repositories the endpoints should use for scanning and patch downloads.

The Repository Scan technique does NOT leverage the Tanium client linear peer chain for metadata or patch downloads.

Note:

1. Some Linux distributions require using the Repository Scan technique such as Amazon Linux (see docs).2. Repository Scan configurations may be required for cloud-hosted VMs to meet technical and licensing requirements.

Tanium Scan

With the Tanium Scan technique, the Tanium linear peer chain is used to deliver both repository metadata and patches. This more efficient approach reduces the need for managing your own repository servers and associated firewall rules.

Tanium Scan configurations also support repository snapshots to lock in patch and dependency package versions.

Note:

1. To use Tanium Scan with Red Hat Enterprise Linux requires adding your entitlement certificate. You can optionally add additional certificates for ELS and EUS patches (login required).2. Some Linux distribution vendors require adding customer-specific repository URLs which include the customer's authorization token (i.e. SUSE/SLES).

Repository Snapshots

Tanium Patch has the capability to perform repository snapshots to capture repository metadata at a point in time. Repository snapshots can be used by customers who need to ensure the same exact versions of patches and dependencies are installed across their endpoints throughout their patching cycle.

Also consider the following regarding snapshots.

  • Linux distribution repositories that use variables must have endpoints with patch tools installed and healthy to take a successful snapshot (i.e. One or more Red Hat 9 endpoints needs to be in the environment to take snapshots of any Red Hat 9 repositories.)

  • Repository snapshots can only be taken of the current state of the repositories. It is not possible to create a snapshot of the state of repository at an arbitrary point in the past.

  • Repository snapshots are only supported for Tanium Scan technique scan configurations.

  • We recommended using ongoing deployments when using repository snapshots, especially with some distributions that archive older versions of packages (i.e. Ubuntu and Rocky Linux). Using ongoing deployments with regular scans increases the success that the packages will be cached by Tanium before they are archived and removed from the vendor's repository.

Patch Lists and Block Lists

Rather than using Tanium Patch lists for Linux patching, it is recommended to use the Install All Updates or Install All Security Updates deployment type in combination with Block Lists for patch deployments.

It is not recommended to use patch lists with Linux patch deployments for several reasons. Using release dates for patches is a common practice for patching Windows endpoints, but using this approach with Linux endpoints will cause unexpected results. Firstly, unlike the consistent release of Windows patches on Patch Tuesday, Linux patches can be released at any time of the month. Secondly, some Linux vendors do not supply release dates for some of their patches.

Thirdly, patches for Linux are made up of one or more individual packages and dependency packages. At the time of the deployment, the operating system's package manager (i.e. yum/dnf/apt/zypper) performs the dependency resolution and installs the most recent version of any dependencies. This could result in a patch with a newer release date than the patch list not being installed (i.e. kernel). Conversely, a required dependency with a newer release date than the patch list could be installed.

If you require locking dependency version, then it is recommended you use the lite touch patch automation with repository snapshots (see

Lite Touch Patch Automation for Linux Endpoints ).

Block lists can be used to prevent some patches from being installed.

Example Block List

Some customers need to block specific types of patches. An example block list would include blocking any java patch.


Effective and Controlled Linux
Note:

A block list rule that includes a dependency package may prevent a patch from being installed.

Maintenance Windows

Tanium Patch will install patches and optionally restart the endpoint when there is an active deployment and maintenance window. Maintenance windows can be configured with various scheduling options and then targeted to one or more computer groups. See Setting maintenance windows.

Note:

Target the [Blocking Maintenance Window] - Linux maintenance window to All Linux.

References