Get new incidents by email

One email each time a new incident is published. Nothing else.

All incidents

SolarWinds Orion compromise

SolarWinds SUNBURST: the signed update that carried a spy

In 2020 a state-backed group slipped a backdoor into SolarWinds Orion while it was being built. Up to 18,000 customers installed the signed update; the attackers then chose a small number of them, including US government agencies, to spy on.

Disclosed
13 December 2020
Type
Supply chain
Customers who installed it
Up to 18,000
Read time
10 minutes
  1. Build server breachedFrom 2019 the attackers are inside SolarWinds' development environment.
  2. Code swapped in the buildSUNSPOT malware inserts SUNBURST during each Orion build.
  3. Trusted update shippedMarch–June 2020: signed Orion updates reach customers.
  4. Lies dormant, then calls homeAfter up to two weeks the backdoor beacons out over DNS.
  5. Chosen targets spied onSelected victims get follow-on tools, then email and cloud access.

In plain terms

SolarWinds makes Orion, software that IT teams use to monitor their networks. To do that job, Orion needs wide access: it can see and talk to a large part of an organisation's systems.

Attackers broke into SolarWinds itself and planted a small program in the computers that build Orion. Each time SolarWinds produced a new version, that program quietly added a hidden . The result was signed by SolarWinds, so customers' computers trusted it, and it was sent out as a normal update.

Thousands of organisations installed it. The backdoor waited about two weeks, then sent a quiet signal home disguised as ordinary internet lookups. The attackers looked at who had checked in and picked the targets they cared about, including US government departments and major technology companies. Everyone else was left alone, which helped the campaign go unnoticed for months.

It was discovered when the security company FireEye investigated a breach of its own network in December 2020 and traced it back to Orion.

The deep analysis follows: what happened, root cause, mitigation and prevention.

What happened

  1. According to SolarWinds, the attackers first access its environment. In October they inject harmless test code into an Orion build, checking that the method works.
  2. SUNSPOT, the build-tampering malware, begins inserting SUNBURST into Orion builds.
  3. Trojanised versions ship: Orion Platform 2019.4 HF 5, 2020.2 with no hotfix, and 2020.2 HF 1. SolarWinds later says fewer than 18,000 customers installed them.
  4. FireEye announces that a highly sophisticated attacker stole its red-team tools.
  5. FireEye publishes its SUNBURST analysis. CISA issues Emergency Directive 21-01 ordering federal agencies to disconnect or power down Orion.
  6. CrowdStrike publishes its analysis of SUNSPOT, the build implant.
  7. The US government formally attributes the campaign to Russia's Foreign Intelligence Service (SVR), the group tracked as APT29.

Confirmed victims included the US Treasury, Commerce, Homeland Security, Justice and Energy departments, as well as technology companies such as Microsoft and FireEye.

Root cause

The build system was a trusted, unwatched point

SUNSPOT ran on the build server and watched for the MSBuild process compiling Orion. When it saw the right project, it swapped one source file, InventoryManager.cs, for a version containing SUNBURST, then restored the original once the build finished. The source repository stayed clean; only the compiled output was poisoned. It was then with SolarWinds' legitimate certificate.

Signed meant trusted

Code signing proved the update came from SolarWinds, which was true. Customers had no way to check that what SolarWinds signed matched what its developers wrote.

Patient, selective tradecraft

SUNBURST, inside SolarWinds.Orion.Core.BusinessLayer.dll, stayed dormant for 12 to 14 days. It checked for security tools and avoided running in test environments, then sent DNS queries to subdomains of avsvmcloud[.]com that encoded the victim's domain. The attackers used the replies to decide who got the next stage. Selected targets received TEARDROP or RAINDROP loaders and Cobalt Strike, and moved to email and cloud tenants, in some cases forging SAML tokens using stolen signing certificates.

Monitoring tools with too much reach

Orion servers typically held privileged credentials and could reach the internet. A compromised monitoring server became an ideal foothold with administrator access and outbound connectivity.

Mitigation

  1. Disconnect affected Orion servers, as CISA's emergency directive required, and preserve them for forensics before rebuilding.
  2. Block and hunt for the beacon. Block avsvmcloud[.]com and search DNS logs for past lookups. Microsoft and others took control of the domain to stop the backdoor in most networks.
  3. Assume credentials are compromised. Reset every account and secret stored in or used by Orion, then look beyond Orion: if attackers reached second-stage hosts, rotate identity provider signing certificates (ADFS token-signing keys) and review cloud application consents.
  4. Look for forged tokens. Check for SAML tokens with no matching sign-in event, new federation trusts, and unusual credentials added to applications and service principals.
  5. Upgrade to a clean Orion release (2020.2.1 HF 2 or later) only after rebuilding on known-good infrastructure.

Prevention

For software vendors

  • Harden and isolate build systems. Use short-lived, hermetic build environments built from scratch for each run, with no standing access for people.
  • Prove what you built. Reproducible builds and signed provenance (as in the SLSA framework) let you and your customers confirm that a binary matches its source.
  • Check builds independently. Building the same release on separate infrastructure and comparing the outputs exposes tampering like SUNSPOT's.

For organisations

  • Limit the reach of management tools. Give monitoring and IT management servers least privilege, and block their internet access except to known update endpoints.
  • Monitor DNS. Unusual or algorithmically generated subdomain lookups from servers deserve attention.
  • Protect your identity provider as tier-zero: keep token-signing keys in hardware, and alert on changes to federation and application credentials.
  • Ask vendors about their build security, not just their product security.

Sources