F-Secure: Be Sure
Main
F-Secure Logo - Be Sure
Select local site


Privacy Policy
Legal Notices
Contact Us

F-Secure Virus Descriptions : BadTrans.B





NAME:BadTrans.B
ALIAS:BadtransII, I-Worm.BadtransII, W95/Badtrans.B@mm

Information about the original W95/Badtrans is available at: http://www.F-Secure.com/v-descs/badtrans.shtml


Disinfection instructions for Badtrans.b worm can be found here:

http://www.europe.f-secure.com/v-descs/bt_b_dis.shtml


Badtrans.B e-mail worm has been found from several locations in Europe on 24th of November 2001. This worm sends variably named attachments which might execute automatically when the emails are viewed.

Badtrans.B is spreading under Win32 systems. The virus sends email messages with infected attached files, as well as installs spying trojan component to steal information from infected systems.

The worm itself is Win32 executable file (PE EXE file). It was found in-the-wild in compressed form, and has about 29Kb of size. Being decompressed the worm file length gets about 60Kb of size.

The worm consists of two main components - Worm and Trojan. The "Worm" component sends infected messages, the "Trojan" component sends out the information (user's info, RAS data, cached passwords, keyboard log) from infected computers to specified email address. It also keeps "keylogger" program body in its code and installs it into the system while infecting a new machine.

Infecting the system

When an infected file is run (when a user clicks on attached file and activates it, or if the worm gets control through IFRAME security breach) the worm code gets control. First of all the worm drops (installs) its components to the system and registers them in system registry.

The installed trojan file name, the target directory and registry key are optional. They are stored in encrypted form in trojan file at the file end. A hacker may configure them before sending it to a victim machine, or before put it on a web site.

The worm also drops additional keyboard hooker (Win32 DLL file) to the system and the uses that to spy on text entered by keyboard. The DLL file name is optional as well.

Other optional features are:

- the worm deletes original infected file when installation is complete - the size of keyboard log file

Spreading

To send infected messages the worm uses direct connection to SMTP server. Victim email addresses are got by two different ways:

 1. The worm scans *.HT* and *.ASP files and extracts email addresses from there
 2. The worm by using MAPI functions reads all emails from email Incoming box,
    and gets email addresses from there.

Next the worm sends infected messages. The message body has HTML format, and uses IFRAME breach to spawn infected attachment on vulnerable machines.

The message fields are:

From: - original sender, or fake address, randomly selected from:

  " Anna" <aizzo@home.com>
  "JUDY" <JUJUB271@AOL.COM>
  "Rita Tulliani" <powerpuff@videotron.ca>
  "Tina" <tina0828@yahoo.com>
  "Kelly Andersen" <Gravity49@aol.com>
  " Andy" <andy@hweb-media.com>
  "Linda" <lgonzal@hotmail.com>
  "Mon S" <spiderroll@hotmail.com>
  "Joanna" <joanna@mail.utexas.edu>
  "JESSICA BENAVIDES" <jessica@aol.com>
  " Administrator" <administrator@border.net>
  " Admin" <admin@gte.net>
  "Support"  <support@cyberramp.net>
  "Monika Prado" <monika@telia.com>
  "Mary L. Adams"  <mary@c-com.net>
  " Anna" <lindaizzo@home.com>
  "JUDY" <JUJUB@AOL.COM>
  "Tina" <tina08@yahoo.com>

Subject: - empty, or "Re:", or "Re:" followed by original Subject from real Inbox messsage (see Way #2 above)

Body: - empty

Attachment: randomly selected "filename + ext1 + ext2" where filename can be:

 Pics      (or PICS )
 Card     (or CARD)
 images    (or IMAGES)
 Me_nude  (or ME_NUDE)
 README
 Sorry_about_yesterday
 New_Napster_Site
 info
 news_doc  (or NEWS_DOC)
 docs   (or DOCS)
 HAMSTER
 Humor  (or HUMOR)
 YOU_are_FAT! (or YOU_ARE_FAT!)
 fun    (or FUN)
 stuff
 SEARCHURL
 SETUP
 S3MSONG

First extension can be: .DOC .ZIP .MP3 Second extension can be: .scr, .pif

For example: "info.DOC.scr"

The worm doesn't send infected messages twice to the same address. To do that it stores all affected emails in Windows system directory in PROTOCOL.DLL file, and checks this file content before sending a new message.

Badtrans.B installs itself to Windows system directory with KERNEL32.EXE name and registers it in registry key:

 HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
  Kernel32 = kernel32.exe

It drops keyboard hooker with KDLL.DLL name and sends stolen info to an email address at Hotmail. The log info is stored in Windows system directory with CP_25389.NLS name.

Additional Information

The worm's attachment might execute automatically when the emails are viewed. To do this Badtrans.B uses a known vulnerability in IE that allows automatic execution of an email attachment. This vulnerability is fixed and a patch for it is available on Microsoft site:

http://www.microsoft.com/windows/ie/downloads/critical/q323759ie/default.asp

The worm also drops a password stealing trojan KDLL.DLL detected by F-Secure Anti-Virus as 'Trojan.PSW.Hooker'.

More information on this trojan can be found from: http://www.F-Secure.com/v-descs/hooker.shtml

F-Secure Anti-Virus detects both variants of Badtrans worm and trojan components with the updates published on November 24, 2001 / 23:29 GMT.

[F-Secure Corporation and Kaspersky Lab, November 24th-26th, 2001]