Technical Insight

SolarWinds: What Happened and What’s Next

It has been a little over three months since the SolarWinds Supply-Chain Attack was first discovered, but the full impact of this historic breach is still being revealed. Governments and corporations around the globe have been impacted by this attack, even those who are not clients of SolarWinds have been impacted by this attack. 

Solar winds

Some of our clients here at WhiteHat have asked us what they could do differently to prevent these kinds of attacks going forward, looking to strengthen their digital security before another large-scale supply-chain attack occurs. But, preventing and detecting an attack such as this does not have a singular approach. One way to improve, however, is to identify and understand the core methods employed by the SolarStorm attackers. 

A Quick Recap

“The SUNBURST attack appears to be one of the most complex and sophisticated cyberattacks in history.” – Sudhakar Ramakrishna, President and CEO of SolarWinds  

According to a filing released by SolarWinds, nearly 18,000 of its clients downloaded an infected version of the company’s Orion product suite between March and June of last year. The four malware strains used in the attackSUNSPOT, SUNBURST, RAINDROP, and TEARDROPwere designed to implant themselves onto vulnerable networks by leveraging a critical networking and infrastructure tool (in this case, Orion), allowing the attackers to gain highly privileged access to sensitive information 

Although the initial entry point is still unknown, the primary aspects of the attack have been researched and analyzed at some length. This includes what each malware strain was designed to execute, and how SUNSPOT was able to remain undetected on SolarWinds’ network for several months. 

Here’s a brief breakdown of the SolarStorm attack: 

  • First, attackers were able to gain access to SolarWinds’ internal infrastructure, allowing them to inject the SUNSPOT malware on their network, giving them access to the Orion build process 
  • SUNSPOT monitored all processes running on the build server and waited until it found the correct file relating to the Orion project (SLN file) to inject SUNBURST, a subsequent malware strain, directly into the project’s build process. To avoid detection, SUNSPOT created a temporary file and overwrote the original source code with the malicious code from the temp file 
  • Once the build process was complete and the injection fully implanted into the Orion product, SUNSPOT replaced the malicious file in the repository with the original, uninfected source code. This cleanup process was another one of the detection avoidance techniques the attackers used to remain hidden for as long as they did 

The Orion builds were successfully infected with the SUNBURST malware in February of 2020. But it wasn’t until March of the same year when the infected code was fully rolled out into production builds, and the malware made available for download by SolarWinds’ clients. These vulnerable builds were available for download for only two months, but the breach remained undetected for six more months beyond that point. 

After the client downloaded an infected build, SUNBURST was able to send and receive commands via multiple Command & Control (C2) servers, including the injection of two additional malware strains dubbed RAINDROP and TEARDROP. The two strains are nearly identical to each other, aside from minor changes based on a given target’s specific operating system and internal infrastructure. 

The data harvested by these malware strains was first sent to the primary C2 server, and filtered data was forwarded on to the secondary C2 servers. At that point, the attackers merely had to sift through a handful of targets identified by their code before beginning manual attacks on each individual system. 

What’s Next ?

Another malware strain, SUPERNOVA, is now being scrutinized more closely. According to Palo Alto Networks, this strain may not be related to the SolarStorm attackers at all, due to the malicious DLL not being digitally signed like the SUNBURST malware. The attackers designed this code to overwrite a pre-existing SolarWinds DLL on the systems of Orion’s end-users, thus creating a Code Injection vulnerability through modified API calls. 

SolarWinds has continued to investigate the matter internally dating back to late January and has narrowed down the initial attack vector to one of three possible scenarios: spear-phishing, credentials-related attack of internal users, or an unpatched library vulnerability from a 3rd party vendor’s code.  

One of the most effective ways to prevent spear-phishing and credentials-related attacks is by performing internal penetration tests and having regular internal security trainings to keep employees up-to-date on current policies, procedures, and modern attack methodologies 

The third vulnerability type (Unpatched Library) can be identified through Software Composition Analysis (SCA) scans. Just like all vulnerabilities, patching libraries with known CVEs in a timely manner is of critical importance to reducing the window of exposure