PDA

View Full Version : Computer Viruses and You: How to Remove and General Avoidance Guidelines



sketch
02-01-2011, 10:38 AM
I work in IT for a living at a Boston engineering school. As you might imagine, I have to deal with viruses quite often, but as of late I find myself cleaning more and more infected machines for friends/family outside of work, answering questions, etc. The best way to get rid of a virus is to never get it by practicing safe surfing habits and a little common sense. "oh, this program that I've never seen before just scanned my 800gb hard drive in 3 seconds and found over two thousand infections! of course i want to remove now!"

But regardless, I felt it relevant to re-post this information here. If you ever get (or suspect) that your computer is infected, I am more than happy to help you attempt to clean it yourself rather than have you go out to geek squad (or similar) and pay absurd amounts of money for what you can do yourself. I originally wrote this at some point last summer and posted it on 3SI (http://www.3si.org/forum/f174/computer-viruses-you-how-remove-general-avoidance-guidelines-499390/):


So, your computer is infected.
Every time you open up your browser you get redirected to porn.
You have popups trying to sell you porn
you have a program telling you that your computer is infected and if you buy some absurd application (usually will have antivirus somewhere in the title) for 3 easy payments and one complicated payment of only $59.95 you can clean your computer!
So, what do you actually do to clean it?

Do you bring it to those PC guys in your town square who will charge you $75 for a PC Health report? If you're not comfortable with adding/removing software or running your computer in safe mode, not a bad idea. Hopefully this thread will get your feet wet with computing and get you comfortable with the Windows OS a bit more, and help you avoid bringing it in to your local PC repair guys.

Do you bring it to the Geek Squad at BestBuy? (HINT: NO. (http://www.black-ogre.com/bestbuysucks/))

Basic assumptions ITT:
-You do not know anything about computers. I am going to try to put everything as plainly as possible - I hate it when I look up a tutorial on something that I am new at and it makes assumptions about what I already know.
-You have a high speed connection (fios, DSL, cable, ADSL, SDSL, etc. Not dial-up)
-You have access to the internet from another computer
-You have access to a flash drive (http://www.google.com/search?q=flash+drive&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a)

Your first step is to not panic. Everybody knows that bad things happen when you panic. Go ahead and disconnect your computer from whatever network it is on. If it has any wireless capabilities (as most laptops do), search for the switch on the body that will turn it off. You may or may not also have an Ethernet cable connecting your computer to your network (desktop computers will 99% of the time, this will vary with laptops depending on your working environment). Ethernet cables look like glorified telephone cables, with 8 pins. They will typically say "Cat 5" or "Cat 5e" or "Cat6" on them. Unplug this cable from either end (either your computer or modem/router). If you are on dial-up internet, disconnect the phone line from your computer.

From another computer, change your account passwords. It is very rare that your passwords were actually stolen, but it does happen. Be safe, change your passwords. Any websites, online banking, iTunes, Steam, NewEgg, anything. If you can log into it and have personal information stored there, change it. Do NOT do it on the computer that is infected. I repeat, do NOT do it on the computer that is infected.

Again, from another computer, and with the infected computer disconnected from your network, download this nifty little application called ComboFix.
A guide and tutorial on using ComboFix (http://www.bleepingcomputer.com/combofix/how-to-use-combofix)
This little guy is one of my best friends. Download it to your flash drive.

Plug the flash drive into the infected computer, go ahead and boot it up. Right here we are going to boot into Safe Mode with Networking.
When a computer boots, the first thing that you see is the BIOS screen during POST (http://en.wikipedia.org/wiki/Power-on_self-test). POST (http://en.wikipedia.org/wiki/Power-on_self-test) is Power On Self Test, it is the computers pre-boot sequence. For example, if you own a Dell you will see the Dell logo displayed on the screen, etc.
This is where you start pressing the F8 key. Press this until the Windows Advanced Options Menu appears. If you begin tapping the F8 key too soon, your computer may show some form of a "keyboard error" message. To resolve this, restart the computer and try again. Select Safe Mode with Networking (More on booting into safe mode, depending on your operating system. (http://www.pchell.com/support/safemode.shtml))

Copy & paste the combofix executable onto your desktop. Double click it. your computer will likely beep a couple of times here, possibly quite loudly. This is normal.
Only if prompted to install the windows recovery console may you connect this computer to the network via Ethernet cable. After the MS Windows Recovery Console has installed immediately disconnect from any and all network connections. Let this program work its magic. Your computer will likely restart a couple of times during this progress. Scanning can take up to a half hour for badly infected systems. It will definitely reboot if you are told that you have rootkit activity. If you don't know what this means, don't worry about it.

It is okay that your computer does not reboot into safe mode at this point.

When the scan is complete your (potentially after a couple of reboots) your computer will display a logfile in notepad telling you what was removed, what was running, etc. Save this to your desktop, give it a descriptive name. You can close this out now.

Browse to your C drive, in there you will find a folder named "Qoobox" - this was created by combofix. Open up the Quarantine folder, delete the folder named "C" under this. Empty your recycle bin.
C:\Qoobox\Quarantine\C - this is the folder that you are deleting.
It is okay to leave the "Registry_backups" folder and catchme.txt file

Open up your registry with the registry editor

(Click Start > Run... > regedit > enter) or (windows key + r > regedit > enter)
select "HKEY_CURRENT_USER)
press ctrl+f and search for 127.0.0.1

The path that comes up should be similar to HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet Settings
the key that will be highlighted will be named ProxyServer with a value of http=127.0.0.1:5577 (or similar value). Delete this key (right click on ProxyServer, Delete)

Next you will need to download and install the free version of MBAM (Malwarebytes' Anti-Malware) from this website:
Malwarebytes' Anti-Malware: Malwarebytes (http://www.malwarebytes.org/mbam.php)
(the download links may redirect you to MajorGeeks, this is okay)
After installation allow the program to update, run a complete/full scan with this. At this point it is unlikely that MBAM will have found anything, this is simply a supplemental scan.

Pending that MBAM finds nothing, next we are going to run CCleaner to tidy things up a bit - you can find that on this website: CCleaner - Optimization and Cleaning - Free Download (http://www.piriform.com/ccleaner)

As a final precation, I would recommend updating the virus definitions of your chosen anti-virus program.

General Avoidance guidelines
Use Firefox (http://www.mozilla.com/en-US/firefox/?from=getfirefox). Use it with ABP (Ad Block Plus) (https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/). Allow this app and addon to update when there are updates that need to be applied. Most updates that are put out for applications like these are security updates and are there for your safety and convenience.

Stop using IE. Many viruses are targeted at IE, simple as that. There are many reasons why they are targeted at the browser, but they are not particularly relevant. Unless you use a web app that only runs in IE, please do no use that browser. I hate the applications that I need to use for work that only run in IE.

Never give out your username or password for anything on the internet. I have never seen any company that needs your username and password for something. If there was a diabolical admin somewhere that really had it out for you and wanted to pose as you on some web forum, that admin has the power to change your password (I have also never seen this happen either, just illustrating that point that for no reason should you ever give out your username and password. for anything).

Disclaimer: I take no responsibility if your machine tanks due to following these steps, missing steps, skipping steps, etc. ComboFix is a very powerful application and if misused can ruin your day. Buy an external drive, backup your important data on this. For example, if you store your school/work files, music, movies, etc. on your laptop computer, have copies of these files on your external hard drive. External storage is dirt cheap, an external 1 TB hard drive can be bought for under $90 and is more than enough storage for the average computer user.


-jeff

mh3kgt
02-01-2011, 10:55 AM
Very useful post. Thank you

YoshiBishi
02-01-2011, 07:49 PM
Sadly combofix does not run on 64bit OSes. I phased out combofix from the spyware/virus removal procedure at work since all computers on campus for students and faculty for the past 2 years are required to have 64bit Win7. However, combofix is GREAT for all 32bit OSes. I've also seen combofix break a few machines completely to the point that safe mode no longer works. But this is a small percentage, perhaps 1 in 1000.

Now, I run CCleaner first to clean out temp files so there are less files for malwarebytes to scan.

Another thing to prevent infections is to update your java. The past 4 months have been hell for me at work since I work at at University and Facebook was sending viruses out through a java exploit. These students never seem to listen... I tell them to stop using Facebook since it is the reason they are getting the spyware, and they come back 5 minutes after picking up their machine with facebook open in their browsers >=[.

Luckily, java and facebook have fixed issues on their end and for now (fingers crossed) and I get time to browse forums and buy car parts that I don't need instead of aimlessly running virus/spyware scans!

I'd also be hesitant to tell normal users to use the registry. You can do a lot of damage if you accidentally delete a necessary key.
I would do a Start > Run and put in "rundll32 Shell32.dll,Control_RunDLL INETCPL.CPL" without the quotes.
This brings up your internet options for internet explorer. Then go to the Connections tab and click on Lan Settings. Uncheck the boxes under Proxy Server and make sure to have Automatically Detect Settings checked. Sometimes the proxy servers are not always 127.0.0.1, which is why I prefer this method instead.
*NOTE: If you have a proxy server set up for some reason, you will need to retype it in your proxy server box. Some ISPS may require this.

If you use firefox, you will need to reset the proxies as well. Tools > Options > Advanced > Network > Settings
Choose either No proxy or Use system proxy.

Google Chrome uses IE proxies, so those were already reset.

Like Jeff said, back up your stuff as often and as many times as possible!!!!
I once had my iPod, 2 external HDDs, and my laptop drive all fail in the same week =(. Talk about having some bad Karma...

Great write up though, really like that you took a lot of time and effort in this. Kudos on putting up relevant links!

sketch
02-01-2011, 08:01 PM
sad but true re: 64-bit windows & combofix. at least they have it running on vista & 7 now (although i rarely see vista...anywhere.)

most of the infections i see come through java exploits or adobe exploits. I tell everyone to always keep their software up-to-date, even things seemingly as trivial as java. new exploits are found nearly every day in java (at least it feels that way to me!)
in addition, stay away from mafia wars and farmville and all of that other crap on facebook. there are better ways to waste your time

YoshiBishi
02-01-2011, 08:09 PM
Facebook applications + java/adobe exploits = job security for us ;).

CoopKill
02-01-2011, 08:10 PM
Mafia Wars!!!! NOOooooo! :suspect:


Thanks for posting the info. I to am constantly fixing family and friends junk boxes...

YoshiBishi
02-01-2011, 08:11 PM
We should open up a computer tech support helpline for 3/s owners on this forum! Especially since the members here are so helpful in our car tech support.

sketch
02-01-2011, 08:26 PM
true about proxy server settings...i see it set to localhost in the registry for the majority of the browser hijacks that i run into.
a lot of good...general computer use....guidelines? (can't really phrase what i'm getting at here) comes from a bit of education as to how things work. when it's browsing habbits, we call it being a "good network citizen": what i do on the network has the potential to effect everyone else using the network, too. when you get infected with a virus that sends out several million spam emails in the course of 3 hours and we get blacklisted by verizon, comcast, etc. you've effected a shit ton of people. think before you click :)

YoshiBishi
02-01-2011, 08:50 PM
Very true, our IT security department blocks people for damn near everything. Which is a good thing, network never gets bogged down. However, also brings in more clients with network connectivity issues.

IPD
02-01-2011, 11:28 PM
i like it.

step one:
http://4.bp.blogspot.com/_OI_-mOb8_uc/S_wpiWOQgDI/AAAAAAAABz4/mjRehvf3mWE/s1600/Don%27t_Panic.jpg


so long and thanks for all the fish!

mb3000
02-01-2011, 11:36 PM
I love MalwareBytes, kicked my computer's ass a couple months ago! :D

YoshiBishi
02-02-2011, 01:01 PM
mb3000 = MalwareBytes3000

mb3000
02-02-2011, 08:37 PM
mb3000 = MalwareBytes3000

:lol:

Ultimate
02-02-2011, 08:38 PM
Do either of you IT guys know how to fix issues related to "windows rot?"

I try to take care of system with CCleaner, Mb, Spybot, and smart browsing. It just seems like once a year or so things seem to get a little sluggish and just recently the internet is somewhat intermittent (loose connection at random times). I end up just reloading the OS to the hard drive partition and the system seems to be good to go for a year or so. I'm running a moderately stripped down version of XP.

Any advice? Great write up by the way.

BrianWSNC
02-02-2011, 09:31 PM
I usually go to Cnet.com and check out the software for downloads. I did just download "Advanced System Care" and some other utilities from IOBot. I hope I did the right thing. I did see CCleaner, but did not download that one

Am I ok with this utility ? ( I Have windows 7 with 64bit)
Please advise, thank you

YoshiBishi
02-03-2011, 04:03 PM
Do either of you IT guys know how to fix issues related to "windows rot?"

I try to take care of system with CCleaner, Mb, Spybot, and smart browsing. It just seems like once a year or so things seem to get a little sluggish and just recently the internet is somewhat intermittent (loose connection at random times). I end up just reloading the OS to the hard drive partition and the system seems to be good to go for a year or so. I'm running a moderately stripped down version of XP.

Any advice? Great write up by the way.

Ultimate, you are doing everything right to keep your system running. I'd probably test your hardware if you haven't done so.

There are two ways to do this. You can either run a full system test, which takes quite a bit of time.

Burn this following image to a CD using ImgBurn. (http://www.imgburn.com/)
PC Check (http://duke.edu/~jrios/Programs/PCcheck.iso)
Then boot your computer to it.

Otherwise, you can run individual tests:
Get DFT (http://www.hitachigst.com/hdd/support/downloads/dft32_v416_b00.iso) and burn it to a cd. Boot to the CD and choose to do the advanced test. If it is green, your HDD is fine, if red, you will need to replace it.

Then run a test on your memory(RAM) using Memtest 86+. (http://www.memtest.org/download/4.20/memtest86+-4.20.iso.zip) If any errors occurs, your memory is bad and needs replacing.

sketch
02-08-2011, 11:23 PM
Do either of you IT guys know how to fix issues related to "windows rot?"

I try to take care of system with CCleaner, Mb, Spybot, and smart browsing. It just seems like once a year or so things seem to get a little sluggish and just recently the internet is somewhat intermittent (loose connection at random times). I end up just reloading the OS to the hard drive partition and the system seems to be good to go for a year or so. I'm running a moderately stripped down version of XP.

Any advice? Great write up by the way.

i have an answer for you, i just haven't had a good amount of time to sit down and hammer it out, been battling redoing my water cooling. stay tuned...


next question, for the computer guru's

...how do i sign someone up for an ATROCIOUS amount of spam? :suspect:
craigslist personals. as many cities as possible. M4M, W4W, T4M, whatever floats your boat lol
be sure to put their email in plain text.

sign up for sketchy websites with their email. even if the websites send emails to confirm the account, many will likely retain the email address.....the address along with others will eventually be sold off to spammers.

well, i mean, if i were to do it, that's how i'd start.... :suspect:

GTO Assassin
02-09-2011, 02:24 AM
I just bought a Mac. No need to be in here. :D

Scotty

IPD
02-09-2011, 02:41 AM
I just bought a Mac. No need to be in here. :D

Scotty

touche. but in the spirit of fairness, i'll post a how-to for mac users:


http://www.youtube.com/watch?v=vY-AOApMiW0

GTO Assassin
02-09-2011, 03:22 AM
Never heard of this Daniel Tosh character. And I dont really know computers or Macs for that matter. I know Macs aren't invincible, but I have heard as far as viruses go, they are better. Actually I've heard they dont get viruses from most people but I dont fully believe that. Having said that, I'm not running any anti virus software as the reps all told us it's not needed.

Scotty

GTOJOE
02-09-2011, 04:38 AM
I just bought a Mac. No need to be in here. :D

Scotty

You Idiot :p should have emailed me and I could have got you a deal on a real computer. Combofix then malwarebytes then spyware doctor seems to work well for me.

Zaroth
02-09-2011, 08:56 AM
Do either of you IT guys know how to fix issues related to "windows rot?"

I try to take care of system with CCleaner, Mb, Spybot, and smart browsing. It just seems like once a year or so things seem to get a little sluggish and just recently the internet is somewhat intermittent (loose connection at random times). I end up just reloading the OS to the hard drive partition and the system seems to be good to go for a year or so. I'm running a moderately stripped down version of XP.

Any advice? Great write up by the way.

Your doing everything except defrag. It will help with the sluggish issue you are having. Over time your windows system files get spread out over the disk and not only are the fragmented, which makes them take longer for the disk to collect them, but they get spread out further on the disk platter adding even more time. To help prevent that, next time you install your OS, format the whole disk, then partition a 30-40gig section just for the OS. This will make sure your OS always runs on the outer edge of your hard drive platter and will help your access times stay in check. Partition the rest of the disk for data and when you install programs, install them to the D drive(data partition) instead of the C drive( your OS partition).

For defrag I use defraggler. It's made by the same people that make CCleaner.

DocWalt
02-09-2011, 09:52 AM
Man, every PC in the house except mine just picked up the System Tool virus. Not sure how avast didn't catch it on my dad's pc, it caught it on mine. My idiot brother let his avast registration expire a year and a half ago, so of course, it was outdated and wasn't protecting anything. I can't even get software to run to fix it, not even in safe mode. This is gonna be brutal :(

GTOJOE
02-09-2011, 09:55 AM
Load in safe mode with networking and run Combofix.

sketch
02-09-2011, 09:59 AM
I just bought a Mac. No need to be in here. :D

Scotty

Never heard of this Daniel Tosh character. And I dont really know computers or Macs for that matter. I know Macs aren't invincible, but I have heard as far as viruses go, they are better. Actually I've heard they dont get viruses from most people but I dont fully believe that. Having said that, I'm not running any anti virus software as the reps all told us it's not needed.

Scotty

Correct. Mac OS (and linux operating systems) just have far, far, far fewer viruses target at them, thus far fewer infections.

sketch
02-09-2011, 10:06 AM
Man, every PC in the house except mine just picked up the System Tool virus. Not sure how avast didn't catch it on my dad's pc, it caught it on mine. My idiot brother let his avast registration expire a year and a half ago, so of course, it was outdated and wasn't protecting anything. I can't even get software to run to fix it, not even in safe mode. This is gonna be brutal :(

Do you have a clean desktop computer available? If you do, I'd suggest pulling the drives from the infected systems, plugging them into the clean desktop as secondary drives and using that desktop to clean them. Start out with checking avast for updates and then running a boot-time scan on the infected drive(s).
MBAM/SAS would be a good follow-up. Clear out the quarantines, download the latest combofix executable to each of the infected drives, plug the drives back into their respective systems boot to safemode and run combofix. (XP only: be sure to install the recovery console if you dont have that installed on each machine. i would suggest doing that from windows disc, rather than downloading the files.)

disconnect everything infected

LMK where you end up, doc!

DocWalt
02-09-2011, 10:20 AM
I've already cleaned one PC, my brother's PC has about twenty viruses at once. It's got a rootkit that avast can't do anything about. It keeps picking up the *.sys file that it's making, and deletes it, but it's back on every boot. I have a few clean PCs, so I'll end up doing exactly what you're saying if I can't get combofix to run. I'm gonna try f-secure blacklight as well, I've never had great luck with it, but it's worth the try. I don't want to risk my main desktop for a PC that is barely used.

sketch
02-09-2011, 11:16 AM
I've already cleaned one PC, my brother's PC has about twenty viruses at once. It's got a rootkit that avast can't do anything about. It keeps picking up the *.sys file that it's making, and deletes it, but it's back on every boot. I have a few clean PCs, so I'll end up doing exactly what you're saying if I can't get combofix to run. I'm gonna try f-secure blacklight as well, I've never had great luck with it, but it's worth the try. I don't want to risk my main desktop for a PC that is barely used.
bah rootkits. you may need to rename the combofix executable (some of these newer viruses will block it from running while it is named combofix.exe)
also check out rootkit revealer (see if you can get that to run, disable any other running AV on that machine)

DocWalt
02-09-2011, 11:34 AM
Good thing to try. At least then I could google up some info, as of now, until I figure out which virus it is, I can just hope for a removal tool to find it and kill it. Thanks for the suggestions. I'll let you know how it goes after I mess with it tonight.

zelstin
02-10-2011, 01:02 AM
Any guesses on what would cause IE, Firefox, and Chrome to shutdown? I'm gonna run Combofix but I don't think its a virus.

Edit: Was a virus and now it dead

x2percentmilk
02-10-2011, 01:21 AM
I did everything I could, and could not avoid Windows rot with XP. I upgraded to windows 7, disabeled all of the built in security and installed comodo security suite and have been running strong ever since. Comodo is great, just takes a day or two of clicking for it to get used to your system.

Also, macs do suffer from rot. My girlfriends macbook can barely play youtube videos.

DocWalt
02-10-2011, 04:01 PM
I had no luck with the PC. It's gonna need to be repaired using the XP disc, and I'm way too lazy to do that since it's getting warmer now.

Ultimate
02-27-2011, 03:20 PM
Your doing everything except defrag. It will help with the sluggish issue you are having. Over time your windows system files get spread out over the disk and not only are the fragmented, which makes them take longer for the disk to collect them, but they get spread out further on the disk platter adding even more time. To help prevent that, next time you install your OS, format the whole disk, then partition a 30-40gig section just for the OS. This will make sure your OS always runs on the outer edge of your hard drive platter and will help your access times stay in check. Partition the rest of the disk for data and when you install programs, install them to the D drive(data partition) instead of the C drive( your OS partition).

For defrag I use defraggler. It's made by the same people that make CCleaner.

Yea I just forgot to mention that I defrag as well as error check the drive every once in a while, not as often as running CCleaner, Mb, Spybot, etc. I may try setting up that partition as you stated.

Thanks everyone for your help.

Ultimate
02-27-2011, 03:24 PM
Ultimate, you are doing everything right to keep your system running. I'd probably test your hardware if you haven't done so.

There are two ways to do this. You can either run a full system test, which takes quite a bit of time.

Burn this following image to a CD using ImgBurn. (http://www.imgburn.com/)
PC Check (http://duke.edu/~jrios/Programs/PCcheck.iso)
Then boot your computer to it.

Otherwise, you can run individual tests:
Get DFT (http://www.hitachigst.com/hdd/support/downloads/dft32_v416_b00.iso) and burn it to a cd. Boot to the CD and choose to do the advanced test. If it is green, your HDD is fine, if red, you will need to replace it.

Then run a test on your memory(RAM) using Memtest 86+. (http://www.memtest.org/download/4.20/memtest86+-4.20.iso.zip) If any errors occurs, your memory is bad and needs replacing.

I will try that when I get some time as well. Thank you

sketch
02-27-2011, 03:52 PM
I had no luck with the PC. It's gonna need to be repaired using the XP disc, and I'm way too lazy to do that since it's getting warmer now.
damn, i wish i realized that you were in PA. i just spent last weekend down in southern NJ for a lan party about an hour away from you, I could have taken care of it for you there.

DocWalt
02-27-2011, 05:44 PM
damn, i wish i realized that you were in PA. i just spent last weekend down in southern NJ for a lan party about an hour away from you, I could have taken care of it for you there.

It's all good dude. Nobody has been using the PC, and it's sitting there unplugged. I think it might benefit from a format anyway, lol.