Backdoor.SubSeven22 is a Trojan horse. It is generally UPX packed; however, unpacked versions and versions packed with different executable packing software do exist. When packed with UPX, the Trojan horse's size is usually between 370 KB and 390 KB. Larger variations have been encountered, however, with file sizes ranging from 470 KB to 550 KB .
This Trojan horse does not produce any output while running.
CAUTION: Due to evolving packing technology and possible modifications to the Trojan by hackers, new variations of the Trojan may be encountered. If Symantec antivirus products does not detect the encountered variation, then you should submit the possible Trojan samples to Symantec Security Response for further examination.
When executed, the Trojan horse drops a copy of itself into the \Windows folder. The copy is usually named with random alphanumeric characters, although the name is sometimes fixed (for example, Rundll16.exe). The dropped copy provides potentially malicious users with access to the infected computer.
The Trojan horse sometimes drops an application into the \Windows or \Windows\System folders. This application file can be an .exe or a .dll, and it is between 10 KB and 15 KB in size.
The .exe variation of this application is generally named using a random set of alphanumeric characters. The file name of the .dll variation is fixed, for example, Watching.dll.
The application serves as an executable file launcher, similar to Explorer.exe. While launching an executable, this application may also launch the Trojan. To force the executable files in the system to be launched only by this application, the Trojan modifies specific locations in the Windows registry. If the launcher is the .exe application, it inserts the application's name into one of the values, usually [Default], in the HKEY_CLASSES_ROOT\exefile\shell\open\command registry key. If the launcher is the .dll file type, it creates the HKEY_CLASSES_ROOT\.dl registry key, and sets the [Default] value to .exe file, and sets the content value to application/x-msdownload.
The Trojan horse generally creates or uses existing HKEY_LOCAL_MACHINE\Hardware\Data, HKEY_LOCAL_MACHINE\Hardware\Enum or HKEY_LOCAL_MACHINE\Software\Microsoft\DirectXMedia registry keys to store data. It creates randomly named variables and stores data in them. The variable names and the data usually appear as junk.
The Trojan horse uses any combination of the following methods to enable itself at startup:
It adds the name of the dropped copy to the "load=" and/or the "run=" lines of the Win.ini file.
It adds the name of the dropped copy to the "shell=explorer.exe" line of the System.ini file.
It creates some value (usually "WinLoader") in the HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version\Run" and/orHKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version\RunServices registry keys, and then sets that value to the name of its dropped copy.
Symantec Security Response encourages all users and administrators to adhere to the following basic security "best practices":
Turn off and remove unneeded services. By default, many operating systems install auxiliary services that are not critical, such as an FTP server, telnet, and a Web server. These services are avenues of attack. If they are removed, blended threats have less avenues of attack and you have fewer services to maintain through patch updates.
If a blended threat exploits one or more network services, disable, or block access to, those services until a patch is applied.
Always keep your patch levels up-to-date, especially on computers that host public services and are accessible through the firewall, such as HTTP, FTP, mail, and DNS services (for example, all Windows-based computers should have the current Service Pack installed.). Additionally, please apply any security updates that are mentioned in this writeup, in trusted Security Bulletins, or on vendor Web sites.
Enforce a password policy. Complex passwords make it difficult to crack password files on compromised computers. This helps to prevent or limit damage when a computer is compromised.
Configure your email server to block or remove email that contains file attachments that are commonly used to spread viruses, such as .vbs, .bat, .exe, .pif and .scr files.
Isolate infected computers quickly to prevent further compromising your organization. Perform a forensic analysis and restore the computers using trusted media.
Train employees not to open attachments unless they are expecting them. Also, do not execute software that is downloaded from the Internet unless it has been scanned for viruses. Simply visiting a compromised Web site can cause infection if certain browser vulnerabilities are not patched.
This Trojan can be difficult to remove because it does not make the same changes to all systems. To remove this Trojan, you need to:
Remove any references to the Trojan from the following registry keys: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version\Run
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version\RunServices
Delete every occurrence of the Trojan's name in the Win.ini and System.ini files.
Shut down and turn off the computer to remove the Trojan from memory, or use a utility capable of stopping the process, such as Dllview.exe.
After restarting, delete all instances of the Trojan.
Examine the following registry keys: HKEY_CLASSES_ROOT\exefile\shell\open\command HKEY_CLASSES_ROOT\.dl
Remove any value containing a reference to the name of the .exe launcher that the Trojan dropped, or delete the HKEY_CLASSES_ROOT\.dl registry key if it exists.
Delete all randomly named variables from the following keys: HKEY_LOCAL_MACHINE\Hardware\Data HKEY_LOCAL_MACHINE\Hardware\Enum HKEY_LOCAL_MACHINE\Software\Microsoft\DirectXMedia
Run a full system scan.
For detailed instructions on how to do this, see the sections that follow. Follow the instructions in the order that they appear.
NOTE: These instructions assume that you are familiar with Windows conventions and are comfortable editing and deleting Windows files. If you are not, we suggest that you obtain the services of a qualified computer consultant.
To remove entries from the registry
You must identify and remove any registry entries that allow the Trojan to load when Windows starts. It is important that you write down the file names as noted in the previous section. You will need to edit the registry again after restarting the computer.
CAUTION: We strongly recommend that you back up the system registry before making any changes to it. Incorrect changes to the registry may result in permanent data loss or corrupted files. Be sure to modify only the specified keys. See the document How to back up the Windows 95/98/NT registry before proceeding.
Click Start, and click Run. The Run dialog box appears.
Type regedit and then click OK. The Registry Editor opens.
NOTE: If the Registry Editor does not open, and you are sure that you have typed the command as shown, the Trojan has modified the registry so that .exe files will not run. In this case, first make a copy of the file Regedit.exe as Regedit.com, and then use the copy to edit the registry. For instructions on how to do this, read the section To copy Regedit.exe to Regedit.com at the very end of these removal instructions.
In the right pane, look for values that do not refer to programs that should run at startup. In most cases, this value will be Winloader.
Write down the name of the file that the value is loading, for example:
Winloader C:\Windows\Pl9k09t.exe
Delete the suspect value.
NOTE: This does not delete the file itself; it only prevents the file from loading when Windows starts. If you remove a value that loads a program that you want to start when Windows starts, you will need to re-enable the loading of the program.
To remove references from Win.ini and System.ini:
You must identify and remove any references to the Trojan from the common load points in Win.ini and System.ini. These will not exist on all systems.
CAUTION: If you find files that are loading from the load points in Win.ini or System.ini, write down the exact name of the file before you remove it. For example, if you find run=pl9k09t.exe, write down pl9k09t.exe before you remove the entry. You will need this information later in the removal procedure.
Click Start, and click Run.
Type the following, and then click OK:
edit c:\windows\win.ini
The MS-DOS Editor opens.
NOTE: If Windows is installed in a different location, make the appropriate path substitution.
CAUTION: The steps that follow instruct you to remove text from the load= and run= lines of the Win.ini file. If you are using older programs, they may be loading at startup from one of these lines. The Trojan adds lines such as run=<random file name>. If you are sure that the text contained in these lines are for programs that you normally use, we suggest you do not remove them. If you are not sure, you can prevent the lines from loading by placing a semicolon in front of the line, for example:
; run=accounts.exe
Locate the load= line within the [windows] section of the Win.ini file; it is usually located near the top of the file.
Position the cursor immediately to the right of the equal sign.
Press Shift+End to select all of the text to the right of the equal sign, and then press Delete.
Repeat steps 5 and 6 for the run= line, which is usually beneath the load= line.
Click File, click Exit, and then click Yes when you are prompted to save the changes.
Click Start, and click Run.
Type the following, and then click OK:
edit c:\windows\system.ini
Locate the line that begins with shell=
Position the cursor immediately to the right of the equal sign.
Press Shift+End to select all of the text to the right of the equal sign, and then press Delete.
Type the following text:
explorer.exe
The line should now read
shell=explorer.exe
NOTE: Some computers may have an entry other than Explorer.exe after shell=. If this is the case and you are running an alternative Windows shell, then change this line to shell=explorer.exe for now. You can change it back to your preferred shell after you have finished this procedure.
Click File, click Exit, and then click Yes when you are prompted to save the changes.
Exit the System Configuration Editor.
To restart the computer:
Close all programs, shut down the computer, and turn off the power. Wait at least 30 seconds. You must turn off the power to clear memory. Do not just press the Reset button.
To locate and delete files:
You now need to find and delete the files whose names you wrote down previously:
Click Start, point to Find, and click Files or Folders.
Make sure that "Look in" is set to (C:) and that "Include subfolders" is checked.
In the Named box, type the file names that you removed from Win.ini, System.ini, or the registry.
Click Find Now. Windows will find the files and display them in the lower pane of the Find dialog box.
Delete the displayed files.
Right-click the Recycle Bin icon on your desktop, and then click Empty Recycle Bin.
Close the Find Files window.
To remove additional entries from the registry:
Click Start, and click Run. The Run dialog box appears.
Type regedit and click OK. The Registry Editor opens.
Look for the following subkey:
HKEY_CLASSES_ROOT\.d
If the key exists, delete it.
Navigate to and open the following key:
HKEY_CLASSES_ROOT\exefile\shell\open\command
CAUTION: Do not inadvertently modify the HKEY_CLASSES_ROOT\.exe subkey. Changes made to that key can prevent .exe files (program files) from running. Be sure to navigate past this all the way down to the HKEY_CLASSES_ROOT\exefile\shell\open\command subkey as shown in the following figure.
<- This is the subkey that you will edit.
Double-click the (Default) value in the right pane.
Delete the current value data, and then type: "%1" %* (That is, type the following characters: quote-percent-one-quote-space-percent-asterisk.)
NOTE: The Registry Editor will automatically enclose the value within quotation marks. When you click OK, the (Default) value should look exactly like this: ""%1" %*"
Make sure that you completely delete all value data in the command key prior to typing the correct data. If a space is left accidentally at the beginning of the entry, any attempt to run program files will result in the error message, "Windows cannot find .exe." If this happens to you, then start over at the beginning of this section, making sure to completely remove the current value data.
Locate the following registry keys. Remove any randomly named values that have been added:
To run a full system scan:
When you have finished with the removal procedure, start Norton AntiVirus (NAV) and run a full system scan. Unless you are using NAV 2001, make sure that NAV is set to scan all files.
To copy Regedit.exe to Regedit.com:
Do this only if the Registry Editor does not open when you follow the instructions in the first section of the removal instructions, "To remove entries from the registry." In this situation, because the worm modified the registry so that you cannot run .exe files, you must first make a copy of the Registry Editor as a file with the .com extension, and then run that file.
Do one of the following, depending on which version of Windows you are running:
Windows 95/98 users: Click Start, point to Programs, and click MS-DOS Prompt. A DOS window opens at the C:\Windows prompt. Go on to step 2 of this section.
Windows Me users: Click Start, point to Programs, point to Accessories, and then click MS-DOS Prompt. A DOS window opens at the C:\Windows prompt. Go on to step 2 of this section.
Windows NT/2000 users:
Click Start, and click Run.
Type the following and then press Enter:
command
A DOS window opens.
Type the following, and then press Enter:
cd \winnt
Go on to step 2 of this section.
Windows XP:
Click Start, and click Run.
Type the following, and then press Enter:
command
A DOS window opens.
Type the following, and then press Enter after typing each one:
cd\
cd \windows
Proceed to step 2 of this section.
Type the following, and then press Enter:
copy regedit.exe regedit.com
Type the following, and then press Enter:
start regedit.com
The Registry Editor will open in front of the DOS window. After you finish editing the registry, exit the Registry Editor, and then exit the DOS window, as well.
1. Go back to the beginning of these removal instructions, and start again with the section, "To remove entries from the registry."
Additional information:
Norton Internet Security/Norton Internet Protection users
If you are using either of these Symantec firewall programs, the name that is used by the Trojan Block rule to prevent the Trojan from being downloaded to your computer is different from the name that is used by Norton AntiVirus to detect the same threat if it were actually run on your computer or received in email.
Norton Internet Security/Norton Internet Protection will block Backdoor.SubSeven22 from being downloaded to your computer using the Block Rule Backdoor/SubSeven.