Searching for Exchange Server Exploit Web Shells with Tanium

Searching for Exchange Server Exploit Web Shells with Tanium

By Danny Sweet, with special thanks to Jim Kelly who helped provide content for this article.

Microsoft has recently identified a zero-day exploit that affects on-premises Exchange Servers, more details on that specific exploit are available here. In support of identifying this exploit, Volexity provided a set of YARA rules here that can be used to search for web shells on Exchange servers related to the targeted attacks being seen. 

Tanium Threat Response allows for native consumption of those YARA rules so you can hunt for these web shells in an automated fashion. The Tanium Endpoint Security team has also created a set of Tanium Signals based on the data provided in several places to help identify these attacks, which can be found in the Endpoint Security Discussion group on the Tanium Community site.

Attached are the three YARA rules (scroll down to article comments and expand to see all 3) that can be configured to search in the common directories they can be found in. Import the YARA rules and then go to the search scope and add the following directories to scan against:

C:\Exchange\FrontEnd\HttpProxy\owa\auth\ C:\inetpub\wwwroot\aspnet_client\system_web\ C:\inetpub\wwwroot\aspnet_client\

You can create a group of computers with Exchange installed to target for deployment to ensure we are only running these YARA rules on relevant systems. Reach out to your TAM if you need any assistance with setting up this group.

Here’s a visual depiction of the upload and configuration of File Path Scope for these YARA rules: