Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Thanks to my little brother, we got a nice selection of trojans on our home PC, one of which is W32/Murofet.A, a file infector that has spread across a good number of .exes already.
Since it isn't the only trojan, we decided to just entirely nuke the harddrive and reformat it. Sadly, there's still a lot of data that we want to save, like pictures, videos, personal documents, etc.
Now, I got a 2TB external harddrive, but I want to be sure not to carry over any of the malware that's on the home PC, because I also got personal stuff on the external (over 500gig, so I can't copy it elsewhere for some time.).

How would I best do this? I thought of a Linux live CD / USB stick to boot from, but how can I make sure not to copy any infected data / cleanse such data before copying it?
If any additional information is needed, I'll be glad to provide it. Thanks in advance.

share|improve this question

4 Answers 4

up vote 1 down vote accepted

Your idea of a Linux live CD is a good one.

What I'd do is a partial cleanup of the hard drive first to reduce the chance of getting anything infected.

First off delete any files that could contain a virus - EXE files, VBS, SCR, COM, BAT, CMD - basically anything that can be directly executed.

# find /path/to/hard/drive -iname '*.exe' -iname '*.vbs' -iname '*.scr' -iname '*.com' -iname '*.cmd' -delete

If there are any other file types you know you'll not be wanting to copy over you can delete those as well - files such as *.ocx, etc.

Then you can make a list of all the files that you think you might want to keep:

# find /path/to/hard/drive -iname '*.txt' -iname '*.jpg' -iname '*.png' [...] >/tmp/keepfiles

You can then manually work through that file (/tmp/keepfiles) removing any files you don't want to keep. You can pretty much remove anything that's not in the /Users directory. What's left can be copied over to the external with a reasonable amount of confidence that it's not infected. It's still not guaranteed though.

# rsync -avP --include-file=/tmp/keepfiles /path/to/hard/drive /path/to/external/disk

That should maintain your existing directory structure in the copy.1

Once that is all done you can then remove the external drive and clean your hard drive and install Windows a-fresh. Once you have done that you should install a good anti-malware program - I recommand [Malware Bytes][1], but there are many other good ones around. Only when one of these programs has been installed should you even consider plugging in the external drive.

Scan the external drive as the first thing you do, and scan it well.

1 I haven't tested this command, so you may need to tweak it to get it to work right. Read the man pages.

share|improve this answer
    
The interesting thing is, we got Microsoft Security Essentials, a really good anti-malware program, but the trojans still made it on the PC. :| One problem is also that I have personal data on that external that I don't want to have infected - gonna edit that in the question. –  Xeo May 13 '11 at 15:36

Install the compromised drive in an external case or conenect to a system with good AV and antimalware tools. Scan fully. Copy the files and avoid any exe or other files that could contain malware.

share|improve this answer
    
While this requires a second computer, it is the best method. LiveCDs may not have the most recent AV definitions. Also, you'll need to backup the documents and other personal files to a different location in order to fully format the current system anyways. Generally, copying EXEs isn't a good idea anyways when transfering to a new computer as most applications prefer to be installed to their new home rather than simply copied over. –  music2myear May 13 '11 at 16:45

You're on the right track. Copy it to an external hard drive with a Linux boot CD, then scan it with everything you can.

I'm a fan of the Trinity Rescue Kit (TRK Home), but your mileage may vary.

share|improve this answer

try using ComboFix' http://www.bleepingcomputer.com/download/anti-virus/combofix

it will clean your system so you can transfer your files safe. Use it in safe mode with networking if you can

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.