Discovered: November 6, 2003
Updated: February 13, 2007 12:13:27 PM
Type: Worm
BAT.Mumu.B.Worm is a large collection of files that use each other to spread over administrative shares on Windows NT, 2000, and XP systems. The files associated with this worm are:
- 10.bat: A malicious batch file.
- AN.bat: A malicious batch file.
- hack.bat: A malicious batch file.
- simple.exe: A Hacktool that will be detected as Hacktool.Hacline.
- ipc.bat: A malicious batch file.
- muma.bat: A malicious batch file.
- near.bat: A malicious batch file.
- gogo.vbe: A malicious VBScript.
- ts.exe: A UPX-packed executable that will run a terminal service on the host.
- ipcpass.txt: A text file.
- ioginer.txt: A text file.
- reg.reg: A registry script that adds keys, so that ss.bat is executed on startup.
- rep.exe: A legitimate utility for replacing strings.
- psexec.exe: A legitimate utility from Sysinternals to remotely start the processes.
- random.bat: A malicious batch file.
- replace.bat: A malicious batch file.
- ss.bat: A batch file that will create an admin user, as well as run the psexec on the remote machine.
- start.bat: A malicious batch file.
- sc.exe: A legitimate utility for service control.
- test.bat: A malicious batch file.
When this worm is executed, it executes the AN.bat file, which calls several other files that perform the following actions:
- Stops and deletes services named "Query Service" or "Application."
- Adds itself as the service "Query Service."
- Adds an Administrator-level user, "admin," with the password, "!@#123QWEqwe."
- Installs "Windows Terminal Service" on port 3306.
- Deletes the logines.txt file and calls the hacktool "Simple.exe," which Symantec antivirus products detect as Hacktool.Hacline.
The command line parameter passed to the Simple.exe file will be a range of IP addresses. The range will start with the first two octets of the IP address (which have been randomized) with .0.1 added, and the end with the same first two octets of the IP address, but with .255.255 added.
Hfind.exe will attempt to find the password for the administrative shares and save this information in a file named logines.txt.
The tool will use the following passwords:
password
passwd
admin
pass
123
1234
12345
123456
<blank>
- Replaces the iogner.txt file with logines.txt.
- For any account that Simple.exe has discovered, the worm attempts to copy all the aforementioned files to the %System% folder using the administrative shares.
Note: %System% is a variable. The worm locates the System folder and copies itself to that location. By default, this is C:\Windows\System (Windows 95/98/Me), C:\Winnt\System32 (Windows NT/2000), or C:\Windows\System32 (Windows XP).
- If the files were successfully copied, the worm will attempt to launch Start.bat using the tool Psexec.exe. This will effectively start the worm on the remote computer.
- Runs the Netstat command on the system.
- Attempts to call the batch file, Near.bat, supplying it with IP addresses.
Recommendations
Symantec Security Response encourages all users and administrators to adhere to the following basic security "best practices":
- Use a firewall to block all incoming connections from the Internet to services that should not be publicly available. By default, you should deny all incoming connections and only allow services you explicitly want to offer to the outside world.
- 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.
- Ensure that programs and users of the computer use the lowest level of privileges necessary to complete a task. When prompted for a root or UAC password, ensure that the program asking for administration-level access is a legitimate application.
- Disable AutoPlay to prevent the automatic launching of executable files on network and removable drives, and disconnect the drives when not required. If write access is not required, enable read-only mode if the option is available.
- Turn off file sharing if not needed. If file sharing is required, use ACLs and password protection to limit access. Disable anonymous access to shared folders. Grant access only to user accounts with strong passwords to folders that must be shared.
- Turn off and remove unnecessary services. By default, many operating systems install auxiliary services that are not critical. These services are avenues of attack. If they are removed, threats have less avenues of attack.
- If a 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.
- Configure your email server to block or remove email that contains file attachments that are commonly used to spread threats, such as .vbs, .bat, .exe, .pif and .scr files.
- Isolate compromised computers quickly to prevent threats from spreading further. 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.
- If Bluetooth is not required for mobile devices, it should be turned off. If you require its use, ensure that the device's visibility is set to "Hidden" so that it cannot be scanned by other Bluetooth devices. If device pairing must be used, ensure that all devices are set to "Unauthorized", requiring authorization for each connection request. Do not accept applications that are unsigned or sent from unknown sources.
- For further information on the terms used in this document, please refer to the Security Response glossary.
Writeup By: John Canavan