GoldenSpy is a Windows backdoor covertly distributed alongside Aisino Intelligent Tax, a legitimate application used for Chinese VAT administration. Identified in 2020, it affected organizations operating in China, including a global technology vendor and a financial institution. Its delivery through required business software provided a software supply-chain initial-access vector. No specific threat actor has been conclusively identified as its operator.
GoldenSpy is silently downloaded and installed approximately two hours after the tax application's installation. It runs with SYSTEM privileges and enables remote execution of Windows commands through the WinExec API, transfer and execution of arbitrary binaries, and creation of local user accounts. It collects and exfiltrates host environment information through its command-and-control infrastructure, which is separate from the legitimate tax application's infrastructure. Communications include HTTP and WebSocket traffic over nonstandard ports, with randomized beacon intervals intended to reduce detection.
Persistence relies on two identical copies registered as autostart Windows services. The copies monitor and restart one another, while an additional protection component can download and reinstall the malware if its files are deleted. Removing Intelligent Tax does not remove GoldenSpy. Following public disclosure in June 2020, the tax software delivered uninstallers that removed GoldenSpy, deleted associated files, directories and registry entries, and then deleted themselves. Subsequent removal components incorporated additional obfuscation and detection-avoidance changes. GoldenSpy is distinct from GoldenHelper, a separate malware family associated with other Chinese tax software.
43 distinct techniques documented for this family, organized by ATT&CK tactic.
Si l’ajout d’une fonctionnalité assimilable à une porte dérobée peut être le fait de son éditeur, celui-ci peut également être victime d’une attaque sur la chaîne d’approvisionnement visant à compromettre ses clients via ses logiciels.
[GoldenSpy](https://attack.mitre.org/software/S0493) has been packaged with a legitimate tax preparation software.(Citation: Trustwave GoldenSpy June 2020)
Aisino Version: The trojanized file schedules the malware download two hours after the tax software install.
They have persistence mechanisms, communicate with a remote server at a random frequency, and allow arbitrary code to be executed with system administrator privileges without user interaction. | the installation of China’s Aisino Intelligent Tax VAT management software led to the deployment of what appears to be a backdoor dubbed “GoldenSpy” by Trustwave.
[GoldenSpy](https://attack.mitre.org/software/S0493) can execute remote commands via the command-line interface.(Citation: Trustwave GoldenSpy June 2020)
[GoldenSpy](https://attack.mitre.org/software/S0493) can execute remote commands in the Windows command shell using the <code>WinExec()</code> API.(Citation: Trustwave GoldenSpy June 2020)
Execution User Execution: Malicious File (T1204.002) Aisino Version: See T1195.002 (above) Baiwang Version: See T1195.002 (above)
Baiwang Version: INF functions are invoked to use COM to bypass UAC to execute using CMSTP.
Aisino Version: The malware installs, establishes presence, and runs as system processes via “svm.exe” and “svmm.exe”. Baiwang Version: The malware installs, establishes presence, and runs as system processes via “WMPAssis”.
Aisino Version: The trojanized file schedules the malware download two hours after the tax software install.
APT3 has been known to create or enable accounts, such as support_388945a0 . ... APT5 has created Local Administrator accounts to maintain access ... DarkGate creates a local user account, SafeMode, via net user commands.
[GoldenSpy](https://attack.mitre.org/software/S0493) can create new users on an infected system.(Citation: Trustwave GoldenSpy June 2020)
Aisino Version: “Svm.exe” uses a series of custom "UserAgent" strings to enable communication to the C2 server.
GoldenSpy installs two identical versions of itself, both as persistent autostart services. If either stops running, it will respawn its counterpart.
[GoldenSpy](https://attack.mitre.org/software/S0493) has established persistence by running in the background as an autostart service.(Citation: Trustwave GoldenSpy June 2020)
Aisino Version: “Svm.exe” and “svmm.exe” will download and reinstall its partner process if it is deleted.
Stuxnet uses a driver registered as a boot start service as the main load-point.
Aisino Version: “Svm.exe” generates and stores uuid on HKLM\Software\IDG\DA. Baiwang Version: Numerous values were added under HKLM\SYSTEM\CurrentControlSet\services\WMPAssis”.
Aisino Version: The trojanized file schedules the malware download two hours after the tax software install.
GoldenSpy installs two identical versions of itself, both as persistent autostart services. If either stops running, it will respawn its counterpart.
[GoldenSpy](https://attack.mitre.org/software/S0493) has established persistence by running in the background as an autostart service.(Citation: Trustwave GoldenSpy June 2020)
Aisino Version: “Svm.exe” and “svmm.exe” will download and reinstall its partner process if it is deleted.
Stuxnet uses a driver registered as a boot start service as the main load-point.
Aisino Version: “Svm.exe” generates and stores uuid on HKLM\Software\IDG\DA. Baiwang Version: Numerous values were added under HKLM\SYSTEM\CurrentControlSet\services\WMPAssis”.
Baiwang Version: See T1559.001 (above)
Aisino Version: “Plugin.exe” and “mplugin.exe” logs are encrypted with SM4 Block cipher with a 16-byte key and then encoded in Base64.
[GoldenSpy](https://attack.mitre.org/software/S0493)'s uninstaller has base64-encoded its variables. (Citation: Trustwave GoldenSpy2 June 2020)
actors used the following command to rename one of their tools to a benign file name: ren "%temp%\upload" audiodg.exe ... APT1 ... used ... AcroRD32.exe ... as a name for malware ... APT28 ... changed extensions on files containing exfiltrated data to make them appear benign ... APT32 has renamed a NetCat binary to kb-10233.exe to masquerade as a Windows update.
[GoldenSpy](https://attack.mitre.org/software/S0493)'s setup file installs initial executables under the folder <code>%WinDir%\System32\PluginManager</code>.(Citation: Trustwave GoldenSpy June 2020)
Ce code a pour effet de désinstaller GoldenSpy et d’effacer toutes les traces de sa présence sur la machine.
[GoldenSpy](https://attack.mitre.org/software/S0493)'s uninstaller can delete registry entries, files and folders, and finally itself once these tasks have been completed.(Citation: Trustwave GoldenSpy2 June 2020)
Cherry Picker delete files and registry keys created by the malware. GoldenSpy's uninstaller can delete registry entries, files and folders, and finally itself once these tasks have been completed. QUADAGENT has a command to delete its Registry key.
Aisino Version: “Svm.exe” uses a series of custom "UserAgent" strings to enable communication to the C2 server.
Baiwang Version: See T1559.001 (above)
Baiwang Version: The malware checks if the victim system is running 64-bit version of Windows 7 or above before continuing the process.
[GoldenSpy](https://attack.mitre.org/software/S0493)'s installer has delayed installation of [GoldenSpy](https://attack.mitre.org/software/S0493) for two hours after it reaches a victim system.(Citation: Trustwave GoldenSpy June 2020)
Baiwang Version: WriteStartINF is executed and then subsequently hides the file system.
Aisino Version: See T1195.002 (above) Baiwang Version: See T1195.002 (above)
une nouvelle version du code de désinstallation est envoyée, comprenant une modification qui semble être destinée à éviter d’être détectée par les règles YARA publiées par Trustwave
[GoldenSpy](https://attack.mitre.org/software/S0493) has gathered operating system information.(Citation: Trustwave GoldenSpy June 2020)
[GoldenSpy](https://attack.mitre.org/software/S0493) has included a program "ExeProtector", which monitors for the existence of [GoldenSpy](https://attack.mitre.org/software/S0493) on the infected system and redownloads if necessary.(Citation: Trustwave GoldenSpy June 2020)
Aisino Version: "Svm.exe" sends host environment information to threat actor C2. Baiwang Version: See T1480 (above)
[GoldenSpy](https://attack.mitre.org/software/S0493)'s installer has delayed installation of [GoldenSpy](https://attack.mitre.org/software/S0493) for two hours after it reaches a victim system.(Citation: Trustwave GoldenSpy June 2020)
Aisino Version: Numerous IP/domains are coded for the malware to communicate. Baiwang Version: Numerous IP/domains are coded for the malware to download its additional files.
it also installed a hidden backdoor on the system that enabled a remote adversary to execute Windows commands or to upload and execute any binary ... connected to a command and control server completely separate from the tax software’s network infrastructure. | After the first three attempts to contact its command and control server, it randomizes beacon times. This is a known method to avoid network security technologies designed to identify beaconing malware.
[GoldenSpy](https://attack.mitre.org/software/S0493) has used the Ryeol HTTP Client to facilitate HTTP internet communication.(Citation: Trustwave GoldenSpy June 2020)
Aisino Version: See T1219 and T1571 (above)
[GoldenSpy](https://attack.mitre.org/software/S0493) constantly attempts to download and execute files from the remote C2, including [GoldenSpy](https://attack.mitre.org/software/S0493) itself if not found on the system.(Citation: Trustwave GoldenSpy June 2020)
Aisino Version: “Svm.exe” uses a series of custom "UserAgent" strings to enable communication to the C2 server.
Aisino Version: The malware enables telnet via 7357.
Baiwang Version: “Mshkos014.dat” utilize IP-based DGA to switch download domains.
[GoldenSpy](https://attack.mitre.org/software/S0493) has used HTTP over ports 9005 and 9006 for network traffic, 9002 for C2 requests, 33666 as a WebSocket, and 8090 to download files.(Citation: Trustwave GoldenSpy June 2020)
[GoldenSpy](https://attack.mitre.org/software/S0493) has exfiltrated host environment information to an external C2 domain via port 9006.(Citation: Trustwave GoldenSpy June 2020)
39 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
24 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.