Configuring Patch Zero Touch Automation using Patch Lists
Zero Touch and Self-Service Patching Video
Configure Computer Groups
Tanium Computer Groups form the foundational building blocks for patch automation. It is essential to properly define which endpoints will be assigned to which maintenance windows and rings of deployment. It recommended that the naming of your computer groups is clear and consistent to make the mapping of computer group to deployment and maintenance window simple to understand.
Ring-based Computer Groups
To deploy patches in phased rings we first must define computer groups for targeting each phase. The number of rings will depend on your organization's goals, but we will use three rings for this runbook. Ring 1 should be relatively small, generally less than a few hundred endpoints or around 1% of endpoints. Ring 2 should be larger, from hundreds to thousands of endpoints or up to 10% of the entire enterprise. Lastly, Ring 3 is the remainder of the endpoints in production throughout the entire enterprise. It is recommended to specify different rings for workstations and servers.
TIP You can define ring computer groups for both Windows and Linux endpoints.
The phased deployments are critical for identifying issues in patches before deploying enterprise-wide, so consider which systems would be best to include in the various groups. Attempt to identify a good representation of the differing operating systems and system roles in the earlier rings.
TIP Well-defined ring-based deployments can be used beyond patch automation. You can re-use your rings to deploy software changes, third-party updates, policy configurations, etc.
For your ring-based computer groups, you can use existing organizational structures such as computer naming schemes, Active Directory Organizational Units, Active Directory security groups, IP subnets, or a combination of these and/or other Tanium sensors to include/exclude endpoints into appropriate groups. For this runbook, we will be using Tanium Custom Tags to opt endpoints into the various ring-based computer groups.
Create Computer Groups with Custom Tags
-
Go to Administration, Permissions, Computer Groups.
-
Click New Computer Group.
-
Name: Patch - Ring 1
-
Enable Filter: Default Filter Groups (or desired content set)
-
Filter: Custom Tags matches PatchRing1
-
Click Save.
-
-
Click New Computer Group.
-
Name: Patch - Ring 2
-
Enable Filter: Default Filter Groups (or desired content set)
-
Filter: Custom Tags matches PatchRing2
-
Click Save.
-
-
Click New Computer Group.
-
Name: Patch - Ring 3
-
Enable Filter: Default Filter Groups (or desired content set)
-
Filter: Custom Tags matches PatchRing3
-
Click Save.
-
Assign Tags to Endpoints
Deploy the custom tags to endpoints to opt them into the appropriate patch ring.
For more information on how to apply custom tags, refer to the article How to Group Computers Based on Your Organization's Needs Using Custom Tags (6/2020 update).
Create and Enforce Maintenance Windows
Maintenance Windows are used to specify when endpoints are allowed to patch and reboot. If an endpoint does not have a Maintenance Window assigned, it can patch any time there is an active Deployment. Leverage the built-in maintenance windows, [Blocking Maintenance Window] - Windows and/or [Blocking Maintenance Window] - Linux, to ensure that systems only patch during a configured and active Maintenance Window. Verify in your environment that these maintenance windows are enforced on the All Windows or All Windows Servers and All Linux, respectively.
Maintenance Windows can be as open or restrictive as business needs require. Configure the maintenance windows with the appropriate schedules and then enforce them on the targeted computer groups. For example, you could create a maintenance window for the fourth Friday of the month from 10:00 PM to 2:00 AM, and then enforce the maintenance window on your Production Servers computer group.
Ensure your maintenance windows fall within the appropriate deployment ring. For example, if an endpoint in ring 2 is supposed to install patches 10 days after patches have been released, the endpoint should have a maintenance after that time of the month and BEFORE the ring 3 threshold. You can use relative maintenance windows to align maintenance windows with patch release deferral. As an example, you can use the "Monthly, relative to another day" reoccurrence option within maintenance windows to ensure your windows always opens a set number of days after Patch Tuesday.
Use endpoint local time for maintenance window time zones to ensure endpoints install patches in their own time zone and adjust properly for any daylight-saving time shifts.
It is generally advisable for workstations to have a very broad Maintenance Window to ensure that patches are applied. End User Notifications can be utilized to allow workstations to be patched at any time while also allowing the end user to have control over when the system reboots.
Once your maintenance windows have been created, enforce the maintenance windows on the relevant computer groups.
Create Patch Lists
For zero touch patch automation, you will define a patch list that automatically approves patches after a certain threshold of days for each ring. Each organization must decide how much to defer each ring after patches are released. For this runbook, we will use the following schedule:
-
Ring 1 - patches are immediately approved upon release
-
Ring 2 - patches are approved three days after release (i.e. Friday after Patch Tuesday)
-
Ring 3 - patches are approved ten days after release (i.e. Second Friday after Patch Tuesday)
Recommended Patch List Conditions
You can use the built-in patch list [Patch Baseline Deployment] - Windows as your starting point for creating your patch lists, which includes security updates, update rollups, and service packs.
-
Go to Modules > Patch > Patch Lists.
-
Click Create Patch List.
-
Name: Patch - Ring 1
-
Platform: Windows
-
Content Set: Patch Content Set (or desired content set)
-
Superseded Patches: Select Include superseded patches when applying rules
-
Click Add Rule.
-
Rule Name: Security Updates
-
Conditions: Classification equals Security Updates
-
Click the blue check mark to apply the condition.
-
-
Click Add Rule.
-
Rule Name: Service Packs
-
Conditions: Classification equals Service Packs
-
Click the blue check mark to apply the condition.
-
-
Click Add Rule.
-
Rule Name: Update Rollups
-
Conditions: Classification equals Update Rollups
-
Click the blue check mark to apply the condition.
-
-
Click Show Preview to Continue.
-
Click Create Patch List.
-
-
Click Create Patch List.
-
Name: Patch - Ring 2
-
Platform: Windows
-
Content Set: Patch Content Set (or desired content set)
-
Superseded Patches: Select Include superseded patches when applying rules
-
Click Add Rule.
-
Rule Name: Security Updates
-
Conditions: Classification equals Security Updates
-
Conditions: Release Date equal to or older than (age) 3 days
-
Click the blue check mark to apply the conditions.
-
-
Click Add Rule.
-
Rule Name: Service Packs
-
Conditions: Classification equals Service Packs
-
Conditions: Release Date equal to or older than (age) 3 days
-
Click the blue check mark to apply the conditions.
-
-
Click Add Rule.
-
Rule Name: Update Rollups
-
Conditions: Classification equals Update Rollups
-
Conditions: Release Date equal to or older than (age) 3 days
-
Click the blue check mark to apply the conditions.
-
-
Click Show Preview to Continue.
-
Click Create Patch List.
-
-
Click Create Patch List.
-
Name: Patch - Ring 3
-
Platform: Windows
-
Content Set: Patch Content Set (or desired content set)
-
Superseded Patches: Select Include superseded patches when applying rules
-
Click Add Rule.
-
Rule Name: Security Updates
-
Conditions: Classification equals Security Updates
-
Conditions: Release Date equal to or older than (age) 10 days
-
Click the blue check mark to apply the conditions.
-
-
Click Add Rule.
-
Rule Name: Service Packs
-
Conditions: Classification equals Service Packs
-
Conditions: Release Date equal to or older than (age) 10 days
-
Click the blue check mark to apply the conditions.
-
-
Click Add Rule.
-
Rule Name: Update Rollups
-
Conditions: Classification equals Update Rollups
-
Conditions: Release Date equal to or older than (age) 10 days
-
Click the blue check mark to apply the conditions.
-
-
Click Show Preview to Continue.
-
Click Create Patch List.
-
Example for Ring 2
Verify Global Block List
Block Lists are used to create a list of patches that should not be deployed in the environment. Block Lists can contain individual patches or patches based on rules. For this runbook, the built-in [Global Block List] - Windows block list will be used to add any patches determined to negatively affect your endpoints.
Verify the block list exists and is enforced on Patch Supported Systems
-
Go to Modules, Patch, Block Lists.
-
Find the block listed named [Global Block List] - Windows. By default, this list will exclude Security Only updates and will be enforced on Patch Supported Systems.
Block Bad Patches
The phased approach outlined in this runbook allows your organization to respond quickly should any patches negatively impact your endpoints. Ideally identifying a bad patch will occur in ring 1 or ring 2 before it can affect your greater population. At any point in time, you can add a bad patch to a block list and roll back the patch on the affected endpoints.
-
Go to Modules, Patch, Block Lists.
-
Select [Global Block List] - Windows
-
Click Edit
-
Click Add Rule
-
Rule Name: KB5034441
-
Conditions: KB Articles equals KB5034441
-
Click the blue check to apply.
-
Click Show Preview to Continue
-
Click Update Block List
TIP: Add contextual information to your block list rule names, so it is clear why it was blocked. Example: KB5034441 - 2023-01 - CBS_E_INSUFFICIENT_DISK_SPACE Error on Small WinRE partition
Example
Create Deployment Templates
In this section you will configure one or more Patch deployment templates and the accompanying notification messages displayed to the user prior to restarting.
This example provides some commonly used settings for requiring a restart following patch application. Many customers will restart immediately or significantly reduce the Deadline for Restart for their lower ring groups. You can also have different deployment templates for Windows servers and Linux endpoints.
-
Go to Modules, Patch, Deployment Templates.
-
Click Create Deployment Template.
-
Click Create Install Template.
-
Name: Zero Touch Patch Automation with Restart and Notification
-
Platform: Windows
-
Content Set: Patch Content Set (or desired content set)
-
Deployment Frequency: Ongoing Deployment
-
Endpoint Local Time: Enabled
-
Download Immediately: Enabled
-
Distribute Over Time: Enabled, 2 Hours
-
Override Maintenance Windows: Disabled
-
Override Block Lists: Disabled
-
Restart: Enabled
-
Notify User: Enabled
-
Duration of Notification Period: 8 hours (or desired value)
-
Final Countdown to Deadline: 15 minutes
-
Allow User to Postpone: Enabled
-
1 hour
-
2 hours
-
4 hours
-
-
Title: Restart Required
-
Title Icon: Upload your own logo
-
Body: Please restart your computer to finish applying security updates.
-
Body Image: Upload your own logo
-
Click Save.
-
Create Deployments
Create the three deployments using the appropriate ring patch list, deployment template, and ring-based computer group.
Go to Modules, Patch, Deployments.
Create Patch - Ring 1 Deployment
-
Click Create Deployment.
-
Click Install Deployment.
-
From the top-right, click Apply Deployment Template, and select the deployment template Zero Touch Patch Automation with Restart and Notification.
-
Name: Patch - Ring 1
-
Description: Ring 1 phased patch deployment
-
Platform: Windows
-
Content Set: Patch Content Set (or desired content set)
-
-
Click Add Patch List: Select Patch - Ring 1.
-
Version: Latest
-
-
Under Endpoints to Target click Computer Groups: select Patch - Ring 1.
-
Review the rest of the deployment options which have been set by your deployment template.
-
Click Preview to Continue.
-
Click Deploy.
Create Patch - Ring 2 Deployment
-
Click Create Deployment.
-
Click Install Deployment.
-
From the top-right, click Apply Deployment Template, and select the deployment template Zero Touch Patch Automation with Restart and Notification.
-
Name: Patch - Ring 2
-
Description: Ring 2 phased patch deployment
-
Platform: Windows
-
Content Set: Patch Content Set (or desired content set)
-
-
Click Add Patch List: Select Patch - Ring 2.
-
Version: Latest
-
-
Under Endpoints to Target click Computer Groups: select Patch - Ring 2.
-
Review the rest of the deployment options which have been set by your deployment template.
-
Click Preview to Continue.
-
Click Deploy.
Create Patch - Ring 3 Deployment
-
Click Create Deployment.
-
Click Install Deployment.
-
From the top-right, click Apply Deployment Template, and select the deployment template Zero Touch Patch Automation with Restart and Notification
-
Name: Patch - Ring 3
-
Description: Ring 3 phased patch deployment
-
Platform: Windows
-
Content Set: Patch Content Set (or desired content set)
-
-
Click Add Patch List: Select Patch - Ring 3.
-
Version: Latest
-
-
Under Endpoints to Target click Computer Groups: select Patch - Ring 3.
-
Review the rest of the deployment options which have been set by your deployment template.
-
Click Preview to Continue.
-
Click Deploy.
Example from Ring 1
Review Patch Deployments
You have successfully configured zero-touch three-ring phased patch automation. You can review your ring-based deployments statuses.
-
Go to Modules, Patch, Deployments.
-
Select deployment Patch - Ring 1.
-
Review the deployment statuses.
-
Review deployment errors for any failed patches.