Symantec United States
global sites
products
purchase
service and support
security updates
downloads
about symantec
search
feedback


©1995-2008 Symantec Corporation.
All rights reserved.

Legal Notices
Privacy Policy

security updates

W95.Babylonia

Category 1

W95.Babylonia was originally posted to an Internet news group on December 3, 1999, as a Windows Help file named Serialz.hlp. It appeared to be a list of serial numbers for commercial software. When this Windows help file is run, it executes the virus. The virus appears to have been written by the same individual who released the W32.Coke and W95.Fono (El_Inca) viruses.

Type: Trojan Horse, Virus, Worm
Infection Length: 11,036 bytes

threat assessment

Wild

Threat Metrics

Low Low Low

Wild:
Low

Damage:
Low

Distribution:
Low

technical details

W95.Babylonia is a complex virus that propagates using mIRC, or as an email attachment. All infected .hlp and .exe files can cause infection on other systems. This Windows 95 virus employs many proven infection techniques, which have been developed by virus writers for the Windows 9x platforms over the past few years.

Opening a help (.HLP) file
When an infected .hlp file is run under Windows 9x, the virus code is activated. The virus modifies the entry point of .hlp files to a short script routine. This routine transfers control from the script interpretation to the binary virus code that is placed at the end of the infected .hlp files in variable packed form. When the binary virus code assumes control, the virus attempts to install itself to the kernel memory area of the computer, and it hooks the file system to its own code. The virus then creates a 4 KB file named C:\Babylonia.exe. This file then executes.

Execution of Babylonia.exe
When Babylonia.exe starts, it copies itself to the \Windows\System folder as Kernel32.exe, and adds its value to the following registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

As a result, Babylonia.exe executes each time Windows starts.

This module is registered as a system service, and as a result, it cannot be seen on the Windows 9x task list. The Trojan checks to see if the Rnaapp.exe application is running by enumerating the active processes. If it does not find a similar process, it sleeps for some time and tries again later. Rnaapp.exe is active under Windows 9x during dial-up connections. When the application is loaded, the virus attempts to connect to a virus writer's Web site in Japan.

If it is successful, the Trojan downloads a text file named Virus.txt. This text file lists a few file names (currently four). The file names are:

  • Dropper.dat
  • Greetz.dat
  • Ircworm.dat
  • Poll.dat

They appear to use a special file format with a header that begins with "VMOD." This stands for "Virus Module." The header of the virus modules contains an entry point for the module. The Trojan then downloads the files and executes them, one by one, inside its own process. By doing this, the Trojan can introduce additional functionality on the already infected system. If the system is disinfected, but the Trojan is active, the virus code is reintroduced by the dropper virus module. It creates a 17 KB application (Instalar.exe) and executes it. This file is infected by the virus. Finally, the file is deleted.

When the month is January, the Greetz.dat module modifies the C:\Autoexec.bat file. Part of the "marker" for this virus includes the following text in the C:\Autoexec.bat file:

W95/Babylonia by Vecna (c) 1999

The Ircworm.dat appears to be an mIRC worm installer. The worm seems to propagate two files:

2kBug-MircFix.exe
2kbugfix.ini

to everyone on the active mIRC channel.

The last module in Virus.txt sends messages to babylonia_counter@hotmail.com containing the text:

Quando o mestre chegara?

This information was intended by the virus writer to track the number of infections that W95.Babylonia causes.

Infected .exe and .hlp files
W95.Babylonia hooks the file system to itself and checks for .exe and .hlp file extensions. It infects such files whenever they are accessed. Infected Windows .hlp files and 32-bit PE.exe files can introduce the full functionality of the virus to new systems.

The virus uses an insertion technique (does not modify the entry point of PE files) when it infects files, probably in an attempt to avoid detection by heuristic analyzers. The virus body is attached to the end of the infected files.

As long as the virus is in memory, it cannot be easily removed from the system. This infection mechanism is very similar to the W95.CIH virus.

Wsock32.dll modifications
Another very important detail is that W95.Babylonia is able to modify Wsock32.dll when the file is not loaded in memory. The virus adds a very short hook routine to the "Send" API of Wsock32.dll similar to the Happy99 worm. This short hook routine transfers control to the active part of the virus code when an email is sent. The end result of this code is that the virus adds a MIME-encoded attachment of itself to all outgoing email, thus increasing its rate of spread. W95.Babylonia is technically a worm, as well as a virus.

The possible file names of the email attachment are:
  • I-watch-u.exe
  • Babilonia.exe
  • X-mas.exe
  • Surprise!.exe
  • Jesus.exe
  • Buhh.exe
  • Chocolate.exe

It appears that the virus has a bug in this routine and therefore only the X-mas.exe file name is used. This file appears to be the same as the Instalar.exe that is created by one of the virus modules. It has a Santa Claus icon:



recommendations

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.

removal instructions

If you believe you have been infected, please download the latest virus definitions via LiveUpdate or from the Symantec Security Response Web site.

  • Click here for instructions on using LiveUpdate to retrieve virus definitions.
  • Click here to manually download and install virus definitions from the Symantec Security Response Web site.


Write-up by: Peter Szor