Threat Encyclopedia

Selected viruses, spyware, and other threats: sorted alphabetically

Win32/Bagle.CM

   
Aliases: Trojan.Tooso.Q (Symantec), Win32.Bagle.DD@mm (Bitdefender), Email-Worm.Win32.Bagle.dg (Kaspersky), Trj/Mitglieder.FB (Panda)
Type: Trojan Dropper
Systems Affected: 32-bit Windows

Introduction:

Bagle.CM is a typical Trojan Dropper. The size is between 35 KB and 40 KB and is runtime compressed / protected by an executable file compressor. The dropper installs a downloader and
terminates several security related software programs.

Note: In the following text, %windir% denotes Windows directory (e.g. C:\WINDOWS) and %system% denotes Windows System directory (e.g. C:\WINDOWS\SYSTEM32) as they differ on various versions of Microsoft Windows.

Installation and Autostart Techniques:

Upon execution, the Trojan drops files named "wiwshost.exe" (8603 bytes) and "winshost.exe" (a copy of the dropper) into the Windows System folder

Wiwshost.exe is a DLL file which is injected into the Explorer.exe process and is the main component downloader. The file is runtime packed.

The trojan adds the following keys to the registry to ensure its automatic execution upon startup:

HKLM\Software\Microsoft\Windows\CurrentVersion\Run
"winshost.exe" = "%SYSTEM%\winshost.exe"

HKCU\Software\Microsoft\Windows\CurrentVersion\Run
"winshost.exe" = "%SYSTEM%\winshost.exe"

Note: When the trojan is run for the very first time, it creates a status key and executes Notepad:

HKCU\Software\FirstRun
"FirstRunRR" = (DWORD) 1

If the trojan finds any of the following values

Symantec NetDriver Monitor
ccApp
NAV CfgWiz
SSC_UserPrompt
McAfee Guardian
McAfee.InstantUpdate.Monitor
APVXDWIN
KAV50
avg7_cc
avg7_emc
Zone Labs Client

at

HKLM\Software\Microsoft\Windows\CurrentVersion\Run

and / or

Symantec
McAfee
KasperskyLab
Agnitum
Panda Software
Zone Labs

at

HKLM\SOFTWARE

then the trojan removes these startup values with its own thread that watches for these values.

The malicious process WIWSHOST is now running 'cloaked' inside the Explorer Task.

The existing %system32%\Drivers\etc\hosts file might be overwritten with the following data

127.0.0.1 localhost

Subsequently, the trojan kills services with the following names:

wuauserv
PAVSRV
PAVFNSVR
PSIMSVC
Pavkre
PavProt
PREVSRV
PavPrSrv
SharedAccess
navapsvc
NPFMntor
Outpost Firewall
SAVScan
SBService
Symantec Core LC
ccEvtMgr
SNDSrvc
ccPwdSvc
ccSetMgr.exe
SPBBCSvc
KLBLMain
avg7alrt
avg7updsvc
vsmon
CAISafe
avpcc
fsbwsys
backweb client - 4476822
backweb client-4476822
fsdfwd
F-Secure Gatekeeper Handler Starter
FSMA
KAVMonitorService
NProtectService
Norton Antivirus Server
VexiraAntivirus
dvpinit
dvpapi
schscnt
BackWeb Client - 7681197
AVPCC
Norman NJeeves
NVCScheduler
nvcoas
Norman ZANDA
PASSRV
SweepNet
SWEEPSRV.SYS
NOD32ControlCenter
NOD32Service
PCCPFW
Tmntsrv
AvxIni
XCOMM
ravmon8
SmcService
BlackICE
PersFW
McAfee Firewall
OutpostFirewall
NWService
alerter
sharedaccess
NISUM
NISSERV
nwclnth
nwclntg
nwclnte
nwclntf
nwclntd
nwclntc
kavsvc
DefWatch
Symantec AntiVirus Client
NSCTOP
SAVFMSE
ccSetMgr
VisNetic AntiVirus Plug-in
McShield
AlertManger
McAfeeFramework
AVExch32Service
AVUPDService
McTaskManager
Network Associates Log Service
Outbreak Manager
MCVSRte
mcupdmgr.exe
AvgServ
AvgCore
AvgFsh
awhost32
Ahnlab task Scheduler
MonSvcNT
V3MonNT
V3MonSvc
FSDFWD

After that, the trojan seeks the file "mysuperprog.exe". If this file is found, it will be deleted. The trojan creates its own thread for this purpose.

The trojan will rename anti-virus and firewall related files.
This DLL thread also renames files belonging to security and anti-virus software. The following files will be renamed:

CCSETMGR.EXE
CCEVTMGR.EXE
NAVAPSVC.EXE
NPFMNTOR.EXE
symlcsvc.exe
SPBBCSvc.exe
SNDSrvc.exe
ccApp.exe
ccl30.dll
ccvrtrst.dll
LUALL.EXE
AUPDATE.EXE
Luupdate.exe
LUINSDLL.DLL
RuLaunch.exe
CMGrdian.exe
Mcshield.exe
outpost.exe
Avconsol.exe
Vshwin32.exe
VsStat.exe
Avsynmgr.exe
kavmm.exe
Up2Date.exe
KAV.exe
avgcc.exe
avgemc.exe
zonealarm.exe
zatutor.exe
zlavscan.dll
zlclient.exe
isafe.exe
cafix.exe
vsvault.dll
av.dll
vetredir.dll

… to these names:

C1CSETMGR.EXE
CC1EVTMGR.EXE
NAV1APSVC.EXE
NPFM1NTOR.EXE
s1ymlcsvc.exe
SP1BBCSvc.exe
SND1Srvc.exe
ccA1pp.exe
cc1l30.dll
ccv1rtrst.dll
LUAL1L.EXE
AUPD1ATE.EXE
Luup1date.exe
LUI1NSDLL.DLL
RuLa1unch.exe
CM1Grdian.exe
Mcsh1ield.exe
outp1ost.exe
Avc1onsol.exe
Vshw1in32.exe
Vs1Stat.exe
Av1synmgr.exe
kav12mm.exe
Up222Date.exe
K2A2V.exe
avgc3c.exe
avg23emc.exe
zonealarm.exe
zatutor.exe
zlavscan.dll
zo3nealarm.exe
zatu6tor.exe
zl5avscan.dll
zlcli6ent.exe
is5a6fe.exe
c6a5fix.exe
vs6va5ult.dll
a5v.dll
ve6tre5dir.dll

The affected software keeps working until next system restart. After the restart, the software will not load because the executable files were renamed by the trojan. Subsequently, the trojan terminates services with the following names:

SharedAccess
wscsvc

In the next step, the trojan creates a thread that kills processes with the following names

NUPGRADE.EXE
MCUPDATE.EXE
ATUPDATER.EXE
AUPDATE.EXE
AUTOTRACE.EXE
AUTOUPDATE.EXE
FIREWALL.EXE
ATUPDATER.EXE
LUALL.EXE
DRWEBUPW.EXE
AUTODOWN.EXE
NUPGRADE.EXE
OUTPOST.EXE
ICSSUPPNT.EXE
ICSUPP95.EXE
ESCANH95.EXE
AVXQUAR.EXE
ESCANHNT.EXE
UPGRADER.EXE
AVXQUAR.EXE
AVWUPD32.EXE
AVPUPD.EXE
CFIAUDIT.EXE
UPDATE.EXE

Finally, the trojan tries to download a file from several web servers. The file is saved to the Windows directory as '_re_file.exe' and is executed via ShellExecute. The file downloaded was available at the following internet locations:

http://{ Removed }yannick-spruyt.be/osa6.gif
http://{ Removed }yayadownload.com/osa6.gif
http://{ Removed }yesterdays.co.za/osa6.gif
http://{ Removed }yesterdays.co.za/osa6.gif
http://{ Removed }yshkj.com/osa6.gif
http://{ Removed }yshkj.com/osa6.gif
http://{ Removed }zakazcd.dp.ua/osa6.gif
http://{ Removed }students.stir.ac.uk/osa6.gif
http://{ Removed }zenesoftware.com/osa6.gif
http://{ Removed }zentek.co.za/osa6.gif
http://{ Removed }czzm.com/osa6.gif
http://{ Removed }izoli.sk/osa6.gif
http://{ Removed }zorbas.az/osa6.gif
http://{ Removed }zsbersala.edu.sk/osa6.gif
http://{ Removed }triptonic.ch/osa6.gif
http://{ Removed }tv-marina.com/osa6.gif
http://{ Removed }travelourway.com/osa6.gif
http://{ Removed }megaserve.net/osa6.gif
http://{ Removed }trgd.dobrcz.pl/osa6.gif
http://{ Removed }mild.at/osa6.gif
http://{ Removed }mild.at/osa6.gif
http://{ Removed }kingsley.ch/osa6.gif
http://{ Removed }mild.at/osa6.gif
http://{ Removed }elvis-presley.ch/osa6.gif
http://{ Removed }gomyhome.com.tw/osa6.gif
http://{ Removed }ider.cl/osa6.gif
http://{ Removed }ascolfibras.com/osa6.gif
http://{ Removed }on24.ee/osa6.gif
http://{ Removed }xojc.com/osa6.gif
http://{ Removed }x-treme.cz/osa6.gif
http://{ Removed }gymzn.cz/osa6.gif
http://{ Removed }gymzn.cz/osa6.gif
http://{ Removed }gymzn.cz/osa6.gif
http://{ Removed }xiantong.net/osa6.gif
http://{ Removed }xmpie.com/osa6.gif
http://{ Removed }xmpie.com/osa6.gif
http://{ Removed }xmtd.com/osa6.gif
http://{ Removed }onlink.net/osa6.gif
http://{ Removed }discoteka-funfactory.com/osa6.gif
http://{ Removed }toussain.be/osa6.gif
http://{ Removed }idcs.be/osa6.gif
http://{ Removed }gepeters.org/osa6.gif
http://{ Removed }angham.de/osa6.gif
http://{ Removed }idaf.de/osa6.gif
http://{ Removed }bolz.at/osa6.gif
http://{ Removed }societaet.de/osa6.gif
http://{ Removed }ppm-alliance.de/osa6.gif
http://{ Removed }udc-cassinadepecchi.it/osa6.gif
http://{ Removed }universe.sk/osa6.gif
http://{ Removed }jingjuok.com/osa6.gif
http://{ Removed }gemtrox.com.tw/osa6.gif
http://{ Removed }uspowerchair.com/osa6.gif
http://{ Removed }steripharm.com/osa6.gif
http://{ Removed }beall-cpa.com/osa6.gif
http://{ Removed }jcm-american.com/osa6.gif
http://{ Removed }vercruyssenelektro.be/osa6.gif
http://{ Removed }centrovestecasa.it/osa6.gif
http://{ Removed }vet24h.com/osa6.gif
http://{ Removed }vinimeloni.com/osa6.gif
http://{ Removed }vnrvjiet.ac.in/osa6.gif
http://{ Removed }vote2fateh.com/osa6.gif
http://{ Removed }marketvw.com/osa6.gif
http://{ Removed }formholz.at/osa6.gif
http://{ Removed }checkonemedia.nl/osa6.gif
http://{ Removed }fotomax.fi/osa6.gif
http://{ Removed }vw.press-bank.pl/osa6.gif
http://{ Removed }wamba.asn.au/osa6.gif
http://{ Removed }cz-wanjia.com/osa6.gif
http://{ Removed }czwanqing.com/osa6.gif
http://{ Removed }wdlp.co.za/osa6.gif
http://{ Removed }automobilonline.de/osa6.gif
http://{ Removed }bangyan.cn/osa6.gif
http://{ Removed }21ebuild.com/osa6.gif
http://{ Removed }eagle.com.cn/osa6.gif
http://{ Removed }eagleclub.com.cn/osa6.gif
http://{ Removed }eagleclub.com.cn/osa6.gif
http://{ Removed }sanjinyuan.com/osa6.gif
http://{ Removed }designgong.org/osa6.gif
http://{ Removed }fermegaroy.com/osa6.gif
http://{ Removed }welchcorp.com/osa6.gif
http://{ Removed }snsphoto.com/osa6.gif
http://{ Removed }soeco.org/osa6.gif
http://{ Removed }softmajor.ru/osa6.gif
http://{ Removed }solt3.org/osa6.gif
http://{ Removed }sqnsolutions.com/osa6.gif
http://{ Removed }spacium.biz/osa6.gif
http://{ Removed }speedcom.home.pl/osa6.gif
http://{ Removed }trago.com.pt/osa6.gif
http://{ Removed }spirit-in-steel.at/osa6.gif
http://{ Removed }spy.az/osa6.gif
http://{ Removed }st-paulus-bonn.dehtdocs/osa6.gif
http://{ Removed }stbs.com.hk/osa6.gif
http://{ Removed }acsohio.com/osa6.gif
http://{ Removed }olva.com.pe/osa6.gif
http://{ Removed }subsplanet.com/osa6.gif
http://{ Removed }sungodbio.com/osa6.gif
http://{ Removed }superbetcs.com/osa6.gif
http://{ Removed }vnn.vn/osa6.gif
http://{ Removed }sydolo.com/osa6.gif
http://{ Removed }szdiheng.com/osa6.gif
http://{ Removed }agria.hu/osa6.gif
http://{ Removed }externet.hu/osa6.gif
http://{ Removed }hondenservice.be/osa6.gif
http://{ Removed }ehc.hu/osa6.gif
http://{ Removed }tcicampus.net/osa6.gif
http://{ Removed }contentproject.com/osa6.gif
http://{ Removed }festivalteatrooccidente.com/osa6.gif
http://{ Removed }techni.com.cn/osa6.gif
http://{ Removed }festivalteatrooccidente.com/osa6.gif
http://{ Removed }thaifast.com/osa6.gif
http://{ Removed }thaiventure.com/osa6.gif
http://{ Removed }andi.com.vn/osa6.gif
http://{ Removed }replayu.com/osa6.gif
http://{ Removed }th-mutan.com/osa6.gif
http://{ Removed }thetexasoutfitter.com/osa6.gif
http://{ Removed }tmhcsd1987.friko.pl/osa6.gif
http://{ Removed }thenextstep.tv/osa6.gif
http://{ Removed }thenextstep.tv/osa6.gif
http://{ Removed }wesartproductions.com/osa6.gif
http://{ Removed }wilsonscountry.com/osa6.gif
http://{ Removed }windstar.pl/osa6.gif
http://{ Removed }wise-industries.com/osa6.gif
http://{ Removed }witold.pl/osa6.gif
http://{ Removed }witold.pl/osa6.gif
http://{ Removed }51.net/osa6.gif
http://{ Removed }slovanet.sk/osa6.gif
http://{ Removed }wombband.com/osa6.gif
http://{ Removed }datanet.hu{ Removed }datanet.hu/osa6.gif
http://{ Removed }uw.hu/osa6.gif
http://{ Removed }dgy.com.cn/osa6.gif
http://{ Removed }bs-security.de/osa6.gif
http://{ Removed }die-fliesen.de/osa6.gif
http://{ Removed }dom-invest.com.pl/osa6.gif
http://{ Removed }engelhardtgmbh.de/osa6.gif
http://{ Removed }triapex.cz/osa6.gif
http://{ Removed }fahrschule-herb.de/osa6.gif
http://{ Removed }fahrschule-lesser.de/osa6.gif
http://{ Removed }gimex-messzeuge.de/osa6.gif
http://{ Removed }inside-tgweb.de/osa6.gif
http://{ Removed }jue-bo.com/osa6.gif
http://{ Removed }niko.de/osa6.gif
http://{ Removed }nikogmbh.com/osa6.gif
http://{ Removed }renegaderc.com/osa6.gif
http://{ Removed }sachsenbuecher.de/osa6.gif
http://{ Removed }scvanravenswaaij.nl/osa6.gif
http://{ Removed }spoden.de/osa6.gif
http://{ Removed }sportnf.com/osa6.gif
http://{ Removed }sweb.cz/osa6.gif
http://{ Removed }tg-sandhausen-basketball.de/osa6.gif
http://{ Removed }thefunkiest.com/osa6.gif
http://{ Removed }thefunkiest.com/osa6.gif
http://{ Removed }jeoushinn.com/osa6.gif
http://{ Removed }presley.ch/osa6.gif

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