Malta: Ransomware Takes It To The Next Level: Javascript

Last Updated: 30 June 2016

Article by Debra Littlejohn Shinder

If you're lucky, you've only been hearing a lot about ransomware lately. If you're not so lucky, you might have experienced it firsthand. Victims of this most insidious form of malware know how devastating it can be to find that suddenly all of your important data – from personal financial information to irreplaceable photos to mission-critical business documents – is inaccessible. It's not gone (perhaps that would be less frustrating), but it's sitting there on your drive, encrypted, and you don't have the key to unlock it. This has been the reality for many ransomware victims and now there is a new type of ransomware to be on the lookout for, one of the nastiest yet.

Ransomware has been in existence for over two decades (the first was the AIDS Trojan in the late 1980s), but there has been an explosion of it in the last few years, and it's gotten more sophisticated. There are two basic types. In the case of computer locker ransomware, your entire system is locked so you can't log on. More commonly now, with crypto ransomware, the system is accessible but the data files are encrypted.

Unlike with many viruses and malware, which are often distributed "just for fun" (well, the attacker's idea of fun), ransomware attackers are in it for the money. They basically hold your files hostage and demand payment, often in bitcoins. Those who do pay up sometimes get their data restored, and sometimes the bad guys take the money and run; they are, after all, criminals and not exactly trustworthy.

Ransomware targets both home users and businesses. Hospitals have been a favorite target recently, since attackers know their files often hold information that is vital to patient care and the healthcare institutions are more likely than some entities to pay the ransom rather than risk disastrous outcomes that could result in much more expensive lawsuits.

Ransomware attack vectors

Ransomware can infiltrate a computer in a number of different ways. Email attachments are a common method, and until recently macros in Word documents were a favorite way to infect unsuspecting victims' machines. That caused many computer users to wise up and disable macros, and now the feature is turned off by default in Word, so ransomware authors had to adopt a new strategy. That brings us to the "latest and greatest" in malicious software: ransomware written in JavaScript.

Email is still a popular means of delivery, with the JavaScript attachments disguised as harmless text files. Because Windows doesn't show file extensions by default (in my opinion, a bad design decision), a file named myfile.txt.js will appear to most users to be myfile.txt. The user clicks it, expecting to see a simple document open in Notepad, and instead runs the script that starts the malware infection process. The malware may open a "decoy" file in the text editor so the user won't know anything out of the ordinary has happened until it's too late.

The latest iteration of JavaScript ransomware is called RAA or JS/Ransom-DLL and it's even more devious than earlier versions. Instead of running a script that connects to server to download an executable ransomware program as the Locky ransomware does, the JavaScript itself is the ransomware, and runs it in the Windows Scripting Host (WSH) environment, outside the web browser – which means the code isn't sandboxed as scripts run in the browser are.

RAA does have to connect back to its server to get a key that it will use to encrypt the victim's files. This is a random AES key that's unique to each victim, so unlike with some early cryptoware, if one person pays up and gets the key, it won't work on another victim's files. Only after the files have all been encrypted does the malware reveal itself, in the form of a README file that tells you what happened and where to send money to free your files. The going rate is reportedly approximately $250 USD.

Whether to pay up is a personal or business decision, based on the importance or sensitivity of the lost files, whether you have intact backups, the amount of ransom demanded and whether you can afford it, and what the greater ramifications (such as lawsuits or lost business) might be if you fail to get the files back.

Be aware, though, that even if you pay and the ransomware authors decrypt your files, you should take steps to make sure additional malware isn't left behind. RAA has been reported to install another Trojan that's designed to steal your passwords. With these guys, the hits just keep on coming. Personally, I would recommend wiping the system completely after a ransomware infection and reinstalling the operating system.

How to prevent the Javascript ransomware

The good news is that if you haven't been hit by ransomware yet, there are steps you can take to prevent it. First (and you should have done this the moment you set up your computer), configure Windows to show common file extensions. That's a checkbox on the View menu in the Windows File Explorer ribbon. Most email clients block JavaScript from running inside messages, so simply not opening those .JS attachments will go a long way toward protecting you. Train users to avoid opening attachments unless they're sure of what they're getting.

Another thing you should already be doing is creating real-time backups and periodically saving backups offline (preferably off-site). Malware can't encrypt files it can't touch. Removing the malware (or preferably wiping the hard drive) and restoring your data from backups beats paying ransom and still having to wipe the system for fear there's still malware on it.

Consider blocking scripting. You can use the file associations feature in Windows to have .JS files open in Notepad as harmless text files instead of running in WSH. How to do this depends on the OS version you're using. Do a search for "Change file associations in Windows " to find instructions on the web. While you're at it, don't enable automatic running of macros. The default setting in recent versions of Word is disabled; leave it that way.

Keep your operating system and applications updated with the latest security patches. Use anti-malware software and keep the definitions up to date. Staying ahead of the malware writers and distributors is a full-time job these days, but being forewarned, informed and prepared is the key to avoiding victimization.

The content of this article is intended to provide a general guide to the subject matter. Specialist advice should be sought about your specific circumstances.

To print this article, all you need is to be registered on Mondaq.com.

Click to Login as an existing user or Register so you can print this article.

 
Some comments from our readers…
“The articles are extremely timely and highly applicable”
“I often find critical information not available elsewhere”
“As in-house counsel, Mondaq’s service is of great value”

Up-coming Events Search
Tools
Print
Font Size:
Translation
Channels
Mondaq on Twitter
 
Register for Access and our Free Biweekly Alert for
This service is completely free. Access 250,000 archived articles from 100+ countries and get a personalised email twice a week covering developments (and yes, our lawyers like to think you’ve read our Disclaimer).
 
Email Address
Company Name
Password
Confirm Password
Position
Mondaq Topics -- Select your Interests
 Accounting
 Anti-trust
 Commercial
 Compliance
 Consumer
 Criminal
 Employment
 Energy
 Environment
 Family
 Finance
 Government
 Healthcare
 Immigration
 Insolvency
 Insurance
 International
 IP
 Law Performance
 Law Practice
 Litigation
 Media & IT
 Privacy
 Real Estate
 Strategy
 Tax
 Technology
 Transport
 Wealth Mgt
Regions
Africa
Asia
Asia Pacific
Australasia
Canada
Caribbean
Europe
European Union
Latin America
Middle East
U.K.
United States
Worldwide Updates
Registration
Mondaq Ltd requires you to register and provide information that personally identifies you, including what sort of information you are interested in, for three primary purposes:
  • To allow you to personalize the Mondaq websites you are visiting.
  • To enable features such as password reminder, newsletter alerts, email a colleague, and linking from Mondaq (and its affiliate sites) to your website.
  • To produce demographic feedback for our information providers who provide information free for your use.
  • Mondaq (and its affiliate sites) do not sell or provide your details to third parties other than information providers. The reason we provide our information providers with this information is so that they can measure the response their articles are receiving and provide you with information about their products and services.
    If you do not want us to provide your name and email address you may opt out by clicking here
    If you do not wish to receive any future announcements of products and services offered by Mondaq you may opt out by clicking here

    Terms & Conditions and Privacy Statement

    Mondaq.com (the Website) is owned and managed by Mondaq Ltd and as a user you are granted a non-exclusive, revocable license to access the Website under its terms and conditions of use. Your use of the Website constitutes your agreement to the following terms and conditions of use. Mondaq Ltd may terminate your use of the Website if you are in breach of these terms and conditions or if Mondaq Ltd decides to terminate your license of use for whatever reason.

    Use of www.mondaq.com

    You may use the Website but are required to register as a user if you wish to read the full text of the content and articles available (the Content). You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, link, display, or in any way exploit any of the Content, in whole or in part, except as expressly permitted in these terms & conditions or with the prior written consent of Mondaq Ltd. You may not use electronic or other means to extract details or information about Mondaq.com’s content, users or contributors in order to offer them any services or products which compete directly or indirectly with Mondaq Ltd’s services and products.

    Disclaimer

    Mondaq Ltd and/or its respective suppliers make no representations about the suitability of the information contained in the documents and related graphics published on this server for any purpose. All such documents and related graphics are provided "as is" without warranty of any kind. Mondaq Ltd and/or its respective suppliers hereby disclaim all warranties and conditions with regard to this information, including all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement. In no event shall Mondaq Ltd and/or its respective suppliers be liable for any special, indirect or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortious action, arising out of or in connection with the use or performance of information available from this server.

    The documents and related graphics published on this server could include technical inaccuracies or typographical errors. Changes are periodically added to the information herein. Mondaq Ltd and/or its respective suppliers may make improvements and/or changes in the product(s) and/or the program(s) described herein at any time.

    Registration

    Mondaq Ltd requires you to register and provide information that personally identifies you, including what sort of information you are interested in, for three primary purposes:

    • To allow you to personalize the Mondaq websites you are visiting.
    • To enable features such as password reminder, newsletter alerts, email a colleague, and linking from Mondaq (and its affiliate sites) to your website.
    • To produce demographic feedback for our information providers who provide information free for your use.

    Mondaq (and its affiliate sites) do not sell or provide your details to third parties other than information providers. The reason we provide our information providers with this information is so that they can measure the response their articles are receiving and provide you with information about their products and services.

    Information Collection and Use

    We require site users to register with Mondaq (and its affiliate sites) to view the free information on the site. We also collect information from our users at several different points on the websites: this is so that we can customise the sites according to individual usage, provide 'session-aware' functionality, and ensure that content is acquired and developed appropriately. This gives us an overall picture of our user profiles, which in turn shows to our Editorial Contributors the type of person they are reaching by posting articles on Mondaq (and its affiliate sites) – meaning more free content for registered users.

    We are only able to provide the material on the Mondaq (and its affiliate sites) site free to site visitors because we can pass on information about the pages that users are viewing and the personal information users provide to us (e.g. email addresses) to reputable contributing firms such as law firms who author those pages. We do not sell or rent information to anyone else other than the authors of those pages, who may change from time to time. Should you wish us not to disclose your details to any of these parties, please tick the box above or tick the box marked "Opt out of Registration Information Disclosure" on the Your Profile page. We and our author organisations may only contact you via email or other means if you allow us to do so. Users can opt out of contact when they register on the site, or send an email to unsubscribe@mondaq.com with “no disclosure” in the subject heading

    Mondaq News Alerts

    In order to receive Mondaq News Alerts, users have to complete a separate registration form. This is a personalised service where users choose regions and topics of interest and we send it only to those users who have requested it. Users can stop receiving these Alerts by going to the Mondaq News Alerts page and deselecting all interest areas. In the same way users can amend their personal preferences to add or remove subject areas.

    Cookies

    A cookie is a small text file written to a user’s hard drive that contains an identifying user number. The cookies do not contain any personal information about users. We use the cookie so users do not have to log in every time they use the service and the cookie will automatically expire if you do not visit the Mondaq website (or its affiliate sites) for 12 months. We also use the cookie to personalise a user's experience of the site (for example to show information specific to a user's region). As the Mondaq sites are fully personalised and cookies are essential to its core technology the site will function unpredictably with browsers that do not support cookies - or where cookies are disabled (in these circumstances we advise you to attempt to locate the information you require elsewhere on the web). However if you are concerned about the presence of a Mondaq cookie on your machine you can also choose to expire the cookie immediately (remove it) by selecting the 'Log Off' menu option as the last thing you do when you use the site.

    Some of our business partners may use cookies on our site (for example, advertisers). However, we have no access to or control over these cookies and we are not aware of any at present that do so.

    Log Files

    We use IP addresses to analyse trends, administer the site, track movement, and gather broad demographic information for aggregate use. IP addresses are not linked to personally identifiable information.

    Links

    This web site contains links to other sites. Please be aware that Mondaq (or its affiliate sites) are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of these third party sites. This privacy statement applies solely to information collected by this Web site.

    Surveys & Contests

    From time-to-time our site requests information from users via surveys or contests. Participation in these surveys or contests is completely voluntary and the user therefore has a choice whether or not to disclose any information requested. Information requested may include contact information (such as name and delivery address), and demographic information (such as postcode, age level). Contact information will be used to notify the winners and award prizes. Survey information will be used for purposes of monitoring or improving the functionality of the site.

    Mail-A-Friend

    If a user elects to use our referral service for informing a friend about our site, we ask them for the friend’s name and email address. Mondaq stores this information and may contact the friend to invite them to register with Mondaq, but they will not be contacted more than once. The friend may contact Mondaq to request the removal of this information from our database.

    Emails

    From time to time Mondaq may send you emails promoting Mondaq services including new services. You may opt out of receiving such emails by clicking below.

    *** If you do not wish to receive any future announcements of services offered by Mondaq you may opt out by clicking here .

    Security

    This website takes every reasonable precaution to protect our users’ information. When users submit sensitive information via the website, your information is protected using firewalls and other security technology. If you have any questions about the security at our website, you can send an email to webmaster@mondaq.com.

    Correcting/Updating Personal Information

    If a user’s personally identifiable information changes (such as postcode), or if a user no longer desires our service, we will endeavour to provide a way to correct, update or remove that user’s personal data provided to us. This can usually be done at the “Your Profile” page or by sending an email to EditorialAdvisor@mondaq.com.

    Notification of Changes

    If we decide to change our Terms & Conditions or Privacy Policy, we will post those changes on our site so our users are always aware of what information we collect, how we use it, and under what circumstances, if any, we disclose it. If at any point we decide to use personally identifiable information in a manner different from that stated at the time it was collected, we will notify users by way of an email. Users will have a choice as to whether or not we use their information in this different manner. We will use information in accordance with the privacy policy under which the information was collected.

    How to contact Mondaq

    You can contact us with comments or queries at enquiries@mondaq.com.

    If for some reason you believe Mondaq Ltd. has not adhered to these principles, please notify us by e-mail at problems@mondaq.com and we will use commercially reasonable efforts to determine and correct the problem promptly.

    By clicking Register you state you have read and agree to our Terms and Conditions