SUNSPOT
- Type
- Backdoor
- Capabilities
- PersistenceDefense evasionReconnaissance
- Platforms
- Windows
SUNSPOT is a Windows build-environment implant used in the 2020 SolarWinds supply-chain compromise to insert the SUNBURST backdoor into SolarWinds Orion software builds. It operated within SolarWinds’ development infrastructure rather than serving as the backdoor distributed to Orion customers. The operation is associated with APT29, attributed to Russia’s Foreign Intelligence Service, and was tracked by CrowdStrike as StellarParticle.
SUNSPOT enumerates running processes and identifies Microsoft MSBuild instances through hashed process-name comparisons. It reads build-process command lines to determine whether the targeted Orion solution is being compiled. During a matching build, it backs up a legitimate C# source file and temporarily substitutes malicious source containing SUNBURST. After the build process exits, SUNSPOT restores the original source and deletes the backup, concealing the modification while leaving the backdoor incorporated into the compiled software.
The implant stores its target configuration and replacement source code in AES-128-CBC-encrypted blobs and verifies source-file hashes before making changes to reduce the risk of incompatible modifications or build failures. It maintains encrypted operational logs and disguises its artifacts as legitimate system or application components. Compiler-warning suppression in the replacement source further reduces the likelihood of developer detection. A mutex-based shutdown mechanism allows active source substitutions to finish before the implant exits. During the intrusion, operators maintained SUNSPOT persistence through a scheduled task configured to run at system startup.
Associated threat actors
3 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
(Citation: CrowdStrike SUNSPOT Implant January 2021)(Citation: MSTIC Nobelium Toolset May 2021)
Nobelium had managed to compromise the SolarWinds software build environment and used a custom implant called SUNSPOT to load the SUNBURST backdoor into the Orion software update.
In a blog post late last night, the infosec firm said the Orion-targeting malware, which it codenamed Sunspot, had "several safeguards" to ensure its deployment of compromised code into new Orion builds didn't trigger SolarWinds' suspicions.
Techniques & procedures
29 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
1 technique
Reconnaissance
StellarParticle had an understanding of the Orion build chain before SUNSPOT was developed to tamper with it.
Resource Development
1 technique
Resource Development
SUNSPOT was weaponized to specifically target the Orion build to replace one source code file and include the SUNBURST backdoor.
Initial Access
3 techniques
Initial Access
after the threat actor gained access to their production systems they successfully trojanised SolarWinds Orion’s software updates to distribute malware consisting of backdoor code embedded in a legitimate SolarWinds software library
As part of the attack, the hackers gained access to the SolarWinds Orion build system and injected the sunburst backdoor into a legitimate DLL used by the SolarWinds Orion IT management software. This DLL was later automatically distributed to SolarWinds customers in a supply chain attack.
[SUNSPOT](https://attack.mitre.org/software/S0562) malware was designed and used to insert [SUNBURST](https://attack.mitre.org/software/S0559) into software builds of the SolarWinds Orion IT management product.(Citation: CrowdStrike SUNSPOT Implant January 2021)
Execution
8 techniques
Execution
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
StellarParticle operators maintained the persistence of SUNSPOT by creating a scheduled task set to execute when the host boots.
[SUNSPOT](https://attack.mitre.org/software/S0562) used Windows API functions such as <code>MoveFileEx</code> and <code>NtQueryInformationProcess</code> as part of the [SUNBURST](https://attack.mitre.org/software/S0559) injection process.(Citation: CrowdStrike SUNSPOT Implant January 2021)
let build_processes = dynamic ( [ "MSBuild.exe" , "dontnet.exe" , "VBCSCompiler.exe" ] )
SUNSPOT monitors and hijacks processes involved in the compilation of code and replaces one of the source files with a malicious source file containing the SUNBURST backdoor.
After being executed, the malware would monitor and automatically injecting a Sunburst backdoor by replacing the company's legitimate source code with malicious code... injected the sunburst backdoor into a legitimate DLL used by the SolarWinds Orion IT management software.
Sunspot malware watched the build server for build commands and silently replaced some of Orion's source code files with malware.
They have manipulated scheduled tasks by updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.
Persistence
3 techniques
Persistence
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
StellarParticle operators maintained the persistence of SUNSPOT by creating a scheduled task set to execute when the host boots.
replaces one of the source files with a malicious source file containing the SUNBURST backdoor
Privilege Escalation
4 techniques
Privilege Escalation
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
StellarParticle operators maintained the persistence of SUNSPOT by creating a scheduled task set to execute when the host boots.
APT37 leverages the Windows API calls: VirtualAlloc(), WriteProcessMemory(), and CreateRemoteThread() for process injection.
[SUNSPOT](https://attack.mitre.org/software/S0562) modified its security token to grants itself debugging privileges by adding <code>SeDebugPrivilege</code>.(Citation: CrowdStrike SUNSPOT Implant January 2021)
Stealth
16 techniques
Stealth
Individual log entries are encrypted with the stream cipher RC4, using the hard-coded key FC F3 2A 83 E5 F6 D0 24 A6 BF CE 88 30 C2 48 E7 .
SUNBURST source code used generic variable names and pre-obfuscated strings, and was likely sanitized of developer comments before being added to SUNSPOT.
SUNSPOT masquerades as a legitimate Windows Binary, and writes its logs in a fake VMWare log file.
[SUNSPOT](https://attack.mitre.org/software/S0562) was identified on disk with a filename of <code>taskhostsvc.exe</code> and it created an encrypted log file at <code>C:\Windows\Temp\vmware-vmdmp.log</code>.(Citation: CrowdStrike SUNSPOT Implant January 2021)
APT37 leverages the Windows API calls: VirtualAlloc(), WriteProcessMemory(), and CreateRemoteThread() for process injection.
Once build is complete, replace malicious code files with legitimate code from the backups created.
Following the successful injection of [SUNBURST](https://attack.mitre.org/software/S0559), [SUNSPOT](https://attack.mitre.org/software/S0562) deleted a temporary file it created named <code>InventoryManager.bk</code> after restoring the original SolarWinds Orion source code to the software library.(Citation: CrowdStrike SUNSPOT Implant January 2021)
let build_processes = dynamic ( [ "MSBuild.exe" , "dontnet.exe" , "VBCSCompiler.exe" ] )
[SUNSPOT](https://attack.mitre.org/software/S0562) modified its security token to grants itself debugging privileges by adding <code>SeDebugPrivilege</code>.(Citation: CrowdStrike SUNSPOT Implant January 2021)
[SUNSPOT](https://attack.mitre.org/software/S0562) decrypts [SUNBURST](https://attack.mitre.org/software/S0559), which was stored in AES128-CBC encrypted blobs.(Citation: CrowdStrike SUNSPOT Implant January 2021)
[SUNSPOT](https://attack.mitre.org/software/S0562) only replaces SolarWinds Orion source code if the MD5 checksums of both the original source code file and backdoored replacement source code match hardcoded values.(Citation: CrowdStrike SUNSPOT Implant January 2021)
[SUNSPOT](https://attack.mitre.org/software/S0562) creates a mutex using the hard-coded value ` {12d61a41-4b74-7610-a4d8-3028d2f56395}` to ensure that only one instance of itself is running.(Citation: CrowdStrike SUNSPOT Implant January 2021)
SUNSPOT monitors and hijacks processes involved in the compilation of code and replaces one of the source files with a malicious source file containing the SUNBURST backdoor.
After being executed, the malware would monitor and automatically injecting a Sunburst backdoor by replacing the company's legitimate source code with malicious code... injected the sunburst backdoor into a legitimate DLL used by the SolarWinds Orion IT management software.
Sunspot malware watched the build server for build commands and silently replaced some of Orion's source code files with malware.
They have manipulated scheduled tasks by updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.
Discovery
3 techniques
Discovery
After initialization, SUNSPOT monitors running processes for instances of MsBuild.exe , which is part of Microsoft Visual Studio development tools.
[SUNSPOT](https://attack.mitre.org/software/S0562) enumerated the Orion software Visual Studio solution directory path.(Citation: CrowdStrike SUNSPOT Implant January 2021)
As described above this tools is often used by threat actors to enumerate active directory trust with “domain_trust”... nltest /domain_trusts
Impact
1 technique
Impact
When SUNSPOT finds the Orion solution file path in a running MsBuild.exe process, it replaces a source code file in the solution directory, with a malicious variant to inject SUNBURST while Orion is being built.
Observables
3 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
47 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.