Threat description




A new variant of Zafi worm - Zafi.B is spreading. While the original Zafi.A uses only Hungarian, the new Zafi.B spreads in email in English, Italian, Spanish, Russian, Swedish etc.The worm sends itself in emails mostly as .pif attachment and in rare cases it sends .exe or .com.


Automatic action

Once detected, the F-Secure security product will automatically disinfect the suspect file by either deleting it or renaming it.

More scanning & removal options

More information on the scanning and removal options available in your F-Secure product can be found in the Help Center.

You may also refer to the Knowledge Base on the F-Secure Community site for further assistance.

Eliminating a Local Network Outbreak

If the infection is in a local network, please follow the instructions on this webpage:

Technical Details

Zafi.B spreads in FSG! packed form which is 12800 bytes in size. The body unpacks to around 30 KiB of hand-written assembly code.

System Infection

When Zafi.B is started it copies itself to the Windows System Directory with a random .DLL and random .EXE name. The .EXE file is added to the registry as

[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]   "_Hazafibb" = "%SysDir%\.exe"    

Several additional files are created in the System Directory with random name and .DLL extension. The worm keeps its internal data in those.

Zafi.B enumerates all the directories in the system and copies itself as either 'winamp 7.0 full_install.exe' or 'Total Commander 7.0 full_install.exe' to the ones that contain 'share' or 'upload' in their name.

Email Propagation

Zafi.B looks into the Windows Address Book and different files and tries to gather email addresses. Files with the following extensions are checked:

htm  wab  txt  dbx  tbb  asp  php  sht  adb  mbx  eml  pmr  

Using its own SMTP engine the worm sends messages with infected attachments in many different languages.

For email addresses in the following domains the worms sends messages in the respective languages:

.hu .sp .ru .dk .ro .se .no .fi .lt .pl .pt .de .nl .cz .fr .it .mx .at   

For Hungarian recipients there are three different messages. Any recipient that is not on the list (including .COM, .NET, etc.) is sent one of the three predefined English messages.

Sender: Anita  Subject: eIngyen SMS!  Attachment: "regiszt.php?3124freesms.index777.pif"  ------------------------ hirdet©s -----------------------------  A sikeres es az timogatisival ºjra  indul az ingyenes sms k¼ld? szolgiltatis! Jelenleg ugyan  korlitozott szimban, napi 20 ingyen smst lehet felhasznilni.  K¼ldj te is SMST! Nehiny kattintis es a mellekelt regisztricios  lap kit¶ltese utin azonnal igenybevehet?! B?vebb informiciot  a oldalon talilsz, de siess, mert az els? ezer  felhasznilo k¶z¶tt ertekes nyeremenyeket sorsolunk ki!  ------------------------ ---------------------------  Sender: Anita  Subject: eTessek mosolyogni!!!  Attachment: "meztelen csajok fociznak.flash.jpg.pif"  Ha ez a kep sem tud felviditani, akkor feladom!  Sok puszi:  Sender: Anita  Subject: eSoxor Csok!  Attachment: "anita.image043.jpg.pif"  Sender: Claudia  Subject: eImportante!  Attachment: "link.informacion.phpV23.text.message.pif"  Informacion importante que debes conocer, -  Sender: Katya  Subject: oKatya  Attachment: ""  ADAOIU   OEIE  Sender: .  Subject: eE-Kort!  Attachment: "link.ekort.index.phpV7ab4.kort.pif"  Mit hjerte banker for dig!  Sender: Marica  Subject: eEcard!  Attachment: "link.showcard.index.phpAv23.ritm.pif"  De cand te-am cunoscut inima mea are un nou ritm!  Sender: Anna  Subject: eE-vykort!  Attachment: "link.vykort.showcard.index.phpBn23.pif"  Till min Alskade...  Sender: Erica  Subject: eE-Postkort!  Attachment: "link.postkort.showcard.index.phpAe67.pif"  Vakre roser jeg sammenligner med deg...  Sender: Katarina  Subject: eE-postikorti!  Attachment: "link.postikorti.showcard.index.phpGz42.pif"  Iloista kesaa!  Sender: Magdolina  Subject: eAtviruka!  Attachment: "link.atviruka.showcard.index.phpGz42.pif"  Linksmo gimtadieno!  Sender: Beate  Subject: eE-Kartki!  Attachment: "link.kartki.showcard.index.phpVg42.pif"  W Dniu imienin...  Sender: @  Subject: eCartoe Virtuais!  Attachment: "link.cartoe.viewcard.index.phpYj39.pif"  Te amo...  Sender: Alice  Subject: eFlashcard fuer Dich!  Attachment: ""  Hallo!  hat dir eine elektronische Flashcard geschickt.  Um die Flashcard ansehen zu koennen, benutze in deinem Browser  einfach den nun folgenden link:  Viel Spass beim Lesen wuenscht Ihnen ihr...  Sender:  Subject: eEr staat een eCard voor u klaar!  Attachment: ""  Hallo!  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:  Met vriendelijke groet,  De redactie taalsite primair onderwijs...  Sender: Hanka  Subject: eElektronicka pohlednice!  Attachment: ""  Ahoj!  Elektronick pohlednice ze serveru  Sender: Claudine  Subject: eE-carte!  Attachment: ""  vous a envoye une E-carte partir du site  Vous la trouverez, l'adresse suivante link:, plus de 3500 cartes virtuelles, vos pages web  en 5 minutes, du dialogue en direct...  Sender: Francesca  Subject: eTi e stata inviata una Cartolina Virtuale!  Attachment: ""  Ciao!  ha visitato il nostro sito, e ha creato una  cartolina virtuale per te! Per vederla devi fare click  sul link sottostante:  Attenzione, la cartolina sara visibile sui nostri server per  2 giorni e poi verra rimossa automaticamente.  Sender: Jennifer  Subject: eYou`ve got 1 VoiceMessage!  Attachment: ""  Dear Customer!  You`ve got 1 VoiceMessage from website!  You can listen your Virtual VoiceMessage at the following link:  or by clicking the attached link.  Send VoiceMessage! Try our new virtual VoiceMessage Empire!  Best regards: SNAF.Team (R).  Szia!  Aranyos vagy, jo volt dumcsizni veled a neten!  Remelem tetszem, es szeretnem ha te is k¼ldenel kepet  magadrol, addig is csok:  Sender: Jennifer  Subject: eDon`t worry, be happy!  Attachment: ""  Hi Honey!  I`m in hurry, but i still love ya...  (as you can see on the picture)  Bye - Bye:  Sender: David  Subject: eCheck this out kid!!!  Attachment: "jennifer the wild girl xxx07.jpg.pif"  Send me back bro, when you`ll be done...(if you know what i mean...)  See ya,   

In rare cases the email will have an attachment with the name 'Surprise' and extension '.com', '.exe' or '.pif'.The worm does not send emails to addresses that contain any of these strings:

win  use  info  help  admi  webm  micro  msn  hotm  suppor  syma  vir  trend  panda  yaho  cafee  sopho  google  kasper   

Zafi.B terminates any application that has the words 'firewall' or 'virus' in it. These files are overwritten with a copy of the worm.

Several Windows tools, like Task Manager, Registry Editor are disabled when the worm is active. Zafi.B opens these files with exclusive locking to prevent anything else from opening them.

Submit a Sample

Suspect a file or URL was wrongly detected?
Send it to our Labs for further analysis

Submit a Sample

Give And Get Advice

Give advice. Get advice. Share the knowledge on our free discussion forum.

More Info