Carbon Black & VMware Announce Expanded Partnership to Secure the Software-Defined Data Center (SDDC) Learn more

APTs May Be Sexy, But Don’t Forget About Adware

adware11
Mike-SconzoV2
February 3, 2016 / Mike Sconzo

While “APTs” are sexy, they are not the only threat organizations face. Another threat that many, if not all, organizations are facing is adware. In this post we’ll take an in-depth look at some PUP/adware that has been around for a while. In this post we’ll explore one sample in our data set. (NOTE: We found 185 other samples that exhibit similar behavior.)

This piece of adware we’ll tackle today arrives in a validly signed NullSoft installer. Valid signatures are pretty common with PUP. Needless to say, just because software has a valid signature doesn’t mean it belongs in your environment.

signature.png

A few things about the signature should stand out. The “Name” looks a bit odd, as does the lack of “E-mail” and “Signing time.”

It looks equally suspicious in Carbon Black:

Screen Shot 2016-01-14 at 10.18.14 AM.png

To get through the execution you’d have to be brave enough to click on the following “Accept” button:

install.png

When running the sample through Carbon Black we get an execution chain of:

Screen Shot 2016-01-14 at 10.31.20 AM.png

The sample drops another file (befcfbhddd.exe), which in turns calls wmic.exe. Since the initial file (ca6884685f44aed2dd4733d8845bf233.exe) is just an installer, we’ll turn our attention to the befcfbhddd.exe, which is dropped by several samples but not all. This binary is responsible for profiling the system and network communication. Profiling is done by running wmic.exe with SELECT SerialNumber FROM Win32_BIOS as the command line. Other profiling actions include looking at what web browsers and versions are installed, OS version, and MAC address. All of that information is then sent/leaked back to the app company including the IP address of the system it was run on and other system variables. This type of behavior is very common amongst PUP, as profiling a system provides valuable insight to environment and user behavior.

A sample request can be seen below:

network traffic.png

From a network analysis perspective, this sample is interesting for several reasons. A couple are: the faked user-agent string, and that the server says it’s returning a HTML document but instead other data is returned.

There are several ways to find this type of behavior in your environment. A list of hashes of both installers and the dropped file are at the end of this write up (as well as the domains that these samples contacted.)

In addition, there are various Carbon Black queries you can run to detect this specific sample and other similarly suspicious behaviors. The queries also help highlight why focusing on dynamic behaviors vs. static attributes can help find additional instances in an enterprise, and why hunting with more general queries can provide some interesting results.

Carbon Black Queries

  • Find all binaries signed by this Publisher (note: there are 40 of the 185 binaries that don’t contain any publisher information)
    • digsig_publisher:”trusted apPs dDD”
  • Find most dropped executables (note: may not be a very performant query)
    • childproc_name:befc*.exe
  • Find all processes spawning wmic.exe
    • childproc_name:wmic.exe
  • Find all processes that don’t have Company Name metadata and are signed
    • -company_name:* digsig_result:signed

Hostnames

  • srv[.]desk-top-app[.]info
  • srv[.]serverdatasrv[.]com
  • static[.]revenyou[.]com

Dropped files

  • 0462fc1773e56cba4ca1da813b2cd9ed
  • 1ba4f8759b322b4d2312fc6ec1fce2e6
  • 1cff0697fa68186f8024c7818b46ed13
  • 27ee3f9d710210e8231d4c17ad2415f1
  • 315c41475cb35257a03bb2b8d58db2a2
  • 361974d04aa43a4ff520afbf48ba2c27
  • 3a376991f319ec436d8c913a4e4a6350
  • 3f9e04c5d2cd11b81140b4f6d12450e7
  • 46fcf91282cdad6ebc4ad58b1acea4cb
  • 612effc6857b5d4fcd1214bbb3883cb9
  • 6de05239a0e4e50eac3729f0f1d53305
  • 826d36ae0dba6daae84400f4c82b97d8
  • 8738b1b47f842df3e33f3a6b07f9a4cc
  • 979a4282a04c8e2d5166333be2361943
  • 9b2032a80e0770bc11a1bcb06fa501cc
  • ab6ba4bb8676170a42913ff568585409
  • c046a83a3983eb6193d5d7a69dd04e5b
  • d01b1f1abe6592f9dde1a3d6f58bd8bb
  • d8fd8fbb71695812342e628ed6343841
  • dce5c3b995be247252d03a0cff8494a1
  • e39a2fe07c7f90dfd4d20ce9fe97fb2f

Installers

Click here to view Outbrowse Installers

While malware should certainly be a focus, adware can leak sensitive information and be a potential attack vector. Often, adware can exploit existing vulnerabilities and be part of a larger attack campaign. Just because software begins as adware doesn’t mean it will stay as adware. Organizations need to get their hygiene in order. Adware is a major component of that.

TAGS: adware / APTs / Carbon Black / detection / malware / queries / Response

Related Posts