Virus:Worm/Zafi.B
Date discovered:11/06/2004
Type:Worm
In the wild:Yes
Reported Infections:High
Distribution Potential:Medium to high
Damage Potential:Medium
Static file:No
File size:12.800 Bytes
VDF version:6.25.00.91

 General Methods of propagation:
   • Email
   • Peer to Peer


Aliases:
   •  Symantec: W32.Erkez.B@mm
   •  Mcafee: W32/Zafi.b@MM
   •  Kaspersky: Email-Worm.Win32.Zafi.b
   •  TrendMicro: PE_ZAFI.B
   •  F-Secure: Email-Worm.Win32.Zafi.b
   •  Sophos: W32/Zafi-B
   •  Panda: W32/Zafi.B.worm
   •  Grisoft: I-Worm/Zafi.B
   •  VirusBuster: I-Worm.Zafi.B
   •  Eset: Win32/Zafi.B
   •  Bitdefender: Win32.Zafi.B@mm


Platforms / OS:
   • Windows 95
   • Windows 98
   • Windows 98 SE
   • Windows NT
   • Windows ME
   • Windows 2000
   • Windows XP
   • Windows 2003


Side effects:
   • Uses its own Email engine
   • Lowers security settings
   • Registry modification

 Files It copies itself to the following locations:
   • %SYSDIR%\%random character string%.exe
   • %SYSDIR%\%random character string%.dll
   • %randomly chosen directory%\%existing file or directory%_update.exe



It overwrites the following files.
%randomly chosen directory%\%existing file or directory%

File extension:
   • .exe



It deletes the following files:
   • %WINDIR%\fvprotect.exe
   • %WINDIR%\winlogon.exe
   • %WINDIR%\jammer2nd.exe
   • %WINDIR%\services.exe



The following files are created:

– Non malicious file:
   • c:\sys.txt

– Files that contain collected email addresses:
   • %SYSDIR%\%random character string%.dll
   • %SYSDIR%\%random character string%.dll
   • %SYSDIR%\%random character string%.dll
   • %SYSDIR%\%random character string%.dll
   • %SYSDIR%\%random character string%.dll
   • %SYSDIR%\%random character string%.dll
   • %SYSDIR%\%random character string%.dll
   • %SYSDIR%\%random character string%.dll
   • %SYSDIR%\%random character string%.dll
   • %SYSDIR%\%random character string%.dll




It tries to executes the following file:

– Filename:
   • %PROGRAM FILES%\Internet Explorer\iexplore.exe
using the following command line arguments: %visited URL%

 Registry The following registry key is added in order to run the process after reboot:

– [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
   • _Hazafibb = %SYSDIR%\%random character string%.exe



The following registry key is added:

– [HKLM\SOFTWARE\Microsoft\_Hazafibb]

 Email It contains an integrated SMTP engine in order to send emails. A direct connection with the destination server will be established. The characteristics are described in the following:
The language in which the email is sent out depends on the Top-Level-Domain.


From:
The sender address is spoofed.


To:
– Email addresses found in specific files on the system.


Email design:
 


Subject: Don`t worry, be happy!
Body:
   • I`m in hurry, but i still love ya...
     (as you can see on the picture)
     
     Bye - Bye: %username from sender's email address%
Attachment:
   • www.ecard.com.funny.picture.index.nude.php356.pif
 


Subject: Check this out kid!!!
Body:
   • Send me back bro, when you`ll be done...(if you know what i mean...)
     
     See ya, %username from sender's email address%
 


Subject: You`ve got 1 VoiceMessage!
Body:
   • Dear Customer!
     
     You`ve got 1 VoiceMessage from voicemessage.com website!
     Sender: %username from sender's email address%
     You can listen your Virtual VoiceMessage at the following link:
     http://virt.voicemessage.com/index.listen.php2=35affv or by clicking the attached link.
     Send VoiceMessage! Try our new virtual VoiceMessage Empire!
     Best regards: SNAF.Team (R).
Attachment:
   • link.voicemessage.com.listen.index.php1Ab2c.pif
 


Subject: Flashcard fuer Dich!
Body:
   • Hallo!
     
     %username from sender's email address% hat dir eine elektronische Flashcard geschickt.
     Um die Flashcard ansehen zu koennen, benutze in deinem Browser
     einfach den nun folgenden link:
     http://flashcard.de/interaktiv/viewcards/view.php3?card=267BSwr34
     
     Viel Spass beim Lesen wuenscht Ihnen ihr...
Attachment:
   • link.flashcard.de.viewcard34.php.2672aB.pif
 


Subject: Ecard!
Body:
   • De cand te-am cunoscut inima mea are un nou ritm!
     %username from sender's email address%
Attachment:
   • link.showcard.index.phpAv23.ritm.pif
 


Subject: Ingyen SMS!
Body:
   • ------------------------ hirdetés -----------------------------
     A sikeres 777sms.hu és az axelero.hu támogatásával újra
     indul az ingyenes sms küldõ szolgáltatás! Jelenleg ugyan
     korlátozott számban, napi 20 ingyen smst lehet felhasználni.
     Küldj te is SMST! Nehány kattintás és a mellékelt regisztrációs
     lap kitöltése után azonnal igénybevehetõ! Bõvebb információt
     a www.777sms.hu oldalon találsz, de siess, mert az elsõ ezer
     felhasználó között értékes nyereményeket sorsolunk ki!
     ------------------------ axelero.hu ---------------------------
Attachment:
   • regiszt.php?3124freesms.index777.pif
 


Subject: Importante!
Body:
   • Informacion importante que debes conocer, -%username from sender's email address%
Attachment:
   • link.informacion.phpV23.text.message.pif
 


Subject: E-Kort!
Body:
   • Mit hjerte banker for dig!
Attachment:
   • link.ekort.index.phpV7ab4.kort.pif
 


Subject: E-vykort!
Body:
   • Till min Alskade...
Attachment:
   • link.vykort.showcard.index.phpBn23.pif
 


Subject: E-Postkort!
Body:
   • Vakre roser jeg sammenligner med deg...
Attachment:
   • ink.postkort.showcard.index.phpAe67.pif
 


Subject: E-postikorti!
Body:
   • Iloista kesaa!
Attachment:
   • link.postikorti.showcard.index.phpGz42.pif
 


Subject: Atviruka!
Body:
   • Linksmo gimtadieno!
Attachment:
   • link.atviruka.showcard.index.phpGz42.pif
 


Subject: E-Kartki!
Body:
   • W Dniu imienin...
Attachment:
   • link.kartki.showcard.index.phpVg42.pif
 


Subject: Cartoe Virtuais!
Body:
   • Te amo...
Attachment:
   • link.cartoe.viewcard.index.phpYj39.pif
 


Subject: Er staat een eCard voor u klaar!
Body:
   • Hallo!
     
     %username from sender's email address% heeft u een eCard gestuurd via de website nederlandse
     taal in het basisonderwijs...
     U kunt de kaart ophalen door de volgende url aan te klikken of te
     kopiren in uw browser link:
     http://postkaarten.nl/viewcard.show53.index=04abD1
     
     Met vriendelijke groet,
     De redactie taalsite primair onderwijs...
Attachment:
   • postkaarten.nl.link.viewcard.index.phpG4a62.pif
 


Subject: Elektronicka pohlednice!
Body:
   • Ahoj!
     
     Elektronick pohlednice ze serveru http://www.seznam.cz
     
Attachment:
   • link.seznam.cz.pohlednice.index.php2Avf3.pif
 


Subject: E-carte!
Body:
   • %username from sender's email address% vous a envoye une E-carte partir du site zdnet.fr
     Vous la trouverez, l\'adresse suivante link:
     http://zdnet.fr/showcard.index.php34bs42
     www.zdnet.fr, plus de 3500 cartes virtuelles, vos pages web
     en 5 minutes, du dialogue en direct...
Attachment:
   • link.zdnet.fr.ecarte.index.php34b31.pif
 


Subject: Ti e stata inviata una Cartolina Virtuale!
Body:
   • Ciao!
     
     %username from sender's email address% ha visitato il nostro sito, cartolina.it e ha creato una
     cartolina virtuale per te! Per vederla devi fare click
     sul link sottostante: http://cartolina.it/asp.viewcard=index4g345a
     Attenzione, la cartolina sara visibile sui nostri server per
     2 giorni e poi verra rimossa automaticamente.
 


Subject: Tessek mosolyogni!!!
Body:
   • Ha ez a kép sem tud felviditani, akkor feladom!
     
     Sok puszi: %username from sender's email address%
 


Subject: Soxor Csok!
Body:
   • Szia!
     
     Aranyos vagy, jó volt dumcsizni veled a neten!
     Remélem tetszem, és szeretném ha te is küldenél képet
     magadról, addig is csók: %username from sender's email address%
Attachment:
   • anita.image043.jpg.pif



The email may look like one of the following:




 Mailing Search addresses:
It searches the following files for email addresses:
   • htm; wab; txt; dbx; tbb; asp; php; sht; adb; mbx; eml; pmr


Avoid addresses:
It does not send emails to addresses containing one of the following strings:
   • win; use; info; help; admi; webm; micro; msn; hotm; suppor; syma; vir;
      trend; panda; yaho; cafee; sopho; google; kasper; msn; office; nero;
      icq; game; winra; winzi; divx; movie; total; wina

 P2P In order to infect other systems in the Peer to Peer network community the following action is performed:  


   It searches for directories that contain one of the following substrings:
   • share
   • upload

   If successful, the following files are created:
   • winamp 7.0 full_install.exe
   • Total Commander 7.0 full_install.exe

   These files are copies of the malware itself.

 Process termination  Disallow run processes that contain one of the following strings in the filename:
   • regedit
   • msconfig
   • task

 DoS Right after it becomes active, it starts DoS attacks against the following destinations:
   • www.parlament.hu
   • www.virusbuster.hu
   • www.virushirado.hu
   • www.2f.hu

 Miscellaneous Mutex:
It creates the following Mutex:
   • _Hazafibb

 File details Programming language:
The malware program was written in Assembler.


Runtime packer:
In order to aggravate detection and reduce size of the file it is packed with the following runtime packer:
   • FSG

Description inserted by Andrei Gherman on Thursday, June 28, 2007
Description updated by Andrei Gherman on Thursday, June 28, 2007

Back . . . .