Discovered: February 20, 2005
Updated: February 13, 2007 12:33:45 PM
Also Known As: Win32.Mydoom.AZ [Computer Asso, Email-Worm.Win32.Mydoom.am [Ka, W32/Mydoom.be@MM [McAfee], W32/MyDoom-BC [Sophos], WORM_MYDOOM.BA [Trend Micro]
Type: Worm
Systems Affected: Windows


W32.Mydoom.BA@mm is a mass-mailing worm that uses it own SMTP engine to send email to addresses that it gathers from the Windows Address Book on a compromised computer.

Notes : Live Update definitions with sequence number 41427 or greater will detect this threat.

Antivirus Protection Dates

  • Initial Rapid Release version February 20, 2005
  • Latest Rapid Release version August 08, 2016 revision 023
  • Initial Daily Certified version February 20, 2005
  • Latest Daily Certified version August 09, 2016 revision 001
  • Initial Weekly Certified release date February 20, 2005

Click here for a more detailed description of Rapid Release and Daily Certified virus definitions.

Writeup By: Paul Mangan

Discovered: February 20, 2005
Updated: February 13, 2007 12:33:45 PM
Also Known As: Win32.Mydoom.AZ [Computer Asso, Email-Worm.Win32.Mydoom.am [Ka, W32/Mydoom.be@MM [McAfee], W32/MyDoom-BC [Sophos], WORM_MYDOOM.BA [Trend Micro]
Type: Worm
Systems Affected: Windows



When W32.Mydoom.BA@mm is executed, it performs the following actions:

  1. Creates the following files:

    • %Windir%\java.exe
    • %Windir%\services.exe (this is a Trojan horse detected as Backdoor.Zincite.A)
    • %Temp%\zincite.log (encrypted file)
    • %Temp%\[random filename].log

      Note:
    • %Windir% is a variable that refers to the Windows installation folder. By default, this is C:\Windows or C:\Winnt.
    • %Temp% is a variable that refers to the Windows temporary folder. By default, this is C:\Windows\TEMP (Windows 95/98/Me/XP) or C:\WINNT\Temp (Windows NT/2000).

  2. Adds the values:

    "JavaVM" = "%Windir%\java.exe "
    "Services" = "%Windir%\services.exe"

    to one of the following registry keys:

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

    so that it is executed every time Windows starts.

  3. Creates the following registry keys:

    HKEY_CURRENT_USER\Software\Microsoft\Daemon
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Daemon

  4. Gathers email addresses from the Windows Address Book and from files with the following extensions:

    • .pl*
    • .ph*
    • .tx*
    • .ht*
    • .asp
    • .sht
    • .adb
    • .dbx
    • .wab

  5. Gathers email addresses by posting a GET request to the following search engines, possibly for redistribution:

    • search.yahoo.com
    • search.lycos.com
    • www.altavista.com
    • www.google.com

  6. Avoids sending itself to email addresses that contain any of the following strings:

    • abuse
    • accoun
    • admin
    • anyone
    • arin.
    • avp
    • avp
    • bar.
    • bugs
    • ca
    • certific
    • domain
    • example
    • feste
    • foo
    • foo.com
    • gmail
    • gnu.
    • gold-certs
    • google
    • help
    • hotmail
    • info
    • listserv
    • master
    • me
    • microsoft
    • msdn.
    • msn.
    • no
    • nobody
    • noone
    • not
    • nothing
    • ntivi
    • page
    • panda
    • privacy
    • rarsoft
    • rating
    • ripe.
    • sample
    • sarc.
    • seclist
    • secur
    • sf.net
    • site
    • soft
    • someone
    • sophos
    • sophos
    • sourceforge
    • spam
    • spersk
    • submit
    • support
    • syma
    • the.bat
    • trend
    • update
    • uslis
    • winrar
    • winzip
    • yahoo
    • you
    • your

  7. Uses its own SMTP engine to send itself to the email addresses that it finds. The email may have the following properties:


    From:
    The From addresses is spoofed. The From address may also appear to have been returned undeliverable using the following display names at various domains:

    • Postmaster
    • Mail Administrator
    • Automatic Email Delivery Software
    • Post Office
    • The Post Office
    • Bounced mail
    • Returned mail
    • MAILER-DAEMON
    • Mail Delivery Subsystem

      Subject:
      One of the following:

    • hello
    • hi
    • error
    • status
    • test
    • report
    • delivery failed
    • Message could not be delivered
    • Mail System Error - Returned Mail
    • Delivery reports about your e-mail
    • Returned mail: see transcript for details
    • Returned mail: Data format error delivered


      Message Body:
      The text varies based on a number of options. One of each of the phrases or words in brackets, separated by a "|", will appear:

      Dear user {[recipient's email address]|of [recipient's email domain]},{ {{M|m}ail {system|server} administrator|administration} of [recipient's email domain]
      would like to {inform you{ that{:|,}|}|let you know {that|the following}{.|:|,}}|||||}
      {We have {detected|found|received reports} that y|Y}our {e{-|}mail |}account {has been|was} used to send a {large|huge} amount of {{unsolicited{
      commercial|}|junk} e{-|}mail|spam}{ messages|} during {this|the {last|recent}} week.
      {We suspect that|Probably,|Most likely|Obviously,} your computer {had been|was} {compromised|infected{ by a recent v{iru}s|}} and now {run|contain}s a
      {trojan{ed|}|hidden} proxy server.
      {Please|We recommend {that you|you to}} follow {our |the |}instruction{s|} {in the {attachment|attached {text |}file} |}in order to keep your computer safe.
      {{Virtually|Sincerely} yours|Best {wishe|regard}s|Have a nice day},
      {[recipient's email domain] {user |technical |}support team.|The [recipient's email domain] {support |}team.}

      {The|This|Your} message was{ undeliverable| not delivered} due to the following reason{(s)|}:
      Your message {was not|could not be} delivered because the destination {computer|server} was
      {not |un}reachable within the allowed queue period. The amount of time
      a message is queued before it is returned depends on local configura-
      tion parameters.
      Most likely there is a network problem that prevented delivery, but
      it is also possible that the computer is turned off, or does not
      have a mail system running right now.

      Your message {was not|could not be} delivered within [random number] days:
      {{{Mail s|S}erver}|Host} [host used to send the email]} is not responding.
      The following recipients {did|could} not receive this message:
      [[recipient's email address]]
      Please reply to postmaster@{[sender's email domain]|[recipient's email domain]}
      if you feel this message to be in error.
      The original message was received at [current time]{
      | }from {[sender's email domain] ]|{[host used to send the email]]|]}}
      ----- The following addresses had permanent fatal errors -----
      {[[recipient's email address]]|[recipient's email address]}
      {----- Transcript of {the ||}session follows -----
      ... while talking to {host |{mail |}server ||||}{[recipient's email domain].|[host used to send the email]]}:
      {]]] MAIL F{rom|ROM}:[From address of mail]
      [[[ 50$d {[From address of mail]... |}{Refused|{Access d|D}enied|{User|Domain|Address} {unknown|blacklisted}}|554 [[recipient's email address]]... {Mail quota
      exceeded|Message is too
      large}
      554 [[recipient's email address]]... Service unavailable|550 5.1.2 [[recipient's email address]]... Host unknown (Name server: host not found)|554 {5.0.0
      |}Service unavailable; ] blocked using {relays.osirusoft.com|bl.spamcop.net}{, reason: Blocked|}
      Session aborted{, reason: lost connection|}|]]] RCPT To:[[recipient's email address]]
      [[[ 550 {MAILBOX NOT FOUND|5.1.1 [[recipient's email address]]... {User unknown|Invalid recipient|Not known here}}|]]] DATA
      {[[[ 400-aturner; %MAIL-E-OPENOUT, error opening !AS as output
      |}{[[[ 400-aturner; -RMS-E-CRE, ACP file create failed
      |}{[[[ 400-aturner; -SYSTEM-F-EXDISKQUOTA, disk quota exceeded
      |}[[[ 400}|}

      The original message was included as an attachment.

      {{The|Your} m|M}essage could not be delivered


      Attachment:
      Uses a filename generated from an email address that it finds on the compromised computer or one of the following:

    • ATTACHMENT
    • DOCUMENT
    • FILE
    • INSTRUCTION
    • LETTER
    • MAIL
    • MESSAGE
    • README
    • TEXT
    • TRANSCRIPT

      using one of the following extensions:

    • .bat
    • .cmd
    • .com
    • .exe
    • .pif
    • .scr
    • .zip

      The attachment may have a second extension, which will be one of the following:

    • doc
    • txt
    • htm
    • html

      Note: If the attachment is a .zip file, a copy of the worm will be contained within. The attachment may also be zipped twice.

  8. The worm opens a back door on TCP port 1132.

  9. Downloads a file from one of the following web sites and executes it. This file is detected as Backdoor.Nemog.D:

    • www.imogenheap.co.uk
    • www.newgenerationcomics.net
    • www.aartanridge.org.uk
    • www.eastcoastchoons.co.uk
    • www.foxalpha.com
    • www.sundayriders.co.uk
    • www.hooping.org
    • www.ribaforada.net


Recommendations

Symantec Security Response encourages all users and administrators to adhere to the following basic security "best practices":

  • Use a firewall to block all incoming connections from the Internet to services that should not be publicly available. By default, you should deny all incoming connections and only allow services you explicitly want to offer to the outside world.
  • Enforce a password policy. Complex passwords make it difficult to crack password files on compromised computers. This helps to prevent or limit damage when a computer is compromised.
  • Ensure that programs and users of the computer use the lowest level of privileges necessary to complete a task. When prompted for a root or UAC password, ensure that the program asking for administration-level access is a legitimate application.
  • Disable AutoPlay to prevent the automatic launching of executable files on network and removable drives, and disconnect the drives when not required. If write access is not required, enable read-only mode if the option is available.
  • Turn off file sharing if not needed. If file sharing is required, use ACLs and password protection to limit access. Disable anonymous access to shared folders. Grant access only to user accounts with strong passwords to folders that must be shared.
  • Turn off and remove unnecessary services. By default, many operating systems install auxiliary services that are not critical. These services are avenues of attack. If they are removed, threats have less avenues of attack.
  • If a threat exploits one or more network services, disable, or block access to, those services until a patch is applied.
  • Always keep your patch levels up-to-date, especially on computers that host public services and are accessible through the firewall, such as HTTP, FTP, mail, and DNS services.
  • Configure your email server to block or remove email that contains file attachments that are commonly used to spread threats, such as .vbs, .bat, .exe, .pif and .scr files.
  • Isolate compromised computers quickly to prevent threats from spreading further. Perform a forensic analysis and restore the computers using trusted media.
  • Train employees not to open attachments unless they are expecting them. Also, do not execute software that is downloaded from the Internet unless it has been scanned for viruses. Simply visiting a compromised Web site can cause infection if certain browser vulnerabilities are not patched.
  • If Bluetooth is not required for mobile devices, it should be turned off. If you require its use, ensure that the device's visibility is set to "Hidden" so that it cannot be scanned by other Bluetooth devices. If device pairing must be used, ensure that all devices are set to "Unauthorized", requiring authorization for each connection request. Do not accept applications that are unsigned or sent from unknown sources.
  • For further information on the terms used in this document, please refer to the Security Response glossary.

Writeup By: Paul Mangan

Discovered: February 20, 2005
Updated: February 13, 2007 12:33:45 PM
Also Known As: Win32.Mydoom.AZ [Computer Asso, Email-Worm.Win32.Mydoom.am [Ka, W32/Mydoom.be@MM [McAfee], W32/MyDoom-BC [Sophos], WORM_MYDOOM.BA [Trend Micro]
Type: Worm
Systems Affected: Windows


Removal using the W32.Mydoom@mm Removal Tool
Symantec Security Response has developed a removal tool to clean the infections of W32.Mydoom.BA@mm. Use this removal tool first, as it is the easiest way to remove this threat.

Manual Removal:
The following instructions pertain to all current and recent Symantec antivirus products, including the Symantec AntiVirus and Norton AntiVirus product lines.

  1. Disable System Restore (Windows Me/XP).
  2. Update the virus definitions.
  3. Run a full system scan and delete all the files detected as W32.Mydoom.BA@mm.
  4. Delete the value that was added to the registry.
For specific details on each of these steps, read the following instructions.

1. To disable System Restore (Windows Me/XP)
If you are running Windows Me or Windows XP, we recommend that you temporarily turn off System Restore. Windows Me/XP uses this feature, which is enabled by default, to restore the files on your computer in case they become damaged. If a virus, worm, or Trojan infects a computer, System Restore may back up the virus, worm, or Trojan on the computer.

Windows prevents outside programs, including antivirus programs, from modifying System Restore. Therefore, antivirus programs or tools cannot remove threats in the System Restore folder. As a result, System Restore has the potential of restoring an infected file on your computer, even after you have cleaned the infected files from all the other locations.

Also, a virus scan may detect a threat in the System Restore folder even though you have removed the threat.

For instructions on how to turn off System Restore, read your Windows documentation, or one of the following articles:
Note:
When you are completely finished with the removal procedure and are satisfied that the threat has been removed, re-enable System Restore by following the instructions in the aforementioned documents.

For additional information, and an alternative to disabling Windows Me System Restore, see the Microsoft Knowledge Base article, "Antivirus Tools Cannot Clean Infected Files in the _Restore Folder ," Article ID: Q263455.


2. To update the virus definitions
Symantec Security Response fully tests all the virus definitions for quality assurance before they are posted to our servers. There are two ways to obtain the most recent virus definitions:
  • Running LiveUpdate, which is the easiest way to obtain virus definitions: These virus definitions are posted to the LiveUpdate servers once each week (usually on Wednesdays), unless there is a major virus outbreak. To determine whether definitions for this threat are available by LiveUpdate, refer to the Virus Definitions (LiveUpdate).
  • Downloading the definitions using the Intelligent Updater: The Intelligent Updater virus definitions are posted daily. You should download the definitions from the Symantec Security Response Web site and manually install them. To determine whether definitions for this threat are available by the Intelligent Updater, refer to the Virus Definitions (Intelligent Updater).

    The Intelligent Updater virus definitions are available: Read "How to update virus definition files using the Intelligent Updater" for detailed instructions.


3. To scan for and delete the infected files
  1. Start your Symantec antivirus program and make sure that it is configured to scan all the files.
  2. Run a full system scan.
  3. If any files are detected as infected with W32.Mydoom.BA@mm, click Delete.

    Note:
    If your Symantec antivirus product reports that it cannot delete an infected file, Windows may be using the file. To fix this, run the scan in Safe mode. For instructions, read the document, "How to start the computer in Safe Mode." Once you have restarted in Safe mode, run the scan again.

    After the files are deleted, restart the computer in Normal mode and proceed with section 4.

4. To delete the value from the registry
Important: Symantec strongly recommends that you back up the registry before making any changes to it. Incorrect changes to the registry can result in permanent data loss or corrupted files. Modify the specified subkeys only. Read the document, "How to make a backup of the Windows registry ," for instructions.
  1. Click Start > Run.
  2. Type regedit

    Then click OK.

  3. Navigate to each of the subkeys:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

  4. In the right pane, delete the value:

    "JavaVM" = "%Windir%\java.exe "
    "Services" = "%Windir%\services.exe"

  5. Navigate to and delete the keys:

    HKEY_CURRENT_USER\Software\Microsoft\Daemon
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Daemon

  6. Exit the Registry Editor.


Writeup By: Paul Mangan