Trojan.Win32.MIMIKATZ.AEI


 ALIASES:

HackTool:Win32/Mimikatz.F (Microsoft); RDN/Generic PUP.z. (McAfee); Troj/Mimkatz-T, Troj/Mimkatz-E, Troj/Mimkatz-E (Sophos); Trojan.Win32.Generic!BT (Sunbelt)

 PLATFORM:

Windows

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

  • 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:

1,040,384 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

27 May 2020

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 processes:

  • cmd.exe /c %User Temp%\mimikatz.exe privilege::debug sekurlsa::logonpasswords exit >%User Temp%\Pass.txt
  • %Windows%\SysWOW64\svchost.exe -k GraphicsPerfSvcsGroup
  • %Windows%\Microsoft.NET\Framework\v4.0.30319\mscorsvw.exe
  • %System%\svchost.exe -k LocalServiceAndNoImpersonation
  • %Windows%\Microsoft.NET\Framework64\v4.0.30319\mscorsvw.exe
  • %System%\sppsvc.exe
  • %System%\svchost.exe -k WerSvcGroup
  • "%System Root%\Program Files\Windows Media Player\wmpnetwk.exe"
  • %System%\svchost.exe -k NetworkService
  • %System%\wsqmcons.exe
  • taskhost.exe $(Arg0)
  • %System%\svchost.exe
  • %User Temp%\mimikatz.exe %User Temp%\mimikatz.exe privilege::debug sekurlsa::logonpasswords exit
  • %System%\schtasks.exe /delete /f /TN "Microsoft\Windows\Customer Experience Improvement Program\Uploader"

(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).. %Windows% is the Windows folder, where it usually is C:\Windows on all Windows operating system versions.. %System% is the Windows system folder, where it usually is C:\Windows\System32 on all Windows operating system versions.. %System Root% is the Windows root folder, where it usually is C:\ on all Windows operating system versions.)

Autostart Technique

This Trojan registers itself as a system service to ensure its automatic execution at every system startup by adding the following registry entries:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\GraphicsPerfSvcs
ImagePath = "%SystemRoot%\System32\svchost.exe -k GraphicsPerfSvcsGroup"

Other System Modifications

This Trojan deletes the following files:

  • %Windows%\LastGood.Tmp

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

It adds the following registry entries:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\
Microsoft\Windows NT\CurrentVersion\
Svchost
GraphicsPerfSvcsGroup = "\x00"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\GraphicsPerfSvcs
Description = "Graphics performance monitor services."

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\GraphicsPerfSvcs\Parameters
ServiceDll = "%Application Data%\GraphicsPerfSvcs.dll"

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\
Microsoft\Windows\CurrentVersion\
Run
RunExec = "{malware file path and name}"

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\
Microsoft\Windows Defender
DisableAntiSpyware = "1"

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\
Control\SecurityProviders\WDigest
UseLogonCredential = "1"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\Win_Svc
MarkTime = "2020-01-28 04:49"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\GraphicsPerfSvcs
DisplayName = "GraphicsPerfSvcs"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\GraphicsPerfSvcs
Start = "SERVICE_DEMAND_START"

It modifies the following registry entries:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\ShellHWDetection
DependOnService = "\x00\x00"

(Note: The default value data of the said registry entry is {random values}.)

Dropping Routine

This Trojan drops the following files:

  • %User Temp%\mimikatz.exe
  • %Application Data%\graphicsperfsvcs.dllNew
  • %User Temp%\Pass.txt
  • %Application Data%\graphicsperfsvcs.dll
  • %User Temp%\mimidrv.sys
  • %User Temp%\mimilib.dll
  • %AppDataLocal%\Microsoft\Media Player\CurrentDatabase_372.wmdb
  • %Application Data%\graphicsperfsvcs.dllbak
  • %Application Data%\GraphicsPerfSvcs.dll

(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).. %Application Data% is the current user's Application Data folder, which is usually C:\Documents and Settings\{user name}\Application Data on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Roaming on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).. %AppDataLocal% is the Local Application Data folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Application Data on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

Other Details

This Trojan connects to the following possibly malicious URL:

  • http://ssh.{BLOCKED}i.com

This report is generated via an automated analysis system.

  SOLUTION

Minimum Scan Engine:

9.850

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

Identify and terminate files detected as Trojan.Win32.MIMIKATZ.AEI

[ 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 3

Delete this registry value

[ Learn More ]

Important: Editing the Windows Registry incorrectly can lead to irreversible system malfunction. Please do this step only if you know how or you can ask assistance from your system administrator. Else, check this Microsoft article first before modifying your computer's registry.

  • In HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Svchost
    • GraphicsPerfSvcsGroup = "\x00"
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\GraphicsPerfSvcs
    • Description = "Graphics performance monitor services."
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\GraphicsPerfSvcs\Parameters
    • ServiceDll = "%Application Data%\GraphicsPerfSvcs.dll"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run
    • RunExec = "{malware file path and name}"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender
    • DisableAntiSpyware = "1"
  • In HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\SecurityProviders\WDigest
    • UseLogonCredential = "1"
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Win_Svc
    • MarkTime = "2020-01-28 04:49"
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\GraphicsPerfSvcs
    • DisplayName = "GraphicsPerfSvcs"
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\GraphicsPerfSvcs
    • Start = "SERVICE_DEMAND_START"

Step 4

Restore these modified registry values

[ Learn More ]

Important:Editing the Windows Registry incorrectly can lead to irreversible system malfunction. Please do this only if you know how to or you can seek your system administrator's help. You may also check out this Microsoft article first before modifying your computer's registry.

  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\ShellHWDetection
    • From: DependOnService = "\x00\x00"
      To: DependOnService = ""{random values}""

Step 5

Search and delete these components

[ Learn More ]
There may be some components 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%\mimikatz.exe
  • %Application Data%\graphicsperfsvcs.dllNew
  • %User Temp%\Pass.txt
  • %Application Data%\graphicsperfsvcs.dll
  • %User Temp%\mimidrv.sys
  • %User Temp%\mimilib.dll
  • %AppDataLocal%\Microsoft\Media Player\CurrentDatabase_372.wmdb
  • %Application Data%\graphicsperfsvcs.dllbak
  • %Application Data%\GraphicsPerfSvcs.dll

Step 6

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

Step 7

Restore this file from backup only Microsoft-related files will be restored. If this malware/grayware also deleted files related to programs that are not from Microsoft, please reinstall those programs on you computer again.

  • %Windows%\LastGood.Tmp


Did this description help? Tell us how we did.