Author: Mark Joseph Manahan   

 

PWS:Win32/Lmir (Microsoft), PWS-LegMir (McAfee)

 PLATFORM:

Windows 2000, Windows XP, Windows Server 2003

 OVER ALL RISK RATING:
 DAMAGE POTENTIAL::
 DISTRIBUTION POTENTIAL::
 REPORTED INFECTION:
Low
Medium
High
Critical

  • Threat Type:
    Worm

  • Destructiveness:
    No

  • Encrypted:
     

  • In the wild::
    Yes

  OVERVIEW

Emplea la creación del shell de registro mediante la introducción de determinadas entradas de registro. Esto permite la ejecución de este malware aunque estén abiertas otras aplicaciones.

Infiltra un archivo AUTORUN.INF para que ejecute automáticamente las copias que infiltra cuando un usuario accede a las unidades de un sistema afectado.

  TECHNICAL DETAILS

File size: 33,833 bytes
File type: EXE
Memory resident: Yes
INITIAL SAMPLES RECEIVED DATE: 21 de июля de 2007

Instalación

Crea las siguientes copias de sí mismo en el sistema afectado:

  • %Program Files%\Common Files\iexplore.pif
  • %Program Files%\Internet Explorer\iexplore.com
  • %System%\command.pif
  • %System%\dxdiag.com
  • %System%\finder.com
  • %System%\MSCONFIG.COM
  • %System%\regedit.com
  • %System%\rundll32.com
  • %Windows%\1.com
  • %Windows%\Debug\DebugProgram.exe
  • %Windows%\ExERoute.exe
  • %Windows%\explorer.com
  • %Windows%\finder.com
  • D:\pagefile.pif
  • %Windows%\services.exe

Técnica de inicio automático

Crea las siguientes entradas de registro para activar la ejecución automática del componente infiltrado cada vez que arranque el sistema:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\Run
Torjan Program = "%Windows%\services.exe"

Emplea la generación del shell de registro para garantizar su ejecución cuando se accede a determinados tipos de archivo mediante la introducción de las entradas siguientes:

HKEY_CLASSES_ROOT\winfiles\Shell\
Open\Command
@ = "%Windows%\ExeRoute.exe "%1" %*"

HKEY_LOCAL_MACHINE\SOFTWARE\Clients\
StartMenuInternet\iexplore.pif\shell
@ = "%Program Files%\Common Files\iexplore.pif"

Otras modificaciones del sistema

Agrega las siguientes entradas de registro como parte de la rutina de instalación:

HKEY_CURRENT_USER\Software\VB and VBA Program Settings

HKEY_CLASSES_ROOT\winfiles

HKEY_LOCAL_MACHINE\SOFTWARE\Clients\
StartMenuInternet\iexplore.pif\shell

Agrega las siguientes entradas de registro:

HKEY_CURRENT_USER\Software\Internet Explorer\
Main
Check_Associations = "No"

Modifica las siguientes entradas de registro:

HKEY_CLASSES_ROOT\SOFTWARE\Classes\
Applications\iexplore.exe\shell\
open\command
@ = ""%Program Files%\Internet Explorer\iexplore.com" %1"

(Note: The default value data of the said registry entry is "%Program Files%\Internet Explorer\iexplore.exe" %1.)

HKEY_CLASSES_ROOT\SOFTWARE\Classes\
.lnk\ShellNew
Command = "%System%\rundll32.com appwiz.cpl,NewLinkHere %1"

(Note: The default value data of the said registry entry is %System%\rundll32.exe appwiz.cpl,NewLinkHere %1.)

HKEY_CLASSES_ROOT\SOFTWARE\Classes\
cplfile\shell\cplopen\
command
@ = "rundll32.com shell32.dll,Control_RunDLL "%1",%*"

(Note: The default value data of the said registry entry is rundll32.exe shell32.dll,Control_RunDLL "%1",%*.)

HKEY_CLASSES_ROOT\SOFTWARE\Classes\
CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\shell\
OpenHomePage\Command
@ = "%Program Files%\Internet Explorer\iexplore.com"

(Note: The default value data of the said registry entry is %Program Files%\Internet Explorer\iexplore.exe.)

HKEY_CLASSES_ROOT\SOFTWARE\Classes\
Drive\shell\find\
command
@ = "SystemRoot%\explorer.com"

(Note: The default value data of the said registry entry is SystemRoot%\explorer.exe.)

HKEY_CLASSES_ROOT\SOFTWARE\Classes\
dunfile\shell\open\
command
@ = "%System%\rundll32.com NETSHELL.DLL,InvokeDunFile %1"

(Note: The default value data of the said registry entry is %System%\rundll32.exe NETSHELL.DLL,InvokeDunFile %1.)

HKEY_CLASSES_ROOT\SOFTWARE\Classes\
ftp\shell\open\
command
@ = ""%Program Files%\Internet Explorer\iexplore.com" %1"

(Note: The default value data of the said registry entry is "%Program Files%\Internet Explorer\iexplore.exe" %1.)

HKEY_CLASSES_ROOT\SOFTWARE\Classes\
htmlfile\shell\open\
command
@ = ""%Program Files%\Internet Explorer\iexplore.com" -nohome"

(Note: The default value data of the said registry entry is "%Program Files%\Internet Explorer\iexplore.exe" -nohome.)

HKEY_CLASSES_ROOT\SOFTWARE\Classes\
htmlfile\shell\opennew\
command
@ = ""%Program Files%\Internet Explorer\iexplore.com" %1"

(Note: The default value data of the said registry entry is "%Program Files%\Internet Explorer\iexplore.exe" %1.)

HKEY_CLASSES_ROOT\SOFTWARE\Classes\
HTTP\shell\open\
command
@ = ""%Program Files%\Internet Explorer\iexplore.com" -nohome"

(Note: The default value data of the said registry entry is "%Program Files%\Internet Explorer\iexplore.exe" -nohome.)

HKEY_CLASSES_ROOT\SOFTWARE\Classes\
inffile\shell\Install\
command
@ = "%System%\rundll32.com setupapi,InstallHinfSection DefaultInstall 132 %1"

(Note: The default value data of the said registry entry is %System%\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %1 .)

HKEY_CLASSES_ROOT\SOFTWARE\Classes\
InternetShortcut\shell\open\
command
@ = "finder.com shdocvw.dll,OpenURL %l"

(Note: The default value data of the said registry entry is rundll32.exe shdocvw.dll,OpenURL %l.)

HKEY_CLASSES_ROOT\SOFTWARE\Classes\
scrfile\shell\install\
command
@ = "finder.com desk.cpl,InstallScreenSaver %l"

(Note: The default value data of the said registry entry is rundll32.exe desk.cpl,InstallScreenSaver %l.)

HKEY_CLASSES_ROOT\SOFTWARE\Classes\
scriptletfile\Shell\Generate Typelib\
command
@ = ""%System%\finder.com" %System%\scrobj.dll,GenerateTypeLib "%1""

(Note: The default value data of the said registry entry is "%System%\rundl32.dll" %System%\scrobj.dll,GenerateTypeLib "%1".)

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\
telnet\shell\open\
command
@ = "finder.com url.dll,TelnetProtocolHandler %l"

(Note: The default value data of the said registry entry is rundll32.exe url.dll,TelnetProtocolHandler %l.)

HKEY_CLASSES_ROOT\SOFTWARE\Classes\
.exe
@ = "winfiles"

(Note: The default value data of the said registry entry is exefile.)

HKEY_CLASSES_ROOT\SOFTWARE\Classes\
.bfc\ShellNew
Command = "%System%\rundll32.com %System%\syncui.dll,Briefcase_Create %2!d! %1"

(Note: The default value data of the said registry entry is %System%\rundll32.exe %System%\syncui.dll,Briefcase_Create %2!d! %1.)

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\
Unknown\shell\openas\
command
@ = "%System%\finder.com %System%\shell32.dll,OpenAs_RunDLL %1"

(Note: The default value data of the said registry entry is %System%\rundll32.exe %System%\shell32.dll,OpenAs_RunDLL %1 .)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows NT\CurrentVersion\Winlogon
Shell = "Explorer.exe 1"

(Note: The default value data of the said registry entry is Explorer.exe.)

Propagación

Infiltra un archivo AUTORUN.INF para que ejecute automáticamente las copias que infiltra cuando un usuario accede a las unidades de un sistema afectado.

  SOLUTION

Minimum scan engine: 9.200
First VSAPI Pattern File: 4.608.11
First VSAPI Pattern Release Date: 21 de июля de 2007
VSAPI OPR PATTERN-VERSION: 4.609.00
VSAPI OPR PATTERN DATE: 22 de июля de 2007

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

Reiniciar en modo seguro

[ learnMore ]

Step 3

Eliminar esta clave del Registro

[ learnMore ]

Importante: si modifica el Registro de Windows incorrectamente, podría hacer que el sistema funcione mal de manera irreversible. Lleve a cabo este paso solo si sabe cómo hacerlo o si puede contar con ayuda de su administrador del sistema. De lo contrario, lea este artículo de Microsoft antes de modificar el Registro del equipo.

  • In HKEY_CLASSES_ROOT
    • winfiles
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\iexplore.pif
    • shell
  • In HKEY_CURRENT_USER\Software
    • VB and VBA Program Settings

Step 4

Eliminar este valor del Registro

[ learnMore ]

Importante: si modifica el Registro de Windows incorrectamente, podría hacer que el sistema funcione mal de manera irreversible. Lleve a cabo este paso solo si sabe cómo hacerlo o si puede contar con ayuda de su administrador del sistema. De lo contrario, lea este artículo de Microsoft antes de modificar el Registro del equipo.

  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    • Torjan Program = "%Windows%\services.exe"
  • In HKEY_CURRENT_USER\Software\Internet Explorer\Main
    • Check_Associations = "No"

Step 5

Restaurar este valor del Registro modificado

[ learnMore ]

Importante: si modifica el Registro de Windows incorrectamente, podría hacer que el sistema funcione mal de manera irreversible. Lleve a cabo este paso solo si sabe cómo hacerlo o si puede contar con ayuda de su administrador del sistema. De lo contrario, lea este artículo de Microsoft antes de modificar el Registro del equipo.

 
  • In HKEY_CLASSES_ROOT\SOFTWARE\Classes\Applications\iexplore.exe\shell\open\command
    • From: @ = ""%Program Files%\Internet Explorer\iexplore.com" %1"
      To: @ = ""%Program Files%\Internet Explorer\iexplore.exe" %1"
  • In HKEY_CLASSES_ROOT\SOFTWARE\Classes\.lnk\ShellNew
    • From: Command = "%System%\rundll32.com appwiz.cpl,NewLinkHere %1"
      To: Command = "%System%\rundll32.exe appwiz.cpl,NewLinkHere %1"
  • In HKEY_CLASSES_ROOT\SOFTWARE\Classes\cplfile\shell\cplopen\command
    • From: @ = "rundll32.com shell32.dll,Control_RunDLL "%1",%*"
      To: @ = "rundll32.exe shell32.dll,Control_RunDLL "%1",%*"
  • In HKEY_CLASSES_ROOT\SOFTWARE\Classes\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\shell\OpenHomePage\Command
    • From: @ = "%Program Files%\Internet Explorer\iexplore.com"
      To: @ = "%Program Files%\Internet Explorer\iexplore.exe"
  • In HKEY_CLASSES_ROOT\SOFTWARE\Classes\Drive\shell\find\command
    • From: @ = "SystemRoot%\explorer.com"
      To: @ = "SystemRoot%\explorer.exe"
  • In HKEY_CLASSES_ROOT\SOFTWARE\Classes\dunfile\shell\open\command
    • From: @ = "%System%\rundll32.com NETSHELL.DLL,InvokeDunFile %1"
      To: @ = "%System%\rundll32.exe NETSHELL.DLL,InvokeDunFile %1"
  • In HKEY_CLASSES_ROOT\SOFTWARE\Classes\ftp\shell\open\command
    • From: @ = ""%Program Files%\Internet Explorer\iexplore.com" %1"
      To: @ = ""%Program Files%\Internet Explorer\iexplore.exe" %1"
  • In HKEY_CLASSES_ROOT\SOFTWARE\Classes\htmlfile\shell\open\command
    • From: @ = ""%Program Files%\Internet Explorer\iexplore.com" -nohome"
      To: @ = ""%Program Files%\Internet Explorer\iexplore.exe" -nohome"
  • In HKEY_CLASSES_ROOT\SOFTWARE\Classes\htmlfile\shell\opennew\command
    • From: @ = ""%Program Files%\Internet Explorer\iexplore.com" %1"
      To: @ = ""%Program Files%\Internet Explorer\iexplore.exe" %1"
  • In HKEY_CLASSES_ROOT\SOFTWARE\Classes\HTTP\shell\open\command
    • From: @ = ""%Program Files%\Internet Explorer\iexplore.com" -nohome"
      To: @ = ""%Program Files%\Internet Explorer\iexplore.exe" -nohome"
  • In HKEY_CLASSES_ROOT\SOFTWARE\Classes\inffile\shell\Install\command
    • From: @ = "%System%\rundll32.com setupapi,InstallHinfSection DefaultInstall 132 %1"
      To: @ = "%System%\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %1"
  • In HKEY_CLASSES_ROOT\SOFTWARE\Classes\InternetShortcut\shell\open\command
    • From: @ = "finder.com shdocvw.dll,OpenURL %l"
      To: @ = "rundll32.exe shdocvw.dll,OpenURL %l"
  • In HKEY_CLASSES_ROOT\SOFTWARE\Classes\scrfile\shell\install\command
    • From: @ = "finder.com desk.cpl,InstallScreenSaver %l"
      To: @ = "rundll32.exe desk.cpl,InstallScreenSaver %l"
  • In HKEY_CLASSES_ROOT\SOFTWARE\Classes\scriptletfile\Shell\Generate Typelib\command
    • From: @ = ""%System%\finder.com" %System%\scrobj.dll,GenerateTypeLib "%1""
      To: @ = ""%System%\rundll32.exe" %System%\scrobj.dll,GenerateTypeLib "%1""
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Classes\telnet\shell\open\command
    • From: @ = "finder.com url.dll,TelnetProtocolHandler %l"
      To: @ = "rundll32.exe url.dll,TelnetProtocolHandler %l"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Unknown\shell\openas\command
    • From: @ = "%System%\finder.com %System%\shell32.dll,OpenAs_RunDLL %1"
      To: @ = "%System%\rundll32.exe %System%\shell32.dll,OpenAs_RunDLL %1"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
    • From: Shell = "Explorer.exe 1"
      To: Shell = "Explorer.exe"
  • In HKEY_CLASSES_ROOT\SOFTWARE\Classes\.exe
    • From: @ = "winfiles"
      To: @ = "exefile"
  • In HKEY_CLASSES_ROOT\SOFTWARE\Classes\.bfc\ShellNew
    • From: Command = "%System%\rundll32.com %System%\syncui.dll,Briefcase_Create %2!d! %1"
      To: Command = "%System%\rundll32.exe %System%\syncui.dll,Briefcase_Create %2!d! %1"

Step 6

Buscar y eliminar los archivos de AUTORUN.INF creados por WORM_LEGMIR.GT que contienen las siguientes cadenas

[ learnMore ]
[autorun]
OPEN=D:\pagefile.pif

Step 7

Reinicie en modo normal y explore el equipo con su producto de Trend Micro para buscar los archivos identificados como WORM_LEGMIR.GT 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

Restaurar este valor del Registro modificado

[ learnMore ]

Importante: si modifica el Registro de Windows incorrectamente, podría hacer que el sistema funcione mal de manera irreversible. Lleve a cabo este paso solo si sabe cómo hacerlo o si puede contar con ayuda de su administrador del sistema. De lo contrario, lea este artículo de Microsoft antes de modificar el Registro del equipo.

RESTORE
  • Cierre el Editor del Registro.
  • Step 9

    Restaurar este valor del Registro modificado

    [ learnMore ]

    Importante: si modifica el Registro de Windows incorrectamente, podría hacer que el sistema funcione mal de manera irreversible. Lleve a cabo este paso solo si sabe cómo hacerlo o si puede contar con ayuda de su administrador del sistema. De lo contrario, lea este artículo de Microsoft antes de modificar el Registro del equipo.

    RESTORE
  • Cierre el Editor del Registro.

  • Did this description help? Tell us how we did.