Quarantining endpoints
Quarantine a Windows, Linux, or macOS endpoint that shows evidence of compromise or other suspicious activity. Use Threat Response to apply, remove, and test for quarantine.
Quarantine enables you to create custom profiles that contain rules that define the parameters to use for quarantining endpoints. After you create a profile, you can generate packages that you can deploy to targeted endpoints to quarantine them. The following diagram illustrates the basic workflow for deploying quarantine profiles:
You can also use quarantine profiles to use as part of a response action or reaction. In this case, you can generate quarantine packages that are used when reactions match on an endpoint or as a response action that you initiate as a response to an alert.
When an endpoint is quarantined, by default the only approved traffic allowed on the quarantined endpoint includes:
-
Between Tanium Client on the quarantined endpoint and Tanium Server over port 17472.
-
Between the quarantined endpoint and DHCP or DNS servers to obtain and resolve IP addresses.
-
Direct Connect connections to the endpoint.
-
Live Response destinations.
Threat Response includes a safety feature that automatically reverses a quarantine policy. After a quarantine policy is applied, the effect of the policy is logged. If the endpoint is able to communicate with Tanium Server, Threat Response logs the successful application of the policy. If a policy prevents the endpoint from communicating with Tanium Server, Threat Response backs out the policy and saves logs in the action folder.
Before you begin
-
You must have a Content Administrator account for Tanium Console. For more information, see Managing access permissions through roles.
-
Identify the traffic that is required when an endpoint is under quarantine.
-
You must have a lab endpoint on the target operating system (Windows, Linux, or Mac) you can use to test the quarantine policies. You must be able to physically access the machine or to access it using RDP (Windows) or SSH (Linux, Mac).
-
You must have access to the endpoint that you want to quarantine through a sensor or saved question in the Tanium Console.
-
Beginning with Threat Response 4.6, the Quarantine packages are included with Threat Response. Do not install the IRQuarantine solution on environments where releases of Threat Response 4.6 or later is installed.
-
By default an attempt to quarantine an endpoint with a response action times out after seven days. If you are using quarantine as a response action, you can set the Action Expiration Time to a custom value when the response action is created. If you deploy quarantine packages to endpoints using Tanium Interact or the Tanium Console, the action uses the value of the package timeout.
Endpoint operating system requirements
Supported Windows versions
-
Windows 7 (SP1)
-
Windows 8
-
Windows 8.1
-
Windows 10
-
Windows 11
-
Windows Server 2003
-
Windows Server 2008
-
Windows Server 2012
-
Windows Server 2016
-
Windows Server 2019
-
Windows Server 2022
-
Windows Server 2025
-
Windows Server 2012R2 or later
-
Windows Server 2008R2 (SP1)
Supported Linux OS versions
-
AlmaLinux 8.x
-
AlmaLinux 9.x
-
AlmaLinux 10.x
-
Oracle Linux 7.8
-
Oracle Linux 8.3
-
Oracle Linux 9.0
-
Oracle Linux 10.0
-
RedHat/CentOS 5 IPTables on SYSV
-
RedHat/CentOS 6 IPTables on SYSV
-
RedHat/CentOS 7 Firewalld on Systemd (Note: A reboot is required on RedHat/CentOS 7.1 endpoints after removing quarantine.)
-
RedHat/CentOS 8
-
RedHat/CentOS 9
-
RedHat/CentOS 10
-
Rocky Linux 8.x
-
Rocky Linux 9.x
-
Rocky Linux 10.x
-
Ubuntu 12, 14 UFW on Upstart
-
Ubuntu 15, 16, 18, 20, 22, 24, and 26 UFW on Upstart/Systemd
CentOS Stream 8 and 9 variants of CentOS are not currently supported.
Supported macOS versions
-
OS X 10.9 Mavericks
-
OS X 10.10 Yosemite
-
OS X 10.11 El Capitan
-
macOS 10.12 Sierra
-
macOS 10.13 High Sierra
-
macOS 10.14 Mojave
-
macOS 10.15 Catalina
-
macOS 11.0 Big Sur
-
macOS 12 Monterey
-
macOS 13 Ventura
-
macOS 14 Sonoma
-
macOS 15 Sequoia
-
macOS 26 Tahoe
OSX 10.8 - Mountain Lion and earlier releases are based on ipfirewall (IPFW) and are not supported.
Create quarantine rules
Quarantine rules are the building blocks of profiles. Each profile that you create contains one or more rules. Quarantine rules define allowed traffic direction, allowed IP addresses, ports, and protocols. All other traffic is blocked. These rules are in the same format for Windows, Linux and macOS. If you do not define any quarantine rules, the default values are used, which gives the quarantined endpoint access only to the Tanium Cloud and permits DNS/DHCP traffic. If you previously provided a Windows IPsec policy file, the IPsec policy overrides the custom quarantine rules.
- From the Main menu, go to . Click the Rules tab.
- Click Create. Provide a name and description for the rule.
- Select the Direction for the rule. You can select either In or Out. The value you select specifies whether incoming or outgoing traffic is allowed.
- Select the Protocol for the traffic. You can select ICMP, TCP, or UDP. If you specify ICMP, the ICMP protocol is allowed to communicate to and from the specified addresses. This limitation is because IPSec does not filter ICMP Type/Codes. The filtering is done by advfirewall. When using quarantine rules to block the ICMP protocol, the MTU negotiation packages can become blocked when the size of the MTU package on the endpoint is larger than the router allowed MTU size. Normally the router will see a packet that is too large and send an ICMP packet to the endpoint to identify that the packet is too large and advises lowering the permissible MTU size. If the negotiation packet is not able to reach the destination due to quarantine, the endpoint can become unresponsive. The endpoint is still is quarantined but loses communication with the Tanium Server. Disabling ICMP traffic while quarantined should only be done after proper testing.
- Enter an IP Address for the rule. Enter any IPv4 address or you can use ANY for all.
- Enter a CIDR. Valid values are 0-32 or, if ANY is used in IP Address, undefined. This is the subnet mask that represents the number of bits available to the IP address. Undefined is the same as 32 and uses the IP address.
- (TCP or UDP protocols only) Enter a Port. Valid values are 0-65535. Ranges are not currently supported, only individual ports or all ports can be defined. Setting the number as 0 allows all ports.
Create a quarantine profile
A profile enables you to make a package that contains configuration information and rules that you can deploy to targeted endpoints. When you create a profile you can define the criteria for the scope of a quarantine within the Threat Response workbench. You can import existing taniumquarantine.dat files into a profile. If you import an existing taniumquarantine.dat file into a profile, ensure that all configurations are specified in the correct syntax.
Quarantine uses the legacy taniumquarantine.dat file if the quarantine package is called directly. This file is ignored by quarantine actions that are issued by the Threat Response workbench and Threat Response API (for example in a reaction or response action). All quarantine actions issued from the Threat Response workbench or THR API (for example in a reaction or response action) ignore the taniumquarantine.dat file and use the appropriate quarantineprofileconfig_#.dat file. If no profile is specified in these cases, quarantine uses the default profile that is specified in the Threat Response Quarantine Workbench.
A syntax example is provided for each setting in the following steps.
Delete a profile
To delete a profile, from the Main menu, go to and select a profile. Click Delete. When a quarantine profile is deleted, the reactions that use that profile revert to using the default quarantine profile on the next intel deployment, regardless of whether the quarantine packages are generated after the deletion or not. If the quarantine packages are generated, but intel is not deployed, the reactions or response actions will fail. For this reason, deploy intel before generating the packages.
Duplicate a profile
You can duplicate a profile to create a version of the profile that is tailored to a specific scenario. The name of the duplicated profile has the time stamp that the original profile was duplicated to the profile name. To duplicate a profile, from the Main menu, go to and select a profile. Click Duplicate.
Edit a profile
To edit a profile, from the Main menu, go to and select a profile. Click Edit.
Export a profile
To export a profile, from the Main menu, go to and select a profile. Click Export. The profile is exported to the downloads directory of the web browser in JSON format.
Export all profiles
To export all profiles, from the Main menu, go to . Select the profiles that you want to export and click Export All. The profiles are exported to the downloads directory of the web browser in JSON format.
Import a profile
To import a profile, from the Main menu, go to . Click Import. Drag and drop the profile that you want to import in either JSON or DAT format. Alternatively, you can browse to the profile. Click Import.
Generate Quarantine Packages
When you have created a profile and assigned rules to the profile, you can Generate Packages to create quarantine packages that you deploy to targeted endpoints.
|
Package Name |
Description |
|---|---|
| Threat Response - Quarantine Endpoint [Windows] |
The Threat Response - Quarantine Endpoint [Windows] package uses Windows IPsec policies to quarantine the endpoint. You can also add custom rules and options. See Reference: Create custom quarantine rules for more information.
Note: You cannot use Windows IPsec Quarantine on networks where a domain IPsec policy is already enforced.
Check that the IPsec Policy Agent service is running on the endpoints Optionally, you can verify that the IPsec Policy Agent is listed as a running service in Windows.
|
| Threat Response - Quarantine Endpoint [Linux] |
The Threat Response - Quarantine Endpoint [Linux] package quarantines endpoints that are running Linux-based operating systems that support the use of the iptables module.
Important: You cannot use Threat Response - Quarantine Endpoint [Linux] on endpoints where SELinux is enforcing without first adding a policy for Tanium Quarantine. Deploy the Apply Linux Quarantine SELinux Policy package to endpoints that are enforcing SELinux policies to add a policy for Tanium Quarantine. When the policy for Tanium Quarantine is added to an endpoint that is enforcing SELinux, you can quarantine the endpoint using the Apply Linux IPTables Quarantine package.
Verify that endpoints are not using Network Manager Threat Response - Quarantine Endpoint [Linux] checks to ensure that the iptables module is installed and disables the use of the Network Manager module on endpoints that are targeted for quarantine. You can check for Linux-based endpoints that are running Network Manager by using the Linux Network Manager sensor to determine if Network Manager is enabled. In Interact, type network manager to find the sensor. This sensor has no parameters. |
| Threat Response - Quarantine Endpoint [Mac] |
The Threat Response - Quarantine Endpoint [Mac] package quarantines endpoints that are running Mac OS X operating systems that support the use of Packet Filter (PF) rules. This package creates packet filter rules that isolate endpoints by eliminating communication with network resources. PF software must be installed on endpoints that are targeted for quarantine. |
- From the Main menu, go to . Click Generate Packages.
- You can view the status of the package creation from Each time you generate quarantine packages a task is listed that is named Generate Quarantine Packages.
- When you have generated packages that contain the quarantine parameters that you have defined in the profile that you used to generate the package, you can deploy the packages to endpoints. Follow the steps in Test quarantine on endpoints to deploy the packages to endpoints.
Test quarantine on endpoints
By default, the quarantine on the endpoint blocks all communication except with the Tanium Server.
Action folders are located under the Tanium Client installation folder on the endpoint, usually Downloads\Action_XXXX.log.
View quarantined endpoints
You can easily and immediately see what endpoints are quarantined from the Overview page of the Threat Response workbench. You can remove endpoints from quarantine from the Overview page of the Threat Response workbench. For more information about removing endpoints from quarantine, see Remove endpoints from quarantine.
Remove endpoints from quarantine
You can remove endpoints from quarantine from the Overview page of the Threat Response workbench. In the Quarantined Endpoints section of the Overview page of the Threat Response workbench, view the endpoints that are currently quarantined. Select one or more endpoints to remove from quarantine and click Remove from Quarantine.
Alternatively, you can deploy the Threat Response - Unquarantine Endpoint [Windows], Threat Response - Unquarantine Endpoint [Linux], or Threat Response - Unquarantine Endpoint [Mac] package to the endpoint to remove the quarantine from the computer. Use RDP (Windows), SSH (Mac/Linux), the Ping utility, or another method to confirm the removal of the quarantine and the normal communication of the test computer.
Reference: Create custom quarantine rules
You can define quarantine rules and options by either editing a quarantine profile and generating packages, or by selecting options in Tanium Console when you deploy a quarantine action. Using this technique only impacts standard platform actions. For most quarantine operations, use the Threat Response workbench or response actions.
- Edit a profile and generate packages
-
Quarantine profiles define the rules and options that the quarantine packages use. When you generate packages, Threat Response builds the taniumquarantine.dat file in each quarantine package from the Default profile. A taniumquarantine.dat file that you upload to a package by hand is replaced the next time that you generate packages. For an example taniumquarantine.dat file, see Reference: Custom rules examples.
-
From the Main menu, go to .
-
Edit the Default profile, or edit or create another profile, to define your quarantine rules and options. For more information, see Edit a profile. To start from an existing taniumquarantine.dat file, see Import a profile.
-
Click Generate Packages to apply the profile changes to the quarantine packages. For more information, see Generate Quarantine Packages.
Add custom quarantine rules that allow connectivity for Direct Connect and Live Response to the profile to avoid issues collecting artifacts during an investigation.
-
- Select options in user interface when you deploy Quarantine actions
-
When you deploy the Threat Response - Quarantine Endpoint [Windows], Threat Response - Quarantine Endpoint [Linux], or Threat Response - Quarantine Endpoint [Mac] actions, you can define the quarantine rules and options as a part of that action. You can also select a profile by file name. For more information, see Test quarantine on endpoints.
Reference: Custom rules and options
Custom rules format
The format for custom rules is not case sensitive. Put each rule on a new line. Trailing white spaces are not supported. This format is used for both the configuration file and in the user interface.
Direction:Protocol:IPAddress:CIDR:Port
#Comment
- Direction
-
Valid values: IN or OUT Specifies whether incoming or outgoing traffic is allowed.
- Protocol
-
Valid values: ICMP, TCP, UDP If you specify ICMP, the ICMP protocol is allowed to communicate to and from the specified addresses. This limitation is because IPSec does not filter ICMP Type/Codes. The filtering is done by advfirewall.
When using quarantine rules to block the ICMP protocol, the MTU negotiation packages can become blocked when the size of the MTU package on the endpoint is larger than the router allowed MTU size. Normally the router will see a packet that is too large and send an ICMP packet to the endpoint to identify that the packet is too large and advises lowering the permissible MTU size. If the negotiation packet is not able to reach the destination due to quarantine, the endpoint can become unresponsive. The endpoint is still is quarantined but loses communication with the Tanium Server. Disabling ICMP traffic while quarantined should only be done after proper testing.
- IPAddress
-
Specifies any IPv4 address or you can use ANY for all.
- CIDR
-
Valid values: 0-32 or, if ANY is used in IPAddress, undefined. Subnet masks in dotted decimal format are not permitted in the input file. Undefined (blank) is same as /32 and uses the IPAddress only.
- Port
-
Valid values: 0-65535 or undefined Leave undefined (blank) to permit all ports. Ranges are not currently supported, only individual ports or all ports can be defined.
Note: When using the Custom Quarantine Rules parameter in the package, the total characters should be 1100 or less. If you need more characters, you can use a custom DAT file.
Reference: Custom rules examples
Example for Custom Quarantine Rules field
IN:UDP:10.0.0.21:32:161
OUT:UDP:10.0.0.21:32:162
This example defines two rules:
-
Allow SNMP queries (UDP Port 161) from another device at 10.0.0.21.
-
Allow SNMP traps (UDP Port 162) to be sent to a device at 10.0.0.21.
Note: This example demonstrates the use of parameter options in the package and not a taniumquarantine.dat file.
taniumquarantine.dat sample file
For DAT files, each entry must be on one line; you cannot use pipe (|) characters to combine lines. Trailing white spaces are not supported.
#Allow ICMP out to a specific IP Address
OUT:ICMP:192.168.10.15:32:0
#Allow ICMP in from a specific IP Address
IN:ICMP:192.168.20.10:32:0
#Allow ICMP out to any IP Address
OUT:ICMP:ANY::0
#Allow ICMP in from any IP Address
IN:ICMP:ANY::0
#Allow Kerberos to DC (10.10.1.10) - to allow SMB access
OUT:TCP:10.10.1.10::88
#Allow TCP port 80 in from a specific /24 subnet
IN:TCP:192.168.1.0:24:80
#Allow UDP port 161 in from a specific IP Address
IN:UDP:10.0.0.21:32:161
#Allow HTTPS (tcp 443) out to a specific /16 subnet
OUT:TCP:192.168.0.0:16:443
OPTION:ALLDNS:TRUE
OPTION:CURRENTDNS:FALSE
OPTION:ALLDHCP:TRUE
OPTION:TANIUMSERVERS:TRUE
OPTION:CHECKTS:TRUE
OPTION:NOTIFY:This Device has been Quarantined
#Allow Live Endpoint/Direct Connect from LAN to Tanium Module Server (192.168.10.9)
OUT:TCP:192.168.10.9:32:17475
#Allow Live Endpoint/Direct Connect from remote endpoint to Zone Server (172.16.31.31)
OUT:TCP:172.16.31.31:32:17486
#Allow Live Response from LAN to NAS (\\192.168.10.135\Tanium\THR-Live-Response)
OUT:TCP:192.168.10.135:32:22
#Allow Live Response from LAN to NAS (\\192.168.10.135\Tanium\THR-Live-Response)
OUT:TCP:192.168.10.135:32:443
#Allow Live Response from LAN to NAS (\\192.168.10.135\Tanium\THR-Live-Response)
OUT:TCP:192.168.10.135:32:445