There’s finally reason to hope in the war against ransomware

A researcher talks about ways to cut short attacks, protect files from encryption

Now when ransomware tries to take over your computer, there’s something you can be sides pay up: stop it, buy more time to deal with it or mitigate the damage it might do.

These options include both hardware and software approaches IT pros can take to defeat the malware, a group at this weekend’s Security BSides Boston conference was told.

By looking at how several variants of ransomware work - CryptoLocker, CryptoWall, Locky, SamSam - researcher Weston Hecker found characteristics of their behavior that could be turned against them.

One method goes after the droppers that first infect target machines in preparation for downloading the main malware payloads. Their purpose is to examine the machines for indications that it might be an inhospitable host and to eliminate the roadblocks if possible.

Many of the droppers kill watchdog software on the machines that is intended to restart antivirus software when the dropper shuts it down, Hecker says. He came up with a watchdog that gets detected by the dropper, but when the dropper shuts it down that triggers a blue screen. In a corporate environment that likely means the machine will be sent to IT where the attack should be discovered.

Another strategy is to make physical machines appear to be virtual machines, he says. Ransomware checks whether it’s attacking a virtual environment and will bail on its attempt and self-destruct because it interprets the virtual machine as a research environment trying to capture and analyze it.

One way to do that involves making victim machines seem like these research environments by virtue of the amount of RAM they have, he says. Malware looks for how much RAM is available to the machine, and less than 1.5GByte is indicative of a security platform trying to grab the malware so it can be studied in a safe environment, he says. If the malware detects that, it will likely halt its own deployment and destroy itself, he says.

Tying up the malware by having it waste time encrypting meaningless files can also halt ransomware attacks, he says, or at least flag them so they are discovered by IT pros. He bought inexpensive USB SSDs online that falsely claim to hold 256GByte but actually hold just 8GByte. They will keep overwriting files once they fill up, but overwritten files remain listed. The malware tries to encrypt these files that don’t exist, which causes a Windows memory leak that crashes the operating system.

Again, the device gets turned over to IT, which should discover the attack and deal with it.

Hecker says he performed his experiments on Windows 7 machines, but versions of his mitigations could be made for other versions of Windows, he says.

One characteristic of Locky ransomware is that seeks to neutralize shadow copies of files, such as incremental backups of Word files. “It erases local backup so you pay the ransom,” he says. Hiding these backups in .sys folders can prevent their being encrypted or at least delay it because .sys folders are low on the list of places the malware looks for files to encrypt, he says. Files that escape encryption this way may be sufficient so the owners of the victim machine feel they don’t need to pay ransom to salvage all the files that were encrypted, he says.

He’s also come up with a CryptoLocker ransomware simulator that runs in a production machines without actually encrypting files, but otherwise acting exactly like CryptoLocker. That reveals to security pros what would be vulnerable if the ransomware actually infected corporate machines. That way they can take steps to correct the weaknesses and reduce some of the potential damage from actual ransomware.

He says such simulators could be written for CryptoLocker, CrykptoWall, Locky and SAMSAM, which would represent more than 75% of ransomware that has actually infected machines.

Join the CSO newsletter!

Error: Please check your email address.

Tags cyber security

More about

Show Comments

Featured Whitepapers

Editor's Recommendations

Solution Centres

Stories by Tim Greene

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