'GoldenSpy' Malware Hidden in Tax Software Spies on Companies Doing Business in China'GoldenSpy' Malware Hidden in Tax Software Spies on Companies Doing Business in China
Advanced persistent threat (APT) campaign aims to steal intelligence secrets from foreign companies operating in China.
June 25, 2020
A newly discovered attack campaign infiltrated a UK-based technology company via tax payment software required by a Chinese bank in order to conduct business in China.
Researchers at Trustwave found the so-called GoldenSpy malware during a threat-hunting operation on behalf of the victim UK company in mid-April. The UK company, which Trustwave did not disclose in its newly published research, has strong ties to the defense industry and does significant business in the US, Australia, and the UK; it recently opened operations in China.
Brian Hussey, Trustwave's vice president of cyber threat detection and response, says the attackers used a backdoor to take control of the UK company's network. To date, Trustwave has confirmed other such incidents at a software/technology company as well as at a major global financial institution.
"They [the attackers] could run Windows commands, create new users, move laterally and upload code to execute malware," Hussey says. "They could also potentially use the network access to exfiltrate data."
Hussey would not confirm the attackers were agents of the Chinese government, but did say they were motivated more by intelligence than financial gain.
"Companies need to understand that there are risks to doing business in China and these kinds of attacks are possible," he says. "Once the attack was discovered, we segmented the network so the UK company could use the tax payment software to pay its local taxes, but the attackers no longer had access to the full network."
The Trustwave report goes on to lay out a pattern of suspicious behavior by GoldenSpy:
Continues to propagate even after deleted. GoldenSpy installs two identical versions of itself, both as persistent autostart services. If either stops running, it will respawn its counterpart. In addition, it uses an EXEProtector module that monitors for the deletion of either iteration of itself. If deleted, the malware will download and execute a new version. Trustwave believes that this triple-layer protection makes it exceedingly difficult to remove this kind of file from an infected system.
Hard to uninstall. The Intelligent Tax software's uninstall feature will not remove GoldenSpy. It leaves GoldenSpy running as an open backdoor into the environment, even after the tax software gets fully removed.
Does not fully install for two hours. GoldenSpy does not download and install until a full two hours after the tax software installation process finishes. When it finally downloads and installs, it does so silently, with no notification. Trustwave considers this highly unusual and a method to hide from the victim.
Reaches out to suspicious domains. GoldenSpy does not contact the tax software's network infrastructure (i-xinnuo[.]com), rather, it reaches out to ningzhidata[.]com, a domain known to host other variants of the GoldenSpy malware. After the first three attempts to contact its command and control server, it randomizes beacon times to avoid network security technologies designed to identify beaconing malware.
"They showed a lot of patience and discipline, which leads me to believe that this was an operation to gather intelligence," says Jake Williams, founder and president of Rendition Infosec. "Financially motivated attackers wouldn't look to play the long game by creating malware that slowly infiltrates the customers of the tax software company. Of course, once the news comes out, there are people who will believe that it was the Chinese [government] no matter what new information comes out, so I think it will be damaging to" them, he says.
Williams says it also could be another nation-state made to appear as if it's operating out of China. It's also interesting that tax software was used to infiltrate the UK company's systems, he notes, since tax software was also used in the NotPetya attack, which in the end caused more than $10 billion in damages.
On the Hunt
Trustwave's Hussey said while doing routine threat analysis for its UK client, his research team found an executable file that displayed highly unusual behavior that sent system information to a suspicious Chinese domain. The processes were part of the bank's required software for paying local taxes, called Intelligent Tax, which was developed by the Golden Tax Department of Aisino Corporation.
As Trustwave continued its investigation, it found that the tax software worked as advertised, but it also installed the hidden backdoor.
"Basically, it was a wide open door into the network with SYSTEM level privileges that connected to a command and control server completely separate from the tax software’s network infrastructure," the report said. "Based on this, and several other factors we determined this file to have sufficient characteristics to be malware. We've since fully reverse-engineered the files and named the family GoldenSpy."
Learn from industry experts in a setting that is conducive to interaction and conversation about how to prepare for that "really bad day" in cybersecurity. Click for more information and to register for this On-Demand event.
About the Author(s)
You May Also Like
Modern Supply Chain Security: Integrated, Interconnected, and Context-DrivenNov 06, 2023
How to Combat the Latest Cloud Security ThreatsNov 06, 2023
Reducing Cyber Risk in Enterprise Email Systems: It's Not Just Spam and PhishingNov 01, 2023
SecOps & DevSecOps in the CloudNov 06, 2023
What's In Your Cloud?Nov 30, 2023
Passwords Are Passe: Next Gen Authentication Addresses Today's Threats
What Ransomware Groups Look for in Enterprise Victims
Concerns Mount Over Ransomware, Zero-Day Bugs, and AI-Enabled Malware
Everything You Need to Know About DNS Attacks
Securing the Remote Worker: How to Mitigate Off-Site Cyberattacks