WannaCry Ransomware – What We Know, and What You Can Do
Unless you have been living in a cave with no WiFi, you have seen the massive ransomware outbreak that launched last Friday. The attack is still evolving, with new versions being released over the weekend.
Here’s a summary of what we know about the attack, and what you can do about it:
As of Sunday afternoon Pacific time, the WannaCry Ransomware (also known as WannaCrypt, WannaCrypt0r and other naming variations) has struck approximately 150 countries and affected over 200,000 systems. The malware encrypts files on individual system and victims have 3 days to pay the ransom ($300 US) or the price doubles. After 7 days, the malware deletes the encrypted files. The ransomware supports 28 different languages and encrypts 179 different type of files.
The attack distributes a new version of a ransomware family that has been around since 2016 and was most recently seen by Lastline in late March 2017.
The method for spreading the ransomware is an old-school worm that spreads the ransomware automatically through a network, without any requirement for users to click on links or open attachments. (Worms are self-propagating threats that have not received much use as an attack tool in the last few years as the malware authors shifted to stealthier techniques to avoid detection).
The payload exploits a vulnerability in the Windows SMB service. This vulnerability in a commonly used communication protocol exists in almost every version of Windows produced in the last 15 years, making it an extremely effective threat vector.
Variations of the Ransomware
There are several versions of the malware in circulation currently. The effectiveness of the first version that hit on Friday was limited by one astute researcher who noticed that the malware was calling home to an unregistered domain, and he purchased that domain for $10.69 and saved the world (OK, that is a bit of hyperbole, but not by much). By purchasing the domain, he caused the malware to activate a “kill switch” embedded within the malware sample.
Registering domain names malware is known to use a technique known as ‘sinkholing’ and is generally used to slow the spread of the malware. In this extreme case, the domain registration process caused an unanticipated outcome, as all malware samples which ran after the researcher’s domain registration propagated across the internet were stopped. There was one corner case that remained unprotected for the first wave of WannaCry samples, as organizations protected by explicit proxy technologies were not able to fulfill the DNS request because the malware was not designed to be ‘proxy aware’.
Unfortunately, as quickly as early Saturday, May 13th UTC, there were new versions of the WannaCry malware that have been discovered that no longer used the embedded software kill switch, meaning that the spread of this attack will likely continue.
Lastline Enterprise’s Deep Content Inspection & Classification of the Threat
We detected the ransomware across the entire detection spectrum: via Deep Content Inspection of malware samples; Domain/host reputation information from our Global Threat Intelligence Network, and network traffic analysis.
Below is a screenshot of the analysis report generated from one of the malware samples we received. You can see the ransomware classification and the identification of the attempt to propagate the malware via the Microsoft Server Message Block (SMB) protocol in the list of detected activities.
The use of BitCoin to pay the ransom enables us to see the transactions. As of Monday morning (UTC time), there have been approximately 170 payments totaling about $48,000 USD. These numbers will likely continue to increase as the work week begins and organizations decide to pay the ransom. You can see the actual transactions here:
Of course, actual damage caused by the ransomware will far outweigh the actual ransom payment figures.
One note about the ransom payment–There have been observations that this ransomware was designed in a manner which makes decryption extremely difficult for both the victim and the malware author, so the likelihood of getting files back appears to be quite low at present. There have been no public reports of the files being restored following the ransom payment.
What to Do About It
Make sure your systems are patched. Microsoft issued Security Bulletin MS17-010 – Critical Security Update for Microsoft Windows SMB Server (4013389) patch on March 14. Any unpatched systems are at risk.
Microsoft went so far as to issue an emergency patch on May 12 (KB4012598) for additional versions of Windows, including XP (which has only been supported through expensive contracts for the last several years) and Windows 2003.
If you cannot patch, take remediation measures to prevent vulnerable machines being exposed to the propagation of the ransomware. These include:
- Disabling support for legacy SMBv1 protocol
- Reviewing firewall policies at all internet, extranet and VPN connections
- Determining whether SMB ingress/egress filtering can be applied at each network connection point, limiting inbound/outbound TCP 445, UDP 137-138 and TCP 139
- Segmenting the network to isolate legacy systems and consider additional network segmentation strategies which can stop or slow propagation of network-borne worms (since this is likely not going to be the last time we see a threat like this)
If you are a Lastline customer, you can search for WannaCry activity by file hashes, Bitcoin addresses, kill switch domain names, registry keys, ransom note file information and IP address.
The SHA1 hashes include:
The behaviors to search include:
Search for SMB scanning activity (as shown above in screenshot showing the Lastline analysis of network activity)
Search for creation of a specially named mutex created by the ransomware to prevent re-infecting already-compromised machines:
Search for creation of the program displaying the ransom notice: @WanaDecryptor@.exe
Search for DNS resolutions of the known “kill switch” domains:
Search for communication with the following IP addresses:
Keep in mind that these IPs are associated to sinkholes that may be used to track other threats, and therefore one of your systems communicating with these IPs address does not necessarily indicate a WannaCry infection.
Search for the creation of a registry key for WannaCry v2.0 at the following location:
Remind your users of the importance of not opening docs from senders they don’t recognize, and to be very cautious when opening any email with an attachment, even if it’s from a known user.
Also, with this breakout there will likely be miscreants taking advantage of the confusion over versions and updates and sending out realistic-looking phishing emails claiming to be from the IT department or Microsoft Support to your users.
Deploy Security Controls
Utilize security controls like Lastline Enterprise across your network and remote locations that can identify malicious activity targeting your unpatched systems before you can deploy the updates. This includes products and services from our Technology Alliance Partners and Strategic Partners who utilize Lastline technology to detect behavior related to threats like WannaCry.
Latest posts by Patrick Bedwell (see all)
- Lastline Defender for Microsoft Azure is Now Live on the Azure Marketplace! - December 18, 2019
- Stop Ransomware with Network Detection and Response - December 12, 2019
- Lastline’s Network Detection and Response Platform Supports Amazon VPC Ingress Routing for Complete Visibility - December 3, 2019