How to recover files after a malware attack

Today's malware can hold your precious files hostage and demand a ransom. Here's how to get those files back.

Malware infected Jones888's computer, and important files are no longer accessible. How can Jones get them back?

A malicious program infects your PC and makes your documents and other important files inaccessible, then it pops up a message demanding money to get the files back. You've got a ransomware infection, and that isn't good.

How do you get the files back without paying for them? That's simple: Restore them from a backup. That is, of course, if you've been backing up daily.

Otherwise, this is going to take some work.

[Email your tech questions to]

The state of your files depends on the nature of the malware. Often, ransomware merely hides your files and claims to have done much worse. All you need to do is unhide the files and you've got them back.

But some are truly vicious. CryptoLocker, which appeared last September, actually encrypts your files. Without backups, they cannot be restored without the criminals' cooperation. By the time you read this, CryptoLocker may not be the only encrypting malware.

So, start by researching the particular malicious program you've got. Do a web search on the program's name, or on a key phrase in the ransom message. See what's suggested.

If that doesn't provide useful advice, see if the "missing" files are merely hidden. Start by booting into Safe Mode:

In Windows 7, as soon as you boot--before Windows starts to load--press F8 repeatedly. You'll get a boot menu. Select Safe Mode.

In Windows 8, booting into Safe Mode requires a real keyboard and mouse (or touchpad). With Windows running, go to the power options, as if you're shutting down your PC. Then, while holding down the Shift key, click Restart. The PC will boot to a menu you've probably never seen before. Click Troubleshoot>Advanced options>Startup Settings. On the Startup Settings page, select Restart. At the following menu, type the number 4. (Can you see why I hate Windows 8?)

Once you're in Safe Mode, tell Windows to display hidden files. In Windows 7's Windows Explorer, select Organize>Folder and search options. Click the View tab and select Show hidden files, folders, and drives. In Windows 8's File Explorer, check the View tab's Hidden items options. (Okay, I like Windows 8's File Explorer.)

Look for your missing files. If you find them, open some to make sure they're still working. To unhide a file, a group of files, or all the files in a folder, right-click what you want to change, select Properties, and unselect the Hidden option.

If the files aren't there, or if you know that you've got CryptoLocker, you really have no choice but to pay the creeps their blood money. To be safe, don't give the criminals your regular credit card number. See How to shop online without a credit card for suggestions.

Then clean out your PC. Read When malware strikes: How to clean an infected PC for details.

And from now on, back up regularly.

Read the original forum discussion.

Join the CSO newsletter!

Error: Please check your email address.

Tags CryptolockerMicrosoftsecurityransomwaremalware

Show Comments

Featured Whitepapers

Editor's Recommendations

Solution Centres

Stories by Lincoln Spector

Latest Videos

  • 150x50

    CSO Webinar: Will your data protection strategy be enough when disaster strikes?

    Speakers: - Paul O’Connor, Engagement leader - Performance Audit Group, Victorian Auditor-General’s Office (VAGO) - Nigel Phair, Managing Director, Centre for Internet Safety - Joshua Stenhouse, Technical Evangelist, Zerto - Anthony Caruana, CSO MC & Moderator

    Play Video

  • 150x50

    CSO Webinar: The Human Factor - Your people are your biggest security weakness

    ​Speakers: David Lacey, Researcher and former CISO Royal Mail David Turner - Global Risk Management Expert Mark Guntrip - Group Manager, Email Protection, Proofpoint

    Play Video

  • 150x50

    CSO Webinar: Current ransomware defences are failing – but machine learning can drive a more proactive solution

    Speakers • Ty Miller, Director, Threat Intelligence • Mark Gregory, Leader, Network Engineering Research Group, RMIT • Jeff Lanza, Retired FBI Agent (USA) • Andy Solterbeck, VP Asia Pacific, Cylance • David Braue, CSO MC/Moderator What to expect: ​Hear from industry experts on the local and global ransomware threat landscape. Explore a new approach to dealing with ransomware using machine-learning techniques and by thinking about the problem in a fundamentally different way. Apply techniques for gathering insight into ransomware behaviour and find out what elements must go into a truly effective ransomware defence. Get a first-hand look at how ransomware actually works in practice, and how machine-learning techniques can pick up on its activities long before your employees do.

    Play Video

  • 150x50

    CSO Webinar: Get real about metadata to avoid a false sense of security

    Speakers: • Anthony Caruana – CSO MC and moderator • Ian Farquhar, Worldwide Virtual Security Team Lead, Gigamon • John Lindsay, Former CTO, iiNet • Skeeve Stevens, Futurist, Future Sumo • David Vaile - Vice chair of APF, Co-Convenor of the Cyberspace Law And Policy Community, UNSW Law Faculty This webinar covers: - A 101 on metadata - what it is and how to use it - Insight into a typical attack, what happens and what we would find when looking into the metadata - How to collect metadata, use this to detect attacks and get greater insight into how you can use this to protect your organisation - Learn how much raw data and metadata to retain and how long for - Get a reality check on how you're using your metadata and if this is enough to secure your organisation

    Play Video

  • 150x50

    CSO Webinar: How banking trojans work and how you can stop them

    CSO Webinar: How banking trojans work and how you can stop them Featuring: • John Baird, Director of Global Technology Production, Deutsche Bank • Samantha Macleod, GM Cyber Security, ME Bank • Sherrod DeGrippo, Director of Emerging Threats, Proofpoint (USA)

    Play Video

More videos

Blog Posts

Market Place