Most worms spread as e-mail attachments. In order to avoid infection never open an attachment that you weren’t expecting, or that seems out of place. You should also install reputable anti-virus software on your computer, keep it up to date, and perform regular system scans to check for infections. If an infection is ever discovered, clean it up immediately.