Skip to main content

Zafi.B

Classification

Category:

Malware

Type:

Email-worm

Aliases:

  • Zafi.B
  • W32/Zafi.B@mm
  • I-Worm.Zafi.b

Summary

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.

Removal

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:

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

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:

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

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.

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

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:

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

Payload

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.

Protect your devices from malware with F‑Secure Total

Protecting your devices from malicious software is essential for maintaining online security. F‑Secure Total makes this easy, helping you to secure your devices in a brilliantly simple way.

  • Award‑winning antivirus and malware protection

  • Online browsing, banking, and shopping protection

  • 24/7 online identity and data breach monitoring

  • Unlimited VPN service to safe­guard your privacy

  • Password manager with private data protection

Choose how many devices you want to protect to get started.

  • Free customer support

  • Cancel anytime

  • The trial does not obligate you to buy the product

After 30 days your subscription will renew automatically for one year at €69.99.

More Support

Community

Ask questions in our Community.

User guides

Check the user guide for instructions.

Contact Support

Chat with with or call an agent.

Submit a Sample

Submit a file or URL for analysis.