This bag of tricks may help stop a Locky ransomware infection

The system modifications may work -- for a while

A malware researcher has found a few tricks to stop one of the latest types of ransomware, called Locky, from infecting a computer without using any security programs.

Ransomware is malware that encrypts a computer's files. Users are shown instructions for how to pay a fee to get the decryption key. The costs can range from a few hundreds dollars to thousands, payable to cybercriminals in bitcoin.

Locky is a relative newcomer to the ransomware scene, which computer security researchers first saw over the last few months. It is primarily distributed through spam messages that try to trick people into opening attachments, such as fake invoices.

But researchers have frequently found coding problems or weaknesses in ransomware programs. Locky is no exception.

Sylvain Sarméjeanne, a malware reverse engineer with French computer security company CERT-Lexsi, wrote on Tuesday that he found several ways to "vaccinate" a computer against Locky.

Sarméjeanne terms a vaccine as "any minor system modification which aims at blocking, without any user interaction, part or all of the harmful effects related to the execution of a malicious program."

Locky has some weak points, some by design. For example, it won't execute on a computer that has its language settings set to Russian, which probably gives an approximate region of where its authors are located.

That's not a practical tweak for most people, but Sarméjeanne found other changes that might work.

Locky tries to create registry key called "HKCU\Software\Locky," Sarméjeanne wrote. If that key is created prior to an infection, Locky will stop running. He also found a second way to alter registry values that causes Locky to quit.

A third trick involves manipulating a value that causes Locky to not encrypt files and only rename the files or the file extensions.

His fourth vaccine tricks Locky into using a supplied public key for which the operator of the computer has the private key, allowing files to be decrypted.

To be sure, tricks like these will only last for a while. Ransomware authors quickly improve their code, particularly after security researches publish weaknesses.

In 2014, Jose Vildoza of Argentina discovered a problem with ransomware called CryptoDefense. He found that the private key needed to decrypt files was stored on victims' computers.

Even though the private key was still encrypted, Vildoza collaborated with the security company Emsisoft to build a tool to recover it. CryptoDefense's authors quickly fixed the error.

Join the CSO newsletter!

Error: Please check your email address.

Tags securitymalwarehacking

More about Emsisoft

Show Comments

Featured Whitepapers

Editor's Recommendations

Solution Centres

Stories by Jeremy Kirk

Latest Videos

  • 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

  • 150x50

    IDG Live Webinar:The right collaboration strategy will help your business take flight

    Speakers - Mike Harris, Engineering Services Manager, Jetstar - Christopher Johnson, IT Director APAC, 20th Century Fox - Brent Maxwell, Director of Information Systems, THE ICONIC - IDG MC/Moderator Anthony Caruana

    Play Video

More videos

Blog Posts

Market Place