Arrival Details
This Spyware arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.
Autostart Technique
This Spyware adds the following registry entries to enable its automatic execution at every system startup:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\Run
Torjan Program = "%Windows%\WINLOGON.EXE"
It modifies the following registry entries to ensure it automatic execution at every system startup:
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.)
Other System Modifications
This Spyware adds the following registry keys:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\
winfiles
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\
winfiles\DefaultIcon
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\
winfiles\Shell\Open\
Command
HKEY_CURRENT_USER\Software\VB and VBA Program Settings\
Microsoft Soft Debuger\Settings
It adds the following registry entries:
HKEY_CURRENT_USER\Software\Microsoft\
Internet Explorer\Main
Check_Associations = "No"
HKEY_CURRENT_USER\Software\VB and VBA Program Settings\
Microsoft Soft Debuger\Settings
GUID = "{GT4PY1-W4II4D-6WMIBN-JTWEO9-V42JFD}"
It modifies the following registry entries:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\
.lnk\ShellNew
command = "rundll32.com appwiz.cpl,NewLinkHere %1"
(Note: The default value data of the said registry entry is rundll32.exe appwiz.cpl,NewLinkHere %1.)
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\
.bfc\ShellNew
command = "{random characters}"
(Note: The default value data of the said registry entry is {random values}.)
Dropping Routine
This Spyware drops the following files:
- %Windows%\WINLOGON.EXE
- %System%\rundll32.com
- %System%\finder.com
- %Windows%\finder.com
- %System%\command.pif
- %Program Files%\intern~1\iexplore.com
- %Program Files%\common~1\iexplore.pif
- %Windows%\explorer.com
- %Windows%\1.com
- %Windows%\ExERoute.exe
- d:\pagefile.pif
- %System%\MSCONFIG.COM
- %System%\dxdiag.com
- %System%\regedit.com
- %Windows%\Debug\DebugProgram.exe
This report is generated via an automated analysis system.
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
Identify and delete files detected as TSPY_LEGMIR.ABB using either the Startup Disk or Recovery Console
[ Learn More ]
[ back ]
To identify and delete the malware/grayware file:
• On Windows XP and Server 2003 systems:
- Scan your computer with your Trend Micro product and then take note of the names of the malware/grayware files detected.
- Click Start>Run. In the Open input box, type secpol.msc and press Enter.
- In the left panel, double-click Local Policies>Security Options.
- In the right panel, double-click Recovery Console: Allow floppy copy and access to all drives and folders.
- Select Enabled and click OK.
- Insert the Windows Installation CD into the CD drive, then restart your computer.
- When prompted, press any key to boot from the CD.
- On the main menu, type r to go to the Recovery Console.
- Type the number that corresponds to the drive and directory that contains Windows (usually C:\WINDOWS) and press Enter.
- Type the Administrator password and press Enter.
- In the input box, type the following then press Enter:
SET AllowAllPaths = TRUE
del "{malware/grayware path and file name}" - Type exit and press Enter to restart the system normally.
• On Windows Vista, 7, and Server 2008 systems:
- Scan your computer with your Trend Micro product and then take note of the names of the malware/grayware files detected.
- Insert your Windows Installation DVD in the DVD drive, then Press the restart button.
- When prompted, press any key to boot from the CD.
- Depending on your Windows Installation DVD, you might be required to select the installation language. Then on the Install Windows window, choose your language, locale, and keyboard layout or input method. Click Next, then click Repair your computer.
- Select Use recovery tools that can help fix problems starting Windows. Select your installation of Windows. Click Next.
- If the Startup Repair window appears, click Cancel, Yes, then Finish.
- In the System Recovery Options window, click Command Prompt.
- In the Command Prompt window, type the following then press Enter:
BootRec.exe /fixmbr
del "{malware/grayware path and file name}" - Type exit and press Enter to close the Command Prompt window.
- Click Restart to restart the system normally.
• On Windows 8, 8.1, and Server 2012 systems:
- Scan your computer with your Trend Micro product and then take note of the names of the malware/grayware files detected.
- Insert your Windows Installation DVD in the DVD drive, then restart your computer.
- When prompted, press any key to boot from the DVD.
- Depending on your Windows Installation DVD, you might be required to select the keyboard layout. Then on the Windows Setup window, choose your language, locale, and input method. Click Next, then click Repair your computer.
- Click Troubleshoot>Advanced Options>Command Prompt.
- In the Command Prompt window, type the following then press Enter:
BootRec.exe /fixmbr
del "{malware/grayware path and file name}" - Type exit and press Enter to close the Command Prompt window.
- Click Continue to restart the system normally.
Step 3
Delete this registry key
[ Learn More ]
[ back ]
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\Classes
- In HKEY_LOCAL_MACHINE\SOFTWARE\Classes\winfiles
- In HKEY_LOCAL_MACHINE\SOFTWARE\Classes\winfiles\Shell\Open
- In HKEY_CURRENT_USER\Software\VB and VBA Program Settings\Microsoft Soft Debuger
To delete the registry key this malware/grayware created:
- Open Registry Editor.
» For Windows 2000, Windows XP, and Windows Server 2003 users, click Start>Run, type regedit in the text box provided, and then press Enter.
» For Windows Vista, Windows 7, and Windows Server 2008 users, click the Start button, type regedit in the Search input field then press Enter.
» For Windows 8, Windows 8.1, and Windows Server 2012 users, right-click on the lower left corner of the screen, click Run, type regedit in the text box provided, and then press Enter. - In the left panel, double-click the following:
HKEY_LOCAL_MACHINE>SOFTWARE>Classes - Still in the left panel, locate and delete the key:
winfiles - In the left panel, double-click the following:
HKEY_LOCAL_MACHINE>SOFTWARE>Classes>winfiles - Still in the left panel, locate and delete the key:
DefaultIcon - In the left panel, double-click the following:
HKEY_LOCAL_MACHINE>SOFTWARE>Classes>winfiles>Shell>Open - Still in the left panel, locate and delete the key:
Command - Close Registry Editor.
Step 4
Delete this registry value
[ Learn More ]
[ back ]
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\Microsoft\Windows\CurrentVersion\Run
- Torjan Program = "%Windows%\WINLOGON.EXE"
- In HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
- Check_Associations = "No"
- In HKEY_CURRENT_USER\Software\VB and VBA Program Settings\Microsoft Soft Debuger\Settings
- GUID = "{GT4PY1-W4II4D-6WMIBN-JTWEO9-V42JFD}"
To delete the registry value this malware/grayware created:
- Open Registry Editor.
» For Windows 2000, Windows XP, and Windows Server 2003 users, click Start>Run, type regedit in the text box provided, and then press Enter.
» For Windows Vista, Windows 7, and Windows Server 2008 users, click the Start button, type regedit in the Search input field then press Enter.
» For Windows 8, Windows 8.1, and Windows Server 2012 users, right-click on the lower-left corner of the screen, click Run, type regedit in the text box provided, and then press Enter. - In the left panel, double-click the following:
HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>Windows>CurrentVersion>Run - In the right panel, locate and delete the entry:
Torjan Program = "%Windows%\WINLOGON.EXE" - In the left panel, double-click the following:
HKEY_CURRENT_USER>Software>Microsoft>Internet Explorer>Main - In the right panel, locate and delete the entry:
Check_Associations = "No" - In the left panel, double-click the following:
HKEY_CURRENT_USER>Software>VB and VBA Program Settings>Microsoft Soft Debuger>Settings - In the right panel, locate and delete the entry:
GUID = "{GT4PY1-W4II4D-6WMIBN-JTWEO9-V42JFD}" - Close Registry Editor.
Step 5
Restore these modified registry values
[ Learn More ]
[ back ]
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\SOFTWARE\Classes\.lnk\ShellNew
- From: command = "rundll32.com appwiz.cpl,NewLinkHere %1"
To: command = ""rundll32.exe appwiz.cpl,NewLinkHere %1""
- In HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.bfc\ShellNew
- From: command = "{random characters}"
To: command = ""{random values}""
- In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
- From: Shell = "Explorer.exe 1"
To: Shell = ""Explorer.exe""
To restore registry values this malware/grayware modified:
- Open Registry Editor. To do this:
- On Windows 2000, XP, and Server 2003:
Click Start>Run, type REGEDIT in the text box provided, and then press Enter. - On Windows Vista, 7, and Server 2008:
Click the Start button, type REGEDIT in the Search input field then press Enter. - On Windows 8, 8.1, and Server 2012:
Right-click on the lower left corner of the screen and click Run, type REGEDIT in the Run input field, and then press Enter.
- In the left panel, double-click the following:
HKEY_LOCAL_MACHINE>SOFTWARE>Classes>.lnk>ShellNew - In the right panel, locate the registry value:
command = "rundll32.com appwiz.cpl,NewLinkHere %1" - Right-click on the value name and choose Modify. Change the value data of this entry to:
command = "rundll32.exe appwiz.cpl,NewLinkHere %1" - In the left panel, double-click the following:
HKEY_LOCAL_MACHINE>SOFTWARE>Classes>.bfc>ShellNew - In the right panel, locate the registry value:
command = "{random characters}" - Right-click on the value name and choose Modify. Change the value data of this entry to:
command = "{random values}" - In the left panel, double-click the following:
HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>Windows NT>CurrentVersion>Winlogon - In the right panel, locate the registry value:
Shell = "Explorer.exe 1" - Right-click on the value name and choose Modify. Change the value data of this entry to:
Shell = "Explorer.exe" - Close Registry Editor.
Step 6
Search and delete these components
[ Learn More ]
[ back ]
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.
- %Windows%\WINLOGON.EXE
- %System%\rundll32.com
- %System%\finder.com
- %Windows%\finder.com
- %System%\command.pif
- %Program Files%\intern~1\iexplore.com
- %Program Files%\common~1\iexplore.pif
- %Windows%\explorer.com
- %Windows%\1.com
- %Windows%\ExERoute.exe
- d:\pagefile.pif
- %System%\MSCONFIG.COM
- %System%\dxdiag.com
- %System%\regedit.com
- %Windows%\Debug\DebugProgram.exe
To manually delete a malware/grayware file from an affected system:
• For Windows 2000, Windows XP, and Windows Server 2003:
- Right-click Start then click Search....
- In the File name* input box, type the following:
- %Windows%\WINLOGON.EXE
- %System%\rundll32.com
- %System%\finder.com
- %Windows%\finder.com
- %System%\command.pif
- %Program Files%\intern~1\iexplore.com
- %Program Files%\common~1\iexplore.pif
- %Windows%\explorer.com
- %Windows%\1.com
- %Windows%\ExERoute.exe
- d:\pagefile.pif
- %System%\MSCONFIG.COM
- %System%\dxdiag.com
- %System%\regedit.com
- %Windows%\Debug\DebugProgram.exe
- In the Look In drop-down list, select My Computer then press Enter.
- Once located, select the file then press SHIFT+DELETE to delete it.
*Note: The file name input box title varies depending on the Windows version (e.g. Search for files or folders named or All or part of the file name.).
• For Windows Vista, Windows 7, Windows Server 2008, Windows 8, Windows 8.1, and Windows Server 2012:
- Open a Windows Explorer window.
- For Windows Vista, 7, and Server 2008 users, click Start>Computer.
- For Windows 8, 8.1, and Server 2012 users, right-click on the lower left corner of the screen,then click File Explorer.
- In the Search Computer/This PC input box, type:
- %Windows%\WINLOGON.EXE
- %System%\rundll32.com
- %System%\finder.com
- %Windows%\finder.com
- %System%\command.pif
- %Program Files%\intern~1\iexplore.com
- %Program Files%\common~1\iexplore.pif
- %Windows%\explorer.com
- %Windows%\1.com
- %Windows%\ExERoute.exe
- d:\pagefile.pif
- %System%\MSCONFIG.COM
- %System%\dxdiag.com
- %System%\regedit.com
- %Windows%\Debug\DebugProgram.exe
- Once located, select the file then press SHIFT+DELETE to delete it.
*Note: Read the following Microsoft page if these steps do not work on Windows 7.
Step 7
Scan your computer with your Trend Micro product to delete files detected as TSPY_LEGMIR.ABB. 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 this Knowledge Base page for more information.
Did this description help? Tell us how we did.