Threat Encyclopedia

Selected viruses, spyware, and other threats: sorted alphabetically

Win32/Bagle.DB

   
Aliases: W32/Bagle-P (Sophos), Win32.Bagle.EA@mm (Bitdefender), W32/Bagle.FI.worm (Panda), W32.Beagle.CK@mm (Symantec)
Type: Mass-mailing E-mail worm
Systems Affected: 32-Bit Windows

Introduction:

Bagle.DB is a mass-mailing e-mail worm with peer-2-peer spreading functionality and a backdoor component. The size of the worm is 21392 bytes, and the worm is runtime compressed by FSG.

Installation and Autostart Techniques:

Upon execution, the worm copies itself into the System32 folder as "winhost.exe".

The worm adds the following key to the registry to make sure that it runs every time windows is started:

HKCU\Software\Microsoft\Windows\CurrentVersion\Run
" winhost.exe " = " %System%\winhost.exe"

Process Termination:

The worm terminates several programs:

AGENTSVR.EXE
ANTI-TROJAN.EXE
ANTIVIRUS.EXE
ANTS.EXE
APIMONITOR.EXE
APLICA32.EXE
APVXDWIN.EXE
ATCON.EXE
ATGUARD.EXE
ATRO55EN.EXE
ATUPDATER.EXE
ATWATCH.EXE
AUPDATE.EXE
AUTODOWN.EXE
AUTOTRACE.EXE
AUTOUPDATE.EXE
AVCONSOL.EXE
AVGSERV9.EXE
AVLTMAIN.EXE
AVprotect9x.exe
AVPUPD.EXE
AVSYNMGR.EXE
AVWUPD32.EXE
AVXQUAR.EXE
BD_PROFESSIONAL.EXE
BIDEF.EXE
BIDSERVER.EXE
BIPCP.EXE
BIPCPEVALSETUP.EXE
BISP.EXE
BLACKD.EXE
BLACKICE.EXE
BOOTWARN.EXE
BORG2.EXE
BS120.EXE
ccApp.exe
ccEvtMgr.exe
CDP.EXE
CFGWIZ.EXE
CFIADMIN.EXE
CFIAUDIT.EXE
CFINET.EXE
CFINET32.EXE
CLEAN.EXE
CLEANER.EXE
CLEANER3.EXE
CLEANPC.EXE
CMGRDIAN.EXE
CMON016.EXE
CPD.EXE
CPF9X206.EXE
CPFNT206.EXE
CV.EXE
CWNB181.EXE
CWNTDWMO.EXE
DEFWATCH.EXE
DEPUTY.EXE
DPF.EXE
DPFSETUP.EXE
DRWATSON.EXE
DRWEBUPW.EXE
ENT.EXE
ESCANH95.EXE
ESCANHNT.EXE
ESCANV95.EXE
EXANTIVIRUS-CNET.EXE
FAST.EXE
FIREWALL.EXE
FLOWPROTECTOR.EXE
FP-WIN_TRIAL.EXE
FRW.EXE
FSAV.EXE
FSAV530STBYB.EXE
FSAV530WTBYB.EXE
FSAV95.EXE
GBMENU.EXE
GBPOLL.EXE
GUARD.EXE
GUARDDOG.EXE
HACKTRACERSETUP.EXE
HTLOG.EXE
HWPE.EXE
IAMAPP.EXE
IAMSERV.EXE
ICLOAD95.EXE
ICLOADNT.EXE
ICMON.EXE
ICSSUPPNT.EXE
ICSUPP95.EXE
ICSUPPNT.EXE
IFW2000.EXE
IPARMOR.EXE
IRIS.EXE
JAMMER.EXE
KAVLITE40ENG.EXE
KAVPERS40ENG.EXE
KERIO-PF-213-EN-WIN.EXE
KERIO-WRL-421-EN-WIN.EXE
KERIO-WRP-421-EN-WIN.EXE
KILLPROCESSSETUP161.EXE
LDPRO.EXE
LOCALNET.EXE
LOCKDOWN.EXE
LOCKDOWN2000.EXE
LSETUP.EXE
LUALL.EXE
LUCOMSERVER.EXE
LUINIT.EXE
MCAGENT.EXE
MCUPDATE.EXE
MFW2EN.EXE
MFWENG3.02D30.EXE
MGUI.EXE
MINILOG.EXE
MOOLIVE.EXE
MRFLUX.EXE
MSCONFIG.EXE
MSINFO32.EXE
MSSMMC32.EXE
MU0311AD.EXE
NAV80TRY.EXE
navapsvc.exe
NAVAPW32.EXE
NAVDX.EXE
NavShExt.dll
NAVSTUB.EXE
NAVW32.EXE
NC2000.EXE
NCINST4.EXE
NDD32.EXE
NEOMONITOR.EXE
NETARMOR.EXE
NETINFO.EXE
NETMON.EXE
NETSCANPRO.EXE
NETSPYHUNTER-1.2.EXE
NETSTAT.EXE
NISSERV.EXE
NMAIN.EXE
NORTON_INTERNET_SECU_3.0_407.EXE
NPF40_TW_98_NT_ME_2K.EXE
NPFMESSENGER.EXE
NPROTECT.EXE
NSCHED32.EXE
NTVDM.EXE
NUPGRADE.EXE
NVARCH16.EXE
NWINST4.EXE
NWTOOL16.EXE
OSTRONET.EXE
OUTPOST.EXE
OUTPOSTINSTALL.EXE
OUTPOSTPROINSTALL.EXE
PADMIN.EXE
PANIXK.EXE
PAVPROXY.EXE
PCC2002S902.EXE
PCC2K_76_1436.EXE
PCCIOMON.EXE
PCDSETUP.EXE
PCFWALLICON.EXE
PCIP10117_0.EXE
PDSETUP.EXE
PERISCOPE.EXE
PERSFW.EXE
PF2.EXE
PFWADMIN.EXE
PINGSCAN.EXE
PLATIN.EXE
POPROXY.EXE
POPSCAN.EXE
PORTDETECTIVE.EXE
PPINUPDT.EXE
PPTBC.EXE
PPVSTOP.EXE
PROCEXPLORERV1.0.EXE
PROPORT.EXE
PROTECTX.EXE
PSPF.EXE
QCONSOLE.EXE
QSERVER.EXE
REGEDIT.EXE
REGEDT32.EXE
RESCUE.EXE
RESCUE32.EXE
RRGUARD.EXE
RSHELL.EXE
RULAUNCH.EXE
SAFEWEB.EXE
SAVSCAN.EXE
SBSERV.EXE
SD.EXE
SETUP_FLOWPROTECTOR_US.EXE
SETUPVAMEEVAL.EXE
SFC.EXE
SGSSFW32.EXE
SH.EXE
SHELLSPYINSTALL.EXE
SymWSC.exe
SYSEDIT.EXE
TAUMON.EXE
TAUSCAN.EXE
TRACERT.EXE
TRJSCAN.EXE
TRJSETUP.EXE
TROJANTRAP3.EXE
UNDOBOOT.EXE
UPDATE.EXE
VBCMSERV.EXE
VBCONS.EXE
VBUST.EXE
VIRUSMDPERSONALFIREWALL.EXE
W32DSM89.EXE
WATCHDOG.EXE
WEBSCANX.EXE
WHOSWATCHINGME.EXE
WINRECON.EXE
WNT.EXE
WRADMIN.EXE
WRCTRL.EXE
WSBGATE.EXE
WYVERNWORKSFIREWALL.EXE
XPF202EN.EXE
ZONALM2601.EXE
ZONEALARM.EXE

E-mail Harvesting:

The worm scans all fixed disks and collects e-mail addresses from files ending with one of the following file extensions:

.adb .asp .cfg .dbx .dhtm .eml .htm .html .jsp .mbx .mdx .mht .mmf .msg .nch .ods .oft
.php .sht .shtm .shtml .stm .tbb .txt .uin .wab.wsh .xls .xml

DNS Resolving:

The worm performs DNS e-mail-exchange-queries to find an appropriate mail server for each domain it tries to send itself to. Bagle.DB performs, in this case, a so called "MX lookup".

If this DNS request for the mail-server fails, the worm uses the following static DNS Server: 66.140.24.233

E-mail Sender:

The worm uses spoofed email addresses collected during E-mail harvesting.

Bagle.DB uses its own SMTP (Simple Mail Transfer Protocol) engine to mass-mail copies of itself to other e-mail addresses.

E-mail Subjects:

Bagle.DB randomly selects an e-mail subject out of the following list:

Re: Msg reply
Re: Hello
Re: Yahoo!
Re: Thank you!
Re: Thanks :)
RE: Text message
Re: Document
Re: Hi
Re: { empty }
Re: Incoming Message
RE: Incoming Msg
RE: Message Notify
RE: Protected message
Incoming message
Notification
Changes..
Update
Fax Message
Protected message
Forum notify
Site changes

Message Body:

The E-mail contains one of the following message texts:

Read the attach.
Your file is attached.
More info is in attach
See attach.
Please, have a look at the attached file.
Your document is attached.
Please, read the document.
Attach tells everything.
Attached file tells everything.
Check attached file for details.
Check attached file.
Pay attention at the attach.
See the attached file for details.
Message is in attach
Here is the file.

Followed by one of the next texts:

For security reasons attached file is password protected. The password is {PASSWORDIMAGE}

For security purposes the attached file is password protected. Password -- {PASSWORDIMAGE}

Note: Use password to open archive.
Attached file is protected with the password for security reasons. Password is {PASSWORDIMAGE}

In order to read the attach you have to use the following password: {PASSWORDIMAGE}

Archive password: {PASSWORDIMAGE}

Password - {PASSWORDIMAGE}

Password: {PASSWORDIMAGE}

E-mail Attachments:

The worm attaches a copy of itself as a ZIP-file using one of the following file names:

MoreInfo.exe
Message.exe
Details.exe
text_document.exe
Updates.exe
Readme.exe
Document.exe
Info.exe
Details.exe
Information.exe

The worm avoids e-mail addresses which contain parts of the following list:

@microsoft rating@ f-secur news update anyone@ bugs@ contract@ feste
gold-certs@ help@ info@ nobody@ noone@ kasp admin
icrosoft support ntivi unix bsd linux listserv certific sopho @foo @iana free-av
@messagelab winzip google winrar samples abuse panda cafee spam pgp @avp.
Noreply local root@ postmaster@

Peer-2-Peer Network Spreading

While harvesting emails, the worm compares the directory names with "shar". If the directory name contains "shar" (for instance "My Shared Folder" for Kazaa) the worm then places copies of itself into this folder as:

Microsoft Office 2003 Crack, Working!.exe
Microsoft Windows XP, WinXP Crack, working Keygen.exe
Norton Antivirus, working Keygen.exe
Microsoft Office XP working Crack, Keygen.exe
Porno, sex, oral, anal cool, awesome!!.exe
Porno Screensaver.scr
Serials.txt.exe
KAV 5.0 { no extension }
Kaspersky Antivirus 5.0 { no extension }
Porno pics arhive, xxx.exe
Windows Sourcecode update.doc.exe
Ahead Nero 7.exe
Windown Longhorn Beta Leak.exe
Opera 8 New!.exe
XXX hardcore images.exe
WinAmp 6 New!.exe
WinAmp 5 Pro Keygen Crack Update.exe
Adobe Photoshop 9 full.exe
Matrix 3 Revolution English Subtitles.exe
Lolita porn.avi.exe
nude lolita.jpg.{lots of spaces}exe
Doom3_nocd.exe
HalfLife2_noCD.exe
12 year old Katia sucks and fucks me in lots of positions. (teen preteen anal cumshot sex young whore school lolita.avi.{lots of spaces}exe

Backdoor Component:

The worm also provides backdoor functionality with the following functions:

SOCKS4 Proxy
SOCKS5 Proxy
Downloading files
Executing files
Uninstalling itself
SMTP Server Relay Start for Spamming

At a randomly generated port.

Notifying Backdoor Component

Bagle.DB posts the compromised IP Address and Port to the following web servers:

http://thehiphops.com
http://68.24.54.122
http://paromy.ru/_old_img
http://www.ladywears.com
http://64.12.212.12
http://nine-one-one.ca
http://www.evocreations.com
http://sexyforum.ru
http://rescan.com
http://www.cardgoods.com
http://blockism.net/img
http://talent2k.com/img
http://64.246.44.10
http://motivethree.com
http://zalala.net
http://biiig.org
http://tovarisi.net

The worm also stores this generated values in the registry:

SOFTWARE\Timeout\uid = { ID }
SOFTWARE\Timeout\pid = { generated pid }
SOFTWARE\Timeout\port = { the backdoor port }

Downloader Component:

Bagle.DB tries to download and to run http://www.cardgoods.com/{REMOVED}/3.exe as "test.exe" in the windows folder. If this succeeds it creates the following registry key:

HKCU\Software\Timeout\"test.exe"

History: Analysis and Write-up by: Michael St. Neitzel