Analysis by: John Anthony Banes

 PLATFORM:

Windows

 OVERALL RISK RATING:
 DAMAGE POTENTIAL:
 DISTRIBUTION POTENTIAL:
 REPORTED INFECTION:
 INFORMATION EXPOSURE:

  • Threat Type: Trojan

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW

This Trojan arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

  TECHNICAL DETAILS

File Size: Varies
Memory Resident: Yes
Initial Samples Received Date: 17 Apr 2019

Arrival Details

This Trojan arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

Installation

This Trojan adds the following folders:

  • %User Temp%\_MEI{random}

(Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

It drops the following files:

  • %User Temp%\_MEI{random}\Crypto.Cipher._AES.pyd
  • %User Temp%\_MEI{random}\Crypto.Cipher._ARC4.pyd
  • %User Temp%\_MEI{random}\Crypto.Cipher._DES.pyd
  • %User Temp%\_MEI{random}\Crypto.Cipher._DES3.pyd
  • %User Temp%\_MEI{random}\Crypto.Hash._MD4.pyd
  • %User Temp%\_MEI{random}\Crypto.Hash._SHA256.pyd
  • %User Temp%\_MEI{random}\Crypto.Random.OSRNG.winrandom.pyd
  • %User Temp%\_MEI{random}\Crypto.Util._counter.pyd
  • %User Temp%\_MEI{random}\Crypto.Util.strxor.pyd
  • %User Temp%\_MEI{random}\Microsoft.VC90.CRT.manifest
  • %User Temp%\_MEI{random}\_ctypes.pyd
  • %User Temp%\_MEI{random}\_hashlib.pyd
  • %User Temp%\_MEI{random}\_mssql.pyd
  • %User Temp%\_MEI{random}\_multiprocessing.pyd
  • %User Temp%\_MEI{random}\_socket.pyd
  • %User Temp%\_MEI{random}\_ssl.pyd
  • %User Temp%\_MEI{random}\bz2.pyd
  • %User Temp%\_MEI{random}\ii.exe.manifest
  • %User Temp%\_MEI{random}\msvcm90.dll
  • %User Temp%\_MEI{random}\msvcp90.dll
  • %User Temp%\_MEI{random}\msvcr90.dll
  • %User Temp%\_MEI{random}\pyexpat.pyd
  • %User Temp%\_MEI{random}\python27.dll
  • %User Temp%\_MEI{random}\pywintypes27.dll
  • %User Temp%\_MEI{random}\select.pyd
  • %User Temp%\_MEI{random}\unicodedata.pyd
  • %User Temp%\_MEI{random}\win32api.pyd
  • %User Temp%\_MEI{random}\win32event.pyd
  • %User Temp%\_MEI{random}\win32pipe.pyd
  • %User Temp%\_MEI{random}\win32wnet.pyd
  • %User Temp%\_MEI{random}\Include\pyconfig.h
  • {current directory}\m2.ps1

(Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

It adds the following processes:

  • wmic ntdomain get domainname
  • net localgroup administrators
  • net group "domain admins" /domain
  • powershell.exe -exec bypass "import-module {current directory}\m2.ps1"

Other Details

This Trojan connects to the following possibly malicious URL:

  • http://ip.{BLOCKED}2.pl/raw
  • http://info.{BLOCKED}y.com/e.png
  • http://{BLOCKED}p.com
  • http://{BLOCKED}.{BLOCKED}.130.126/ddd.exe

It adds the following scheduled tasks:

  • Task Name:{random characters}
    Task Executed: cmd.exe /c %Windows%\{random characters}.exe

(Note: %Windows% is the Windows folder, where it usually is C:\Windows on all Windows operating system versions.)

  SOLUTION

Minimum Scan Engine: 9.850
SSAPI PATTERN File: 2.153.00
SSAPI PATTERN Date: 07 Mar 2019

Step 1

Before doing any scans, Windows 7, Windows 8, Windows 8.1, and Windows 10 users must disable System Restore to allow full scanning of their computers.

Step 2

Note that not all files, folders, and registry keys and entries are installed on your computer during this malware's/spyware's/grayware's execution. This may be due to incomplete installation or other operating system conditions. If you do not find the same files/folders/registry information, please proceed to the next step.

Step 3

Restart in Safe Mode

[ Learn More ]

Step 4

Deleting Scheduled Tasks

The following {Task Name} - {Task to be run} listed should be used in the steps identified below:

  • Task Name: {random characters}
  • Task to be run: cmd.exe /c %Windows%\{random characters}.exe

For Windows 2000, Windows XP, and Windows Server 2003:

  1. Open the Windows Scheduled Tasks. Click Start>Programs>Accessories>
    System Tools>Scheduled Tasks.
  2. Locate each {Task Name} values listed above in the Name column.
  3. Right-click on the said file(s) with the aforementioned value.
  4. Click on Properties. In the Run field, check for the listed {Task to be run}.
  5. If the strings match the list above, delete the task.

For Windows Vista, Windows 7, Windows Server 2008, Windows 8, Windows 8.1, and Windows Server 2012:

  1. Open the Windows Task Scheduler. To do this:
    • On Windows Vista, Windows 7, and Windows Server 2008, click Start, type taskschd.msc in the Search input field, then press Enter.
    • On Windows 8, Windows 8.1, and Windows Server 2012, right-click on the lower left corner of the screen, click Run, type taskschd.msc, then press Enter.
  2. In the left panel, click Task Scheduler Library.
  3. In the upper-middle panel, locate each {Task Name} values listed above in the Name column.
  4. In the lower-middle panel, click the Actions tab. In the Details column, check for the {Task to be run} string.
  5. If the said string is found, delete the task.

Step 5

Search and delete this file

[ Learn More ]
There may be some files that are hidden. Please make sure you check the Search Hidden Files and Folders checkbox in the "More advanced options" option to include all hidden files and folders in the search result.
  • {current directory}\m2.ps1

Step 6

Search and delete this folder

[ Learn More ]
Please make sure you check the Search Hidden Files and Folders checkbox in the More advanced options option to include all hidden folders in the search result.  
  • %User Temp%\_MEI{random}

Step 7

Scan your computer with your Trend Micro product to delete files detected as HackTool.Win32.Mpacket.SM. If the detected files have already been cleaned, deleted, or quarantined by your Trend Micro product, no further step is required. You may opt to simply delete the quarantined files. Please check the following Trend Micro Support pages for more information:


Did this description help? Tell us how we did.