---
title: Malspam and CVE-2017-0199
description: Over the past few weeks, RSA FirstWatch noticed an uptick of malspam trying to exploit CVE-2017-0199 to deliver malicious payloads to victim machines.
---

- [Home](https://mydev.netwitness.com/home)
- Integrations 
    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community 
    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers 
    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners 
    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education 
    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support 
    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

![search](https://21725316.fs1.hubspotusercontent-na1.net/hubfs/21725316/Ladder/Image/search.svg)

![search](https://21725316.fs1.hubspotusercontent-na1.net/hubfs/21725316/Ladder/Image/search.svg)

![search](https://21725316.fs1.hubspotusercontent-na1.net/hubfs/21725316/Ladder/Image/search.svg)

![search](https://21725316.fs1.hubspotusercontent-na1.net/hubfs/21725316/Ladder/Image/search.svg)

# Malspam and CVE-2017-0199

- Home
 */*- [Netwitness blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
*/*- malspam and cve-2017-0199

 31 Aug, 2017

**Author:** AhmedSonbol1

Over the past few weeks, RSA FirstWatch noticed an uptick of malspam trying to exploit CVE-2017-0199 to deliver malicious payloads to victim machines. Microsoft already issued a patch to address the vulnerability in the affected Office products. Un-patched systems are still at risk of getting infected with whatever piece of malware the malspam is distributing at a given point.

The attack starts with a crafted office document. It has an embedded OLE2 link object. If opened in a vulnerable application, an HTTP(s) request is issued to retrieve a malicious HTML Application (HTA). The HTA handler, mshta.exe, is then called to execute the downloaded script which in turn downloads and execute the final payload.

In this threat advisory we will discuss how RSA NetWitness suite sees the host and network behavior of a couple of delivery documents trying to exploit CVE-2017-0199.

[First delivery document](https://www.virustotal.com/#/file/278cfc903edc1c49f49c2945fb9128fa29f720cb53e72df9f2a1ff85ba2c1ff6) was noticed on August 29th 2017. Opening the RTF document using an un-patched Microsoft Word led to the following network events:

![hawkeye-investigate.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26438i8283CEF1F7DDAFDC.png "hawkeye-investigate.png")

Let's break those network sessions. First, a request was made to download an obfuscated script:

![hawkeye-session-hta.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26437i4C3C6E532478E102.png "hawkeye-session-hta.png")

The downloaded script was handled by mshta.exe and another request followed to download an executable:

![hawkeye-session-exe.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26440i10976E423558CE6C.png "hawkeye-session-exe.png")

![hawkeye-files.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26441iB328FBB3AECF7502.png "hawkeye-files.png")

[This report](https://www.hybrid-analysis.com/sample/ec44cd0e8f8ffb77cb37810b99aa6dc5ec7e1b3df69849f078bbfdfba8f10ae8?environmentId=100) from hybrid-analysis.com suggests that the binary is a Hawkeye variant. VirusTotal scan results can be found [here](https://www.virustotal.com/en/file/ec44cd0e8f8ffb77cb37810b99aa6dc5ec7e1b3df69849f078bbfdfba8f10ae8/analysis/).

Next, the malware authenticates to an FTP server and uploads files to it. It also connects to the same server using custom TCP protocols:

![hawkeye-ftp.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26439i356CD50C8320E357.png "hawkeye-ftp.png")

![hawkeye-exfil-1.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26442i793D1EE85C2F79E5.png "hawkeye-exfil-1.png")

![hawkeye-exfil-2.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26443i8CE43466EAE4556B.png "hawkeye-exfil-2.png")

Here's the meta registered by NetWitness packets for the HTTP sessions above:

![hawkeye-investigate-http.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26444i6A2F538A479ED13B.png "hawkeye-investigate-http.png")

[Second delivery document](https://www.virustotal.com/#/file/69c39a042a35bb7e3fb4d259b7fd7cb705ee2730be226d5f3e5b1df8c5cb85dc/) was also noticed on August 29th 2017. Opening the malicious document using an un-patched Microsoft Word led to the following:

![samoastag-network.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26451i86E7893ED9001CCC.png "samoastag-network.png")

The scandata on NetWitness Endpoint is shown below:

![samoastag-scandata-1.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26445iA4F940E7490E96BF.png "samoastag-scandata-1.png")

![samoastag-scandata-2.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26446i82F2041DA54976FF.png "samoastag-scandata-2.png")

On the host side, what's typical in this infection scenario is that Winword.exe looks up the handler for the downloaded HTA file through a COM object. The handler, mshta.exe, is called to execute the malicious script.

![samoastag-mshta.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26447iF011F0F64B9F1350.png "samoastag-mshta.png")

In this case the malicious script has a powershell command to download and save the final payload to the system. So powershell.exe is created to run the command:

![samoastag-powershell.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26448i415E68792204BED8.png "samoastag-powershell.png")

The malware then proceeds to deliver its functionality:

![samoastag-samoastag.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26449i77556DF3CFD73245.png "samoastag-samoastag.png")

![samoastag-ipconfig.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26450iB6316B2D46D2C695.png "samoastag-ipconfig.png")

Delivery documents (SHA256):

- 69c39a042a35bb7e3fb4d259b7fd7cb705ee2730be226d5f3e5b1df8c5cb85dc
- 278cfc903edc1c49f49c2945fb9128fa29f720cb53e72df9f2a1ff85ba2c1ff6

Further reading:

- [https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-0199](https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-0199)
- [https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-0199](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-0199)
- [https://www.fireeye.com/blog/threat-research/2017/04/cve-2017-0199-hta-handler.html](https://www.fireeye.com/blog/threat-research/2017/04/cve-2017-0199-hta-handler.html)

 Topic:

[0 Comment](https://mydev.netwitness.com/netwitness-security-llc-blog/malspamandcve-2017-0199#comments-listing)

###### CATEGORIES

- All
- [Blog](https://mydev.netwitness.com/netwitness-security-llc-blog/tag/blog)

##### RECENT POST

[Netwitness Platform Integration with AWS Application Load Balancer Access logs](https://mydev.netwitness.com/netwitness-security-llc-blog/netwitnessplatformintegrationwithawsapplicationloadbalanceraccesslogs)

 23 Jul, 2024

[The Sky Is Crying: The Wake of the 19 JUL 2024 CrowdStrike Content Update for Microsoft Windows and We Should Take Away From It](https://mydev.netwitness.com/netwitness-security-llc-blog/715124)

 20 Jul, 2024

[DDoS using BotNet Use Case](https://mydev.netwitness.com/netwitness-security-llc-blog/ddosusingbotnetusecase)

 7 May, 2024

[NetWitness Platform](https://www.netwitness.com/)

[Acceptable Use Policy](https://www.netwitness.com/wp-content/uploads/Acceptable-Use-Policy-092022.pdf) [Privacy Statement](https://www.netwitness.com/wp-content/uploads/NetWitness-Privacy-Statement-07292024.pdf)

![NetWitness Logo](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/netwitness-logo-RGB-white%201.png)

[![LinkedIn](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/linkedin.png)](https://www.linkedin.com/company/netwitness-platform/) [![YouTube](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/Youtube.jpg)](https://www.youtube.com/@netwitness)

© 2026 NetWitness LLC. All rights reserved.

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "AhmedSonbol1",
    "url" : "https://mydev.netwitness.com/netwitness-security-llc-blog/author/ahmedsonbol1"
  },
  "dateModified" : "2026-03-20T11:51:09.410Z",
  "datePublished" : "2017-08-31T04:00:00.000Z",
  "headline" : "Malspam and CVE-2017-0199",
  "mainEntityOfPage" : {
    "@id" : "https://mydev.netwitness.com/netwitness-security-llc-blog/malspamandcve-2017-0199",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://mydev.netwitness.com/hubfs/netwitness-logo-CMYK.jpg"
    }
  }
}
```