27 May 2017

Seven NSA cyberweapons used in EternalRocks exploit

by Michael Heller

NSA cyberweapons continue to be repackaged by malicious actors, but it is as yet unclear what the ultimate aim of EternalRocks might be aside from infecting as many systems as possible. 

The WannaCry ransomware worm spread to more than 300,000 systems in less than one week by using the EternalBlue and DoublePulsar NSA cyberweapons to gain access and propagate, respectively. However, the EternalRocks malware incorporates a total of seven NSA cyberweapons. 

EternalRocks was discovered by Miroslav Stampar, IT security advisor and expert for the Croatian Government CERT, who caught the infection in an SMB honeypot. After analyzing the malware, Stampar found it used four SMB exploits developed by the NSA -- EternalBlue, EternalChampion, EternalRomance and EternalSynergy -- to gain access; two NSA tools were used for SMB reconnaissance operations -- SMBTouch and ArchiTouch -- and DoubplePulsar was used to propagate the infection. 

According to Stampar, EternalRocks runs a multistage process starting with EternalBlue to infect a system, contact a command and control server (C&C) via Tor and install additional components. 

"After initial run it drops the exploit pack shadowbrokers.zip and unpacks contained directories payloads/, configs/ and bins/. After that, starts a random scan of opened 445 (SMB) ports on [the] internet, while running contained exploits (inside directory bins/) and pushing the first stage malware through payloads (inside directory payloads/)," Stampar wrote in a GitHub post. "Also, it expects running Tor process from first stage to get further instructions from C&C." 

Stampar said the exploit pack includes the other NSA cyberweapons and DoublePulsar to spread the infection. 

Whole EternalRocks campaign (first and second stage malware) uses Mutex: {8F6F00C4-B901-45fd-08CF-72FDEFF}

Somebody actually used complete Shadowbrokers dump (SMB part) and made a worm out of it. Uses WannaCry names (taskhost/svchost) to distract

However, EternalRocks appears to be setting up persistent access to systems and propagating with no ransomware or data exfiltration happening yet. 

Brian Vecci, technical evangelist at Varonis, said all of this is "potentially indicative of a much more sophisticated attacker." 

"Adylkuzz was around for a while using the same exploits as WannaCry, but nobody noticed because it wasn't making any noise. That's even more dangerous than ransomware since it doesn’t call out the problems -- the glaring security holes -- that were being taken advantage of," Vecci told SearchSecurity. "By not delivering any actual malware, EternalRocks may be even more successful in spreading and setting up a more damaging attack later." 

Jonathan Sander, chief technical officer at STEALTHbits Technologies, said whatever the next step may be for EternalRocks, it could be very dangerous. 

NSA cyberweapons are just one brand among many. When there's a gun to my head I'm not worried about if it's a Colt versus a Beretta, I'm just worried about getting shot.Jonathan SanderChief Technical Officer, STEALTHbits Technologies

"Having a back door into one place with good data is useful," Sander told SearchSecurity. 

"Having back doors into thousands of places where you can do many things is a botnet in waiting." 

Michael Patterson, CEO of Plixer, said because of the stealthiness of EternalRocks, enterprises that are remediating SMB flaws need to remember that "once a device is infected, applying a subsequent patch does not remove the malware." 

"The most effective way for security teams to monitor for any infected devices is to leverage network traffic analytics to look for any historical Tor connections leaving the organization," Patterson told SearchSecurity. "Organizations must constantly monitor their environments for anomalous behaviors, maintain a historical forensic database, and have a well-defined storage backup and recovery process for all critical data." 

John Bambenek, threat research manager at Fidelis Cybersecurity, said remediating the SMB flaws exploited by the NSA cyberweapons is only step one. 

"Enterprises should disable SMBv1, prohibit all SMB across network boundaries, and run fully patched and supported operating systems. That said, what concerns me now isn’t a resurgence of WannaCry (or worse) using the last NSA exploits," Bambenek told SearchSecurity. "The window of opportunity for those exploits is closing. What concerns me is what exploits Shadow Brokers are sitting on and what comes next." 
Concern for unknown NSA cyberweapons 

Microsoft and others have criticized the NSA for not disclosing in a timely manner the vulnerabilities it was using to build its exploits and now experts are concerned with any other NSA cyberweapons might still be unreleased by the Shadow Brokers. 

Owen Connolly, vice president of services for IOActive, said knowing how to mitigate the SMB threats is an advantage. 

"It's much easier to defend against an enemy you know. We now know what's coming and we have the capabilities to defend against it, but we need to ensure that we put those defenses in place," Connolly told SearchSecurity. "I'm much more concerned about what's going to come out of the next set to be dropped." 

Paul Calatayud, CTO at FireMon, said with or without the dump of NSA cyberweapons, IT pros need to be ready for attacks. 

"Any great cyber security expert and leader is operating as normal when it comes to these new attacks. Zero day exploits such as the ones developed by NSA are being developed on a daily basis," Calatayud told SearchSecurity. "The difference here is the mass consumption of this exploit causing far greater frequency of attacks, but the bigger point is these attacks have and will continue, and good network defenders have already been planning for these attacks long before they became commonplace." 

Sander also said he wasn't too concerned whether the next threat arises from NSA tools or not. 

"NSA cyberweapons are just one brand among many," Sander said. "When there's a gun to my head I'm not worried about if it's a Colt versus a Beretta, I'm just worried about getting shot."

No comments: