GitHub records reveal two years of Chinese espionage commands
A Chinese-speaking threat actor targeted organizations in 23 countries over two years, using public GitHub repositories to manage malware and expose more than 80,000 commands, Apiiro reports.
A Chinese-speaking threat actor targeted organizations in 23 countries during a two-year espionage campaign that used public GitHub repositories to manage malware and preserve command records, cybersecurity firm Apiiro reports.
The operation used Microsoft SharePoint, GitHub and Ably to conceal command-and-control traffic and deploy the GraphDoor and GitDoor backdoors. Apiiro identified 104 repositories linked to the campaign, including 92 connected to victim machines.
GitDoor used one repository to receive commands and another to return results. The operators deleted commands within hours, but GitHub’s public commit histories retained records of the activity. Apiiro decoded more than 80,000 commands and determined when and what the operators instructed implants to do on individual machines.
“A command is not proof that anything happened,” Apiiro wrote in its report. The firm noted that deletions do not confirm execution. Operators often removed commands in bulk several hours later, while data returned by the implants was sent to private repositories that Apiiro did not examine.
Apiiro linked the repositories to regional teams covering Taiwan; the Philippines; Vietnam and Southeast Asia; Zambia and Uganda; South and Central Asia; Latin America; and Italy. The campaign focused on intelligence gathering from organizations in Asia and Africa, although the identified commands pointed to targets on five continents.
In the United States, the targets included a website development company that built sites for 20 Trump clubs and resorts, including Mar-a-Lago, Bedminster and Doral. The operators also targeted the information technology headquarters of a large industrial union, along with a federal contractor’s accounting database and software provider.
In the Philippines, the group targeted the Coast Guard, apparently seeking information about U.S. forces in the country. In Taiwan, it targeted the ruling Democratic Progressive Party, the Kuomintang and the Taiwan People’s Party. Military suppliers and infrastructure contractors were also targeted.
The activity continued after the campaign was publicly described on Nov. 17. Apiiro found that the operators continued targeting the Kuomintang, using Group Policy tasks to install loaders and drivers and deploying a proxy on one machine. Minutes before the report was published, the operators uploaded a Windows kernel exploit to a repository. On Nov. 20, they targeted another Philippine government entity. On Nov. 23, they opened a session to a Kuomintang machine containing the party’s website and payment-site folders.
Other identified targets included a foreign-policy think tank in Italy, Argentina’s Foreign Ministry, Eswatini’s national data center, a help-desk account at Peru’s Ministry of Defense, foreign and energy ministries in the Caribbean, Mexico’s Economy Ministry, India’s national electronic toll collection system and the Philippine Department of Justice’s Office of Cybercrime. Organizations in Brazil and other countries were also targeted.
Apiiro found 494 Windows programs used in the operation, along with 170 side-loading dynamic-link libraries and at least 87 versions of the GitDoor implant. Side-loading causes a legitimate program to load a malicious library, which can help malware avoid detection.
The campaign’s operational methods overlapped with those associated with Chinese-speaking groups known as FamousSparrow and CopperTurtle. Sophos tracks the suspected operator as Bronze Sandcastle and has linked its activity to the interests of the People’s Republic of China.
Apiiro’s analysis found that the activity logs followed Beijing office hours and China’s holiday calendar, including Saturdays designated as official working days. “The log places the attackers in mainland China,” the firm wrote.







