
Since last weekend, the outbreak of WannaCry ransomeware has became the headline of the security news. This worm attack has integrated one of the most effective way of spreading - a 0day exploit on default windows service; And one of the most destructive yet profitable kind of payload: ransomware. SonicWall Threat Research Team has already released several SonicAlerts analyzing the exploits and ransomware (Shadowbroker releases alleged NSA EquationGroup Exploit Code Dump and WannaCrypt.RSM (high risk alert)). In this article, we will continue share more stories, insights and lessons learnt from this security incident.
The Data from SonicWall:
Since the "ShadowBroker"'s initial NSA 0day leak, numerous exploits of MS17-010 have already in-the-wild. As of May 18 2017, SonicWall has tracked and intercepted over 800,000 attacks from 60 countries. The Top 3 are: US: 293306, Mexico: 3119, and Indian: 7035.

Details about the WannaCry ransomware:
The vulnerability used in "EternalBlue" (MS17-010) is triggered by a logical error on calculating the buffer boundary in the srv.sys. The attack surface is on Windows SMB service, via TCP port 445. Most of the ISPs has blocked this port from external access. However, it spreads fast in a local network filled with unpatched hosts.
Comparing to the 0-day exploit, the ransomware is rather immature. On the following aspects:
This "kill switch" is likely to be part of its anti-sandbox approach. To avoid being discovered by dynamic analysis, some malwares will first identify whether the running environment is in a sandbox (if so, it won't commit malicious behaviors). To better analyze malwares with a dead C&C server, sandboxes sometimes fake responses from server side to let the sample expose more behaviors. WannaCry exploits this feature to identify the sandbox environment - if it received a response from a domain name that shouldn't exist, then stop working. And ironically, this made itself a kill switch.
Development of the story:
Windows XP Users might be able to recover the encrypted files due to another vulnerability on the Windows XP crypto library : The CryptDestroyKey and CryptReleaseContext functions does not erase the prime numbers from memory before freeing the associated memory. Which allows recovering the RSA key pair and then the encrypted files. The tool "WannaKey" is available on GitHub: Link
Microsoft blame on NSA for leaking their 0-days: Link
North Korea hackers might have involved in the incident: Link
Lessons from this incident:
Although the worm exploits a new vulnerability, its spreading mechanism has many similarities to the old "Blaster" (MS04-011) and "Confiker" (MS08-067). And the worm still caused heavy damage on today's Internet, infected companies, institutions and government agencies.
Here are some possible factors for making you a "WannaCry" victim, which may exist on some people for a decade:
SonicWall have created the a series of signatures to protect our customers from the the leaked NSA exploits:
Share This Article

An Article By
An Article By
Security News
Security News