Reference: Example questions in Interact
Review the following examples to learn about the kinds of questions that Tanium Interact enables you to issue to endpoints. The examples show questions in valid Tanium syntax, but you can ask the same questions in natural language if Tanium Ask is enabled in your environment.
The following examples show common questions. You can add filters to the from clause of these questions in cases where not all endpoints return useful results and you want to see fewer rows in the Question Results grid to make it easier to scan. Common reasons for filtering include:
-
Endpoint-specific results
Targeting a specific endpoint is useful if the get clause of a question includes sensors that return many rows in the Question Results grid. For example, the question Get IP Address and Logged In Users from all machines produces as many rows as there are endpoints managed using Tanium Client in your network. To view results only from a specific endpoint, add a target filter that identifies the endpoint, such as from all machines with Computer Name equals "<hostname>", where <hostname> is the computer name.
-
OS-specific results
If the sensors in a question are intended only for endpoints that run a specific operating system (OS), you can use the Is <OS> equals true filter to return results only from those endpoints. For example, the Registry Value Data sensor applies only to Windows endpoints, and non-Windows endpoints would return results that are not useful, such as N/A on Linux. In this case, you can specify from all machines with Is Windows equals true to return results only from Windows endpoints.
-
Entity type-specific results
You can limit question results to endpoints managed using Tanium Client, using from all machines. If you configure an entity provider, such as Tanium Connector for Microsoft Intune, you can use from all entities to returns results from all managed endpoints, including both endpoints managed using Tanium Client and endpoints managed using Tanium Connector for Microsoft Intune.
Example questions
Review the following example questions.
How can I get endpoint results based on management method?
You can use the Provider Type, Provider Name, and Entity Type sensors to return results from certain types of managed endpoints, such as endpoints managed using Tanium Client or endpoints managed using Tanium Connector for Microsoft Intune.
|
Entity Provider |
Provider Type value |
Provider Name value |
Entity Type value |
|---|---|---|---|
|
Tanium Client |
Tanium Client |
Tanium |
Computer |
|
Tanium Endpoint Management for Mobile |
Device Management |
Device Management Computer (for macOS) Device Management Mobile Device (for iOS and iPadOS) |
Computer (for macOS) Mobile Device (for iOS and iPadOS) |
|
Tanium Endpoint Management for Operational Technology |
Operational Technology |
<configured-entity-provider-name> |
Operational Technology Device |
The following question returns all mobile devices, such as those ingested by the Tanium Connector for Microsoft Intune entity provider:
Get Computer Name and Provider Name and Provider Type and Entity Type from all entities with Entity Type equals Mobile Device
The following question returns all computers or workstations, such as those managed by Tanium Client:
Get Computer Name and Provider Name and Provider Type and Entity Type from all entities with Entity Type equals Computer
The following question returns all mobile devices ingested by Tanium Connector for Microsoft Intune:
Get Computer Name and Provider Name and Provider Type and Entity Type from all entities with Provider Type equals Microsoft Intune
The following questions returns all devices managed using Tanium Client:
Get Computer Name and Provider Name and Provider Type and Entity Type from all entities with Provider Type equals Tanium Client
Get Computer Name and Provider Name and Provider Type and Entity Type from all entities with Provider Name equals Tanium
The following question returns all mobile devices ingested by the Tanium Connector for Microsoft Intune instance named Example Connector for Microsoft Intune:
Get Computer Name and Provider Name and Provider Type and Entity Type from all entities with Provider Name equals Example Connector for Microsoft Intune
How can I get a list of running services on endpoints?
On the Question Results page, the following question returns one row for each unique service that is running on any Tanium Client managed endpoint in your environment. For each row, the Running Service column shows the service name and the Count column shows the number of endpoints where the service is running.
Get Running Service from all machines
The following question returns additional details about each service, such as its status and startup mode:
Get Service Details from all machines
How can I get a list of running processes on endpoints?
On the Question Results page, the following question returns one row for each unique process that is running on any endpoint managed using Tanium Client in your environment. For each row, the Running Processes column shows the process name and the Count column shows the number of endpoints where the process is running.
Get Running Processes from all machines
The following question returns additional details about each process, such as its path and ID. The get clause uses a parameterized sensor that requires you to enter two parameters: Hashing Algorithm and Hostname or IP address. In this example, the parameter values are SHA256 and 192.168.0.1.
Get Process Details[SHA256, 192.168.0.1] from all machines
How can I see Windows Registry keys and values?
The following questions use sensors that apply only to Windows endpoints.
To view registry values, issue a question with the parameterized sensor Registry Value Data, which requires the <registry key path> and <value-name> parameters in the following format:
Get Registry Value Data[<registry key path>, <value-name>] from all machines
The following example shows the question after you enter specific parameter values and add a targeting filter for Windows endpoints.
Get Registry Value Data[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion, CommonFilesDir] from all machines with Is Windows equals true
You use similar question syntax to determine if a registry key value exists on endpoints:
Get Registry Key Exists[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion, CommonFilesDir] from all machines with Is Windows equals true
How can I get a list of open ports?
The following question returns the open ports on each Tanium Client managed endpoint:
Get Computer Name and Open Port from all machines
How can I get user authentication information?
The following question returns users who are signed in to Tanium Client managed endpoints and who have the string Administrator in their user name:
Get Logged In Users contains Administrator from all machines
The following question identifies each endpoint and the user who is signed in to the Tanium Client managed endpoint:
Get Computer Name and Logged In Users from all machines
The following question returns users who are signed in to Windows endpoints and the dates when they signed in. For endpoints where no user is signed in, the Local User Login Dates sensor returns the last user who signed in.
Get Local User Login Dates from all machines with Is Windows equals true
The following question returns users who are signed in to Tanium Client managed endpoints that run any OS and returns the current date on the endpoints:
Get Logged In Users and Client Date from all machines
The following question returns the same information as the preceding question except that, for Tanium Client managed endpoints where no user is signed in, the Last Logged In User sensor returns the last user who signed in.
Get Last Logged In User and Client Date from all machines
The following question returns users who are signed in to Tanium Client managed endpoints and returns other session information, such as session states. The User Sessions sensor applies only to Windows and macOS endpoints.
Get User Sessions from all machines
The following question returns users and groups who are considered administrators on non-Windows endpoints that have Tanium Client installed:
Get Local Administrators from all machines
The following question returns users and groups that are members of the local Administrators group on Windows endpoints.
Get AD Query - Local Administrators from all machines with Is Windows equals true
How can I get sign-in information for service accounts?
The following question returns the names of accounts under which services are configured to run, but excludes the default accounts, including LocalSystem, LocalService, and NetworkService.
Get Service Login Names from all machines
How can I get certificate information?
The following questions use the sensor Certificate Details, which is supplied by Tanium Certificate Manager. The sensor returns information about all scanned certificates, including the source, location, subject, issuer, validity dates, expiration status, key and signature algorithms, and thumbprints. The Not Before and Not After values are in UTC.
The following question returns information about all scanned certificates on all endpoints:
Get Certificate Details from all machines
The following question returns information about certificates on Windows endpoints:
Get Certificate Details from all machines with Is Windows equals true
The following question returns information about certificates on Linux endpoints:
Get Certificate Details from all machines with Is Linux equals true
The following question returns information about certificates on Tanium-managed endpoints:
Get Certificate Details from all machines with Is Managed equals true
The following question returns all available details for certificates that have expired:
Get Certificate Details having Certificate Details:Expiration Status equals Expired from all machines
The following question uses the Computer Name and Certificate Expiry sensors to return only the computer name, source, location, and expiration status for certificates that have expired:
Get Computer Name and Certificate Expiry having Certificate Expiry:Expiration Status equals Expired from all machines
How can I detect all running Oracle instances within a Linux environment?
The following question includes Running Processes contains ora_pmon in the from clause to ensure that you see results only from endpoints that are running Oracle instances. Without that filter, the Question Results page would return results for every endpoint because the question includes the Computer Name sensor.
Get Computer Name and Running Processes contains ora_pmon from all machines with Running Processes contains ora_pmon
How can I get asset information?
The following question returns identification and architecture details for Tanium Client managed endpoints.
Get Computer Name and "Computer Serial Number" and IP Address and MAC Address and BIOS Name and CPU Details and Chassis Type from all machines
Example dashboard questions
Reviewing the list of predefined saved questions in categories and dashboards is a good way to learn how to use questions and get meaningful results. The following examples show a few predefined questions that are organized by <category> > <dashboard>.
Security > Data Leakage
The questions in the Data Leakage dashboard return information about established connections that a prohibited process opened or that connect to a prohibited destination:
Get Computer Name and Non-Approved Established Connections from all machines with Non-Approved Established Connections matches ".*:.*"
Get Non-Approved Established Connections from all machines with Non-Approved Established Connections matches ".*:.*"
Security > Proactive Network Security
The questions in the Proactive Network Security dashboard return information that you can use to assess the security of your network:
Get Computer Name and IP Address and MAC Address from all machines with "DHCP Enabled?" contains True
Get Firewall Status contains disabled from all machines with Firewall Status contains disabled
Get DNS Server from all machines
Get Computer Name and Open Share Details from all machines with all Open Share Details not contains No shares
Security > Wireless Network Security
The questions in the Wireless Network Security dashboard return information that you can use to assess the security of wireless networks in your environment:
Get Computer Name and Username and Wireless Network Connected SSID from all machines with all Wireless Network Connected SSID not matches ".*:No Connection:.*"
Get Wireless Networks Visible from all machines
Get Wireless Network Details from all machines
Get Hosted Wireless Ad-Hoc Networks from all machines with Hosted Wireless Ad-Hoc Networks contains started
Get Wireless Networks Using WEP from all machines with Wireless Networks Using WEP contains wep
Get Unencrypted Wireless Networks from all machines with Unencrypted Wireless Networks contains open
Security > Workstation USB Write Protection
The questions in the Workstation USB Write Protection dashboard return information about which workstations have USB storage devices that are in write-protected mode. That mode prevents users from copying data from the workstation to a USB device.
Get Computer Name and Username from all machines with ( Operating System not containing "server" and USB Write Protected containing "False" )
Get Computer Name and Username from all machines with ( Operating System not containing "server" and USB Write Protected containing "True" )