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
- Build server breachedFrom 2019 the attackers are inside SolarWinds' development environment.
- Code swapped in the buildSUNSPOT malware inserts SUNBURST during each Orion build.
- Trusted update shippedMarch–June 2020: signed Orion updates reach customers.
- Lies dormant, then calls homeAfter up to two weeks the backdoor beacons out over DNS.
- 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
- 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.
- SUNSPOT, the build-tampering malware, begins inserting SUNBURST into Orion builds.
- 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.
- FireEye announces that a highly sophisticated attacker stole its red-team tools.
- FireEye publishes its SUNBURST analysis. CISA issues Emergency Directive 21-01 ordering federal agencies to disconnect or power down Orion.
- CrowdStrike publishes its analysis of SUNSPOT, the build implant.
- 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
- Disconnect affected Orion servers, as CISA's emergency directive required, and preserve them for forensics before rebuilding.
- Block and hunt for the beacon. Block
avsvmcloud[.]comand search DNS logs for past lookups. Microsoft and others took control of the domain to stop the backdoor in most networks. - 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.
- 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.
- 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
- CISA: Emergency Directive 21-01, Mitigate SolarWinds Orion code compromise
- Mandiant (formerly FireEye): Highly evasive attacker leverages SolarWinds supply chain to compromise multiple global victims with SUNBURST backdoor
- CrowdStrike: SUNSPOT, an implant in the build process
- CISA: Advanced persistent threat compromise of government agencies, critical infrastructure, and private sector organizations (AA20-352A)
Change here for
-
xz Utils
Trust built over two yearsCaught before release
The xz backdoor: a two-year con caught by half a second of lag
The tarball didn't match the source here either.
-
CrowdStrike
New template type8.5 million PCs crash
How one faulty content update crashed 8.5 million Windows PCs
The same trusted update channel, broken by accident.
-
Colonial Pipeline
Leaked passwordPipeline shut down
Colonial Pipeline: the unused VPN account that stopped a fuel line
Five months later, a much simpler way in.