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


Privacy Policy
Legal Notices
Contact Us

F-Secure Virus Descriptions : Bagle.K

[Summary] | [Disinfection] | [Detailed Description] | [Detection]



NAME:Bagle.K
ALIAS:I-Worm.Bagle.j, W32.Beagle.K@mm, W32/Bagle.K@mm

Summary

A new Bagle variant - Bagle.K was found on March 3rd, 2004 and is spreading in the wild. This variant is very similar to .J variant and also spreads as an executable file or in a password protected ZIP archive.

The worm has a new message for the NetSky worm author inside its body:

 Hey, NetSky, f*ck off you b*tch!

This indicates an on-going competition/war among virus writers of the currently widespread malware: Bagle and NetSky. However, this variant of Bagle doesn't uninstall NetSky worm, it only has a shorter text message to NetSky author.

Disinfection

F-Secure provides the special disinfection utility to eliminate Bagle.K worm infection. You can download this utility from our ftp site:

ftp://ftp.f-secure.com/anti-virus/tools/f-bagle.exe

ftp://ftp.f-secure.com/anti-virus/tools/f-bagle.zip

Disinfection instructions can be found here:

ftp://ftp.f-secure.com/anti-virus/tools/f-bagle.txt

System administrators who are using F-Secure Policy Manager, can distribute the tool as a JAR package automatically to all workstations.

System administrators can download the JAR version from:

http://www.europe.f-secure.com/tools/f-bagle.jar

ftp://ftp.europe.f-secure.com/anti-virus/tools/f-bagle.jar

Back to the Top


Detailed Description

The worm's file is a PE executable about 13 kilobytes in size packed with UPX file compressor. The unpacked file's size is over 22 kilobytes. The worm adds random garbage to the end of its file as a decoy.

The worm's lifecycle is about a year. If the date is 25th of April 2005, the worm uninstalls itself from a system by deleting its Registry keys and executable file.

The worm has backdoor functionality. When active, the worm listens on port 2745 for remote commands.

Installation to system

When the worm's file is run, it copies itself as WINSYS.EXE file to Windows System folder and creates a startup key for this file in the Registry:

 [HKCU\Software\Microsoft\Windows\CurrentVersion\Run]
 "ssate.exe" = "%winsysdir%\winsys.exe"

where %winsysdir% represents Windows System folder name. The worm also creates 2 more files in the same foder:

 winsys.exeopen
 winsys.exeopenopen

These files are copies of the worm's file, but with a different decoy.

Searching for e-mail addresses

To find victims' e-mail addresses the worm searches all available hard drives for the files with these extensions:

 .wab
 .txt
 .msg
 .htm
 .xml
 .dbx
 .mdx
 .eml
 .nch
 .mmf
 .ods
 .cfg
 .asp
 .php
 .pl
 .adb
 .tbb
 .sht
 .uin
 .cgi

The worm avoids spreading to e-mail addresses containing any of the following:

 @hotmail.com
 @msn.com
 @microsoft
 @avp.
 noreply
 local
 root@
 postmaster@

Spreading in e-mails

The worm spreads itself in e-mail messages as an executable with PIF or EXE extension or in a password protected ZIP archive that contains the worm's executable file with random name and EXE or PIF extension. The worm randomly selects subjects, message bodies and attachment names from its internal lists. The worm generates random passwords that it uses to encrypt its ZIP archive with.

The infected message's From field e-mail address is generated from a recipient's domain name and the following user name:

 management@
 administration@
 staff@
 noreply@
 support@

Here are variants of subjects that the worm uses:

 E-mail account security warning.
 Notify about using the e-mail account.
 Warning about your e-mail account.
 Important notify about your e-mail account.
 Email account utilization warning.
 Notify about your e-mail account utilization.
 E-mail account disabling warning.

The message body is composed from several different parts. The message begins with the following:

 Dear user of <recipient's domain>,
 Dear user of <recipient's domain> gateway e-mail server,
 Dear user of e-mail server "<recipient's domain>",
 Hello user of <recipient's domain> e-mail server,
 Dear user of "<recipient's domain>" mailing system,
 Dear user, the management of <recipient's domain> mailing system wants to let you know that,

followed by one of the following:

 Your e-mail account has been temporary disabled because of unauthorized access.
 Our main mailing server will be temporary unavaible for next two days,
 to continue receiving mail in these days you have to configure our free
 auto-forwarding service.

 Your e-mail account will be disabled because of improper using in next
 three days, if you are still wishing to use it, please, resign your
 account information.

 We warn you about some attacks on your e-mail account. Your computer may
 contain viruses, in order to keep your computer and e-mail account safe,
 please, follow the instructions.

 Our antivirus software has detected a large ammount of viruses outgoing
 from your email account, you may use our free anti-virus tool to clean up
 your computer software.

 Some of our clients complained about the spam (negative e-mail content)
 outgoing from your e-mail account. Probably, you have been infected by
 a proxy-relay trojan server. In order to keep your computer safe,
 follow the instructions.

followed by one of the following:

 For more information see the attached file.
 Further details can be obtained from attached file.
 Advanced details can be found in attached file.
 For details see the attach.
 For details see the attached file.
 For further details see the attach.
 Please, read the attach for further details.
 Pay attention on attached file.

followed by one of the following:

 The Management,
 Sincerely,
 Best wishes,
 Have a good day,
 Cheers,
 Kind regards,

followed by the following:

 The <recipient's domain> team
 http://www.<recipient's domain>

If the worm spreads in a password-protected ZIP archive, it adds ZIP password information to its message. It uses one of the following strings in the message body:

 For security reasons attached file is password protected. The password is "<pass>".
 For security purposes the attached file is password protected. Password is "<pass>".
 Attached file protected with the password for security reasons. Password is <pass>.
 In order to read the attach you have to use the following password: <pass>.

where <pass> is a randomly-generated password.

Here are variants of attachment names that the worm uses:

 Attach
 Information
 Readme
 Document
 Info
 TextDocument
 TextFile
 MoreInfo
 Message

As mentioned above, the attachment can have EXE, PIF or ZIP extension.

Spreading to shared folders

The worm spreads to shared folders on an infected computer. Such functionality allows the worm to spread through file sharing clients as well as it can copy itself to their shared folders.

When the worm searches for e-mail addresses on all available hard disks and it finds a folder which name contains 'shar' substring, it copies itself to that folder with one of the following names:

 Microsoft Office 2003 Crack, Working!.exe
 Microsoft Office XP working Crack, Keygen.exe
 Microsoft Windows XP, WinXP Crack, working Keygen.exe
 Porno Screensaver.scr
 Porno, sex, oral, anal cool, awesome!!.exe
 Porno pics arhive, xxx.exe
 Serials.txt.exe
 Windown Longhorn Beta Leak.exe
 Windows Sourcecode update.doc.exe
 XXX hardcore images.exe
 Opera 8 New!.exe
 WinAmp 5 Pro Keygen Crack Update.exe
 WinAmp 6 New!.exe
 Matrix 3 Revolution English Subtitles.exe
 Adobe Photoshop 9 full.exe
 Ahead Nero 7.exe
 ACDSee 9.exe

It should be noted that NetSky worm uses the similar technique, however it searches all available drives except CD-ROMs.

Killing processes of security software

The worm kills processes of anti-virus and security software that are associated with these files:

 ATUPDATER.EXE
 AVWUPD32.EXE
 AVPUPD.EXE
 LUALL.EXE
 DRWEBUPW.EXE
 ICSSUPPNT.EXE
 ICSUPP95.EXE
 UPDATE.EXE
 NUPGRADE.EXE
 ATUPDATER.EXE
 AUPDATE.EXE
 AUTODOWN.EXE
 AUTOTRACE.EXE
 AUTOUPDATE.EXE
 AVXQUAR.EXE
 CFIAUDIT.EXE
 MCUPDATE.EXE
 NUPGRADE.EXE
 OUTPOST.EXE
 AVLTMAIN.EXE

Connecting to websites

The worm periodically connects to the following websites:

 http://postertog.de/scr.php
 http://www.gfotxt.net/scr.php
 http://www.maiklibis.de/scr.php

The worm opens PHP scripts on these pages with certain parameters. This is done for tracking purposes as the site owner gets the IP address of an infected computer and the backdoor's port number and version ID.

At the time of writing this description the above web pages were not available. However it is recommended users to block access to them.

Another message for NetSky worm author

The worm has a new message for the NetSky worm author inside its body:

 Hey, NetSky, f*ck off you b*tch!


Back to the Top


Detection

F-Secure Anti-Virus detects Bagle.K worm since the following update:

[FSAV_Database_Version]

Version=2004-03-03_04


Back to the Top


Description: Katrin Tocheva, March 3rd, 2004;

Technical Details: Alexey Podrezov, March 3rd, 2004;

Description Updated: Alexey Podrezov, March 22nd, 2004;

F-Secure Corporation