Helping people with computers... one answer at a time.

It's frustrating to go through the steps of cleaning your machine of malware only to have it return almost instantly. We'll look at possible causes.

I have a virus on my computer that's blasting out spam emails. This has been going on for the past two months and I've tried every kind of tool out there and have not been able to get rid of it. I have spoken with Microsoft senior tech's at length trying to get the infection off the computer. After lengthy discussions they recommended I re-install Windows. With over a quarter of a million files and folders on the computer I was reluctant but I did it.

The problem is still there. The computer is back down to a crawl even after this a clean install.

What can I do?

Reinstalling the operating system is the safest and frequently the only course of action after a serious malware infestation.

But as you've seen here, what if the malware comes back right away?

There's one school of thought that once your machine has become infected, the only solution is to reformat and reinstall. The problem is that you may know you're infected, but there's no way to guarantee that the infection has been completely removed. The only guaranteed way to erase the virus is to erase everything - i.e. reformat your hard disk - and then reinstall everything.

However, reinstalling is painful, so naturally we try to avoid it whenever possible. Certainly for certain types of well known viruses we do, pretty much, know what they do and what needs to be removed. There's no blanket guarantee that we get it right, but the risks are often fairly small.

Sometimes, though, a reformat really is the only answer. And it can take a lot of work and time. And even then there are risks.

Here are some of the things I can think of that could result in the symptoms you describe:

  • As you reinstalled Windows, you connected to an untrusted network (like the internet) before your firewall was turned on, or before your anti-virus software was installed and running.

    The problem here is that there is a large class of viruses that propagate simply and quickly if you connect to the internet without protection. With your firewall down, and particularly with an older unpatched version of Windows, I recall hearing that you can be infected within just a couple of minutes of being connected to the net.

    At a minimum, disconnect your network cable until you have Windows installed and its built-in firewall enabled, or connect only through a NAT router.

  • "... any backup taken after an infection occurs is suspect."

    You didn't patch Windows immediately. After getting connected to the network the very first thing you should do is visit Windows Update and take all the updates offered.

    The problem here is that even with the firewall up, or a NAT router in place, there are vulnerabilities that may be exploited should you start to try and use your computer normally. Get it up-to-date first.

  • Your anti-virus software is out of date. This applies to your anti-spyware software as well. It's not enough to get it and run it if you don't keep the database of known malware up to date. Most anti-malware programs have an option to automatically update those databases, and it's critical that you do so. I prefer doing so daily; that's how quickly new viruses and spyware appear.

    Similarly, if your anti-malware program is in the form of a subscription, and you let that subscription lapse, then you're likely not getting the latest updates to that database. Re-subscribe, or switch to one of the free alternatives.

    With an out-of-date database, you could easily think you're protected when you're not. Your machine could quickly get infected with a virus that appeared after the last time you updated your malware database.

  • You backed up and then restored the malware. This is an easy one to overlook. The scenario works like this: you have an infected machine; you know you're going to reformat, so you back everything up including programs and data; you reformat and you reinstall everything; unbeknownst to you, the malware was in a program that you restored and ran - and it reinfected your machine.

    Unfortunately the hard cold truth is this: any backup taken after an infection occurs is suspect.

    It's not perfect, but at a minimum you must virus scan the backup before restoring it. Quite often that means copying the contents of the backup to a location where is does not run, but can be scanned by your anti-virus software. External or additional hard drives are perfect for this kind of thing.

    A safer solution is never restore software from suspect backups. Always reinstall software from their original CDs, DVDs or re-download them. Then restore only your data from your backup. (After virus scanning that anyway.)

  • It was your behavior that caused the problem, and your behavior hasn't changed. Particularly in the case of spam-sending viruses or "bots", if you regularly open attachments from people you don't know, or fall for phishing and other scams, there's nothing about a reformat that's going to fix that. The first time you run that unknown attachment, your machine isn't yours any more - it's infected.

    You cannot count on automated solutions to protect you from yourself. All those are meaningless if you invite the intruder back into your newly cleaned home.

Is that all a pain in the ass?

Absolutely, it is. That's why prevention is so much easier than the cure. The cure is a pain in the ... well, you know.

The good news in all this is that prevention isn't that hard. Take a couple of tools (anti-malware and firewalls), mix in a little bit of common sense, add a dash of healthy skepticism and you've got a recipe for safety. It really is that simple.

Article C3153 - September 18, 2007

Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Recent Comments
15 Comments

I sometimes need to update a computer that needs many, many Windows Updates (or Microsoft Updates). So, I gingerly connect to the Internet and start the downloads. All this time, sometimes hours, until the updates are downloaded and installed, the computer is out-of-date. Using a well-protected computer, can I download the updates to a flash drive or external hard drive, and hand-carry them over to the out-of-date computer and then run do the updates, without connecting the computer to the Internet?

See http://msdn.microsoft.com/en-us/library/aa387290%28VS.85%29.aspx, which seems to be oriented to programmers providing this service. ("After you download the latest WsusScan.cab, the file can be provided to the AddScanPackageService method, and the WUA API can be used to search the offline computer for security updates. WUA validates that the WsusScan.cab is signed by a valid Microsoft certificate before running an offline scan."

How do ordinary resourceful careful users do this?

Posted by: Bob Stromberg at September 21, 2010 4:24 PM

"A safer solution is never restore software from suspect backups. Always reinstall software from their original CDs, DVDs or re-download them. Then restore only your data from your backup. (After virus scanning that anyway.)"

When I download programs and install them I compress a copy of the program and keep it in a folder. We shouldn't use these files in this situation? Can Zipped files be compromised?

ZIP files can be compromized, but it's rare. Best is to keep those saved downloads off-line - perhaps burn them to a CD or external hard drive that you disconnect. That way you know they won't be infected.
Leo
25-Sep-2010
Posted by: Ariel at September 21, 2010 8:41 PM

I have run across malware that infects the restore partition of some computers so when you think you are restoring, you reload windows with the infection to start with. The only way to get a clean install is to completely reformat the hard drive, all partitions.

Posted by: Harold Rossi at September 22, 2010 5:55 AM

i recently installed Microsoft Security Essentials and SUPERAntiSpyWare because i was having some concerns about email from a friend who isn't computer literate enough to stop getting trackers and viruses. i am continuing to receive COOKIE TRACKERS and even thought these programs are quarantining/removing them they pop right back...always the same names. could they be a part of the programs i am using? they are Adware, it seems,and someone suggested that they are a part of AOL? How do i PERMANENTLY remove them, or, is that even possible? I also use MALWAREBYTES, which, like you wrote above, did not find it! not all programs find everything!


Posted by: lee at September 22, 2010 6:51 AM

Without details about the so called infection and what it is doing, it's not possible to tell for sure but there is another scenario. The virus may be targeting the machine by IP address if they are exploiting a known Windows vulnerability. I have seen hackers even turn on a machine that is off via the Internet by knowing it's IP address. (Remote wakeup is sometimes permitted by default in CMOS Setup.)
In this case, unless the subscriber is paying for a static IP address, it is possible to get a new address by turning the cable or DSL modem off then back on. Success will vary by provider. Cox Communications, the cable modem must be off for well over a day before it will get another IP address. I've never actually measured it but it is a long time. Qwest assigns the location a new IP address if the modem goes off the air only for a few minutes. Other ISP's may have varying policies. Just check the modem/router's WAN IP address before and after by looking at the device via your browser.

Posted by: Carlos Coquet at October 15, 2010 10:19 AM
Post a comment on "How do I get rid of this infection that keeps coming back on my machine?":





Remember Me?

(You may use HTML tags for style)

Before commenting, please...

  • READ THE ARTICLE. A comment that shows you didn't will be deleted and ignored.

  • Comment only on the article. Use the search box at the top of the page if you have a question about something else.

  • NO PERSONAL INFORMATION in the comment. No email addresses. No phone numbers. No physical addresses.

  • Anything that looks the least bit like spam will be deleted. Links to unrelated sites or links that appear to be primarily promotional will be deleted, or the comment will be deleted.

  • Don't ask me to recover lost passwords or hacked accounts. I can't. Those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...