How Tanium Can Help to Verify the Authenticity of Programs and Processes

One way that attackers commonly obscure their activities is to have malicious actions masquerading as legitimate processes and applications. As a response, defenders need to improve their detection capabilities for this kind of activity: one such solution is to generate process hashes.

Commonly used hashing algorithms that generate unique signatures of data are MD5, SHA1 and SHA256. It would great if we could simply end there, however, the hash signatures need to be validated with a service that verifies authenticity. Such a service is commonly known as a Reputation service (ReversingLabs, VirusTotal and Palo Alto Wildfire are some popular providers).

Tanium is a platform that can gather information and take action in real time, at a scale of hundreds of thousands of assets. With that in mind, we can see why Tanium is a natural fit to the problem of instantly verifying the authenticity of thousands of running processes in your environment, at scale.

Residing in the Tanium Connect module is the Reputation Service. Once this service is configured using the authentication details from one of the Reputation service providers above (ReversingLabs, VirusTotal, Palo Alto Wildfire), Tanium can send hash data for reputation analysis. Here is the workflow for verifying the reputation of running processes:


HelpVerifyAuthentici_c740c4d6-4c63-4eae-a2e3-6ac7dee7656f.png

Once Tanium starts collecting the Running Processes and their hashes, and Tanium Connect sends them to the Reputation service, you will see the enriched information in several locations across Tanium. For example, Tanium Trace and Tanium Detect can display this information.


HelpVerifyAuthentici_057ae450-faf4-4488-9965-c5a82125015e.png

The image above is from Tanium Trace. When you view process details, the process is colored according to the process reputation (Red for Malicious, Yellow for Suspicious and Green for Non-Malicious) and clicking on the process will show its reputation details (example below).


HelpVerifyAuthentici_59924111-077b-47de-9d80-37e464a4cd4c.png

As you can see, this type of insight is valuable for any defender protecting complex environments--quickly making sense of hundreds of new processes running on thousands of machines.

Below is a step by step process of setting up a reputation connection, using MD5 Hash as the algorithm and VirusTotal as the reputation service.

How to set up a Reputation connection with Tanium Connect

On the Connect Home Page, click the button to Create a new Connection and proceed to the Connection Definition page.

Give your Connection a descriptive name. I recommend calling it a combination of the data you are sending as well as the destination type, like “Running Process MD5 to Rep Service.”

In the Source dialog, choose Saved Question and select your Saved Question by name from the list. If you would like to further restrict the results of your data, you can select a Computer Group from the dropdown.


HelpVerifyAuthentici_237ad98d-c4c8-42be-b5fe-ff73230760d8.png

In the destination dialog, choose Reputation Service as your destination and configure the settings:

  • Destination Name: This is a name used by Tanium to allow you to reuse your connection settings on future configurations. Since there is only one reputation service, this field is not particularly useful for this connection. A simple “rep service” name will suffice.

  • Hash Field: This is the field in your saved question that should be forwarded to the reputation service. If your question has multiple hashes, you will need to configure multiple connections to get all the data over to the reputation service. A connection can only send a single field at this time.

  • Advanced Settings -> Hash Count (default = 1000): This controls the number of rows of data being sent to the destination at a given time. If your Tanium Module Server is   heavily taxed, you may need to lower this number to a size it can reliably support.

  • Advanced Settings -> Timeout (default = 10): This controls when the communication with the Reputation Service will timeout from no response.


HelpVerifyAuthentici_ff99b8ba-3f52-4841-a682-3393c8146d15.png

OPTIONAL: Now that your data source and destination have been defined, you can filter the data you want to send. Generally, filtering of hashes is not recommended. The Reputation Service will track hashes seen in the environment and process them over time. Do NOT use a New Items filter on your data or you will not get updated reputation data for those regularly running processes.

Configure the Connection

First configure the frequency you want to run your connection. Keep in mind that if you schedule a connection to run when many other connections are running, you run the risk of running out of server resources and your connection will fail. As a best practice, space your Connection runs far enough apart so that there is little overlap only when required.

Now that the Reputation Service is receiving hashes to process, we need to configure it with Reputation Providers to check those hashes against. For this example, we will configure the VirusTotal Reputation Source.

  • Navigate to the Reputation Data configuration page within the Connect workbench.

  • Click the configuration gear on the right side of the page near your chosen reputation provider. In this case, we will use VirusTotal.

  • Enter your VirusTotal API key and select the “Enabled” checkbox. Optionally, you can configure the batch size and number of calls made per minute to the service. Depending on your API limitations and volume of hashes to process, you will need to work through tuning this to appropriate levels. Click Save when complete.


HelpVerifyAuthentici_205d00af-f427-461d-8fbb-68279bfc6e33.png

Configuration of your Tanium environment is now complete. You may choose to allow your Connect job to run at its scheduled time or force it to run right away. Either way, once it has run successfully, you will be able to see your hash count in the Reputation Service console.

More in-depth info on configuring reputation data (including steps for configuring other services) at: Connect overview (tanium.com)

Validation

Now that hash data is flowing regularly from Tanium into the Reputation Service, we can see the counts of hashes processed in the Reputation Service console. As hashes are fed into the Reputation Service, it will forward those hashes to the configured reputation providers automatically and record the responses. This allows other Tanium modules, like Threat Response or Integrity Monitor, to automatically display reputation information for any hashes shown in the console.

  • Navigate to the Reputation Data console within Connect.

  • In the configured reputation provider, you should see a count of hashes sent for processing.

  • Over time, these hashes will be sent to the reputation provider multiple times to ensure the reputation has not changed.


HelpVerifyAuthentici_9fad88e6-d2bc-4f30-a920-2dc07b295c62.png

OPTIONAL: If any malicious hashes have been found, they can be seen under the Malicious Reputations navigation tab.

To learn more about Connect and managing connections, check out: Managing connections (tanium.com)

Suggested Data Points

A number of Tanium Sensors offer hash information about your environment. Below is a curated list of Saved Questions that will gather some useful hash information to forward to the Reputation Service:

Sensor

Notes

Get Trace Executed Process Hashes from all machines

3 hour lookback, run every hour

Get Loaded Modules with Hash from all machines

MD5 (or other as applicable), loaded modules is a superset that will include all running processes. So there is no need to run that query separately as it would only contain duplicates.

Get Index Query File Hash Recently Changed from all machines

`4D5A*` file magic number (Microsoft exe/dll) 3 hour lookback, run every hour 300 max

Get Autorun Files from all machines

MD5 (or other as applicable), typically unchecked. Checking "include binaries with Microsoft as a publisher" increases active hashing on endpoints and could open you up to false positives depending on the quality of your reputation service. If a Microsoft signing cert is compromised, you will almost certainly hear about it from other resources first. Test in your organization and decide whether to include or exclude these binaries. If you are hitting max results messages, you will want to leave this unchecked.