GitHub Preserved 80,409 Orders from a Chinese Espionage Campaign

GitHub Preserved 80,409 Orders from a Chinese Espionage Campaign

The operators deleted the espionage commands from GitHub, but they could not erase their history: Apiiro reconstructed 80,409 commands sent to victims in 23 countries over more than two years. The analysis, published on December 2, 2026, describes a campaign that used GitHub to manage GitDoor backdoor implants and remained active after its public disclosure.

The operation is known as ShadowCloud. Kaspersky documented it in November, describing the use of GitHub, Microsoft SharePoint, and Ably to conceal command-and-control communications, as well as the GitDoor and GraphDoor backdoors. Sophos tracks some aspects of the activity under the name Bronze Sandcastle.

Kaspersky has not attributed the campaign to a specific actor or group. Apiiro, by contrast, describes the operators as a Chinese-speaking operation; SecurityWeek notes that their activities align with the interests of the People’s Republic of China. Kaspersky had also pointed to operational overlaps with Chinese-speaking groups such as FamousSparrow and CopperTurtle, without making an attribution.

Commits preserved deleted commands

GitDoor used public repositories to exchange instructions with infected machines. According to Kaspersky’s description, as reported by SecurityWeek, one repository was used to receive commands and another to communicate results. The operators uploaded command files—small and encrypted, according to Hackers Online Club—and then deleted them; the commits retained earlier versions.

Apiiro located 104 operator repositories. SecurityWeek specifies that 92 were connected to victims’ machines, while Hackers Online Club describes them as active command-and-control repositories. The firm grouped the operation into regional teams: Taiwan; the Philippines; Vietnam and Southeast Asia; Zambia and Uganda; South and Central Asia; and Latin America and Italy.

The reconstructed dataset includes 2,902 distinct files requested from victims. The most common topics include government and diplomatic documents, military and defense materials, credentials, email inboxes, and information from LINE, Signal, Telegram, and WhatsApp. Apiiro described the records as a task list for the operators, with the objective, time, and victim associated with each command.

“This record is the operators’ own task list: what they asked for, from whom and when, across every victim, down to the minute.”

— Apiiro

The geographic reach spans 23 countries and five continents. Countries named by The Hacker News include the United States, Peru, Brazil, Argentina, Italy, Uganda, Zambia, Kyrgyzstan, Afghanistan, Pakistan, India, Laos, Thailand, Cambodia, Singapore, Malaysia, Vietnam, Taiwan, and the Philippines.

Governments, political parties, and suppliers under surveillance

In Taiwan, the activity reached the three main political parties: the ruling Democratic Progressive Party, the Kuomintang (KMT), the main opposition party, and the Taiwan People’s Party. Suppliers linked to the armed forces and infrastructure contractors were also targeted, according to Apiiro via SecurityWeek.

In the Philippines, the operators targeted the Coast Guard to track U.S. forces stationed in the country. Apiiro also identified maritime and defense files among the data they sought. In the United States, targets included a company that builds websites—including pages for 20 Trump clubs and resorts, such as Mar-a-Lago, Bedminster, and Doral—the IT headquarters of a large industrial union, and accounting and software databases belonging to a federal contractor.

The list of organizations identified by Apiiro also includes a foreign policy think tank in Italy; Argentina’s Ministry of Foreign Affairs; Eswatini’s national data center; a help desk account for Peru’s Ministry of Defense; Caribbean ministries of foreign affairs and energy; Mexico’s Ministry of Economy; India’s national electronic toll collection system; and the Cybercrime Office of the Philippine Department of Justice.

Researchers also observed requests for Philippine defense and maritime documents created just days earlier. In Taiwan, the monitoring included KMT website and payment folders. In both cases, the commands show which files were requested, but do not by themselves prove that the data was successfully obtained.

Apiiro warns that a command does not prove it was executed. Deleted commands also do not confirm that the implant executed them: many were deleted hours later, in batches that cleared commands from multiple victims. In addition, results sent by the implants ended up in private repositories that the firm did not access.

494 programs and a Windows exploit

Apiiro counted 494 Windows programs uploaded by the operators. Of these, 347 had no VirusTotal record, according to The Hacker News; Hackers Online Club puts the proportion at around 70%. The identified tools include a program to decrypt the Signal Desktop database and export messages to text files, as well as an exploit for the Windows kernel.

The exploit, called wdiag.exe, leveraged CVE-2026-42980, a vulnerability Microsoft patched in June 2026. It was uploaded only once, on November 17 at 7:45 UTC, to an Exchange 2010 server accessible through a repository serving the KMT. The file had been compiled the previous day and was not present in any of the 104 repositories before that upload.

Shmulik Cohen, an Apiiro researcher, told The Hacker News that the program was a reconstructed version of a public proof of concept from July: its logging strings had been renamed, Microsoft dialog boxes had been removed, and it could silently execute a command and return the result through the implant.

Subsequent commands were directory listings. Apiiro could not determine whether the exploit was executed or whether the server was patched. For that reason, the firm considers it an operational deployment of an exploit against a real victim, not a confirmed exploitation.

The operation continued after disclosure

Kaspersky published its ShadowCloud analysis on November 17, 2026, but the operators continued their activities. SecurityWeek reports new tasks targeting the KMT, including the installation of loaders and drivers through group policy tasks and the deployment of a proxy. On November 20, another government target in the Philippines was hit; on the 23rd, the operators opened a session on a KMT machine containing folders for the party’s website and payment portal.

That same November 23, one of the attacks targeted the Philippine National Nutrition Council. Apiiro also assessed that another victim had been compromised that day to upload tools that had not been previously identified.

The analysis found evidence related to GitLab as a possible alternative channel. Between October 10 and 22, the Latin America team deployed a new family of loaders on victims in the region. On a machine belonging to a Caribbean ministry, six versions of three PowerShell scripts were uploaded and executed on October 21 and 22: netdiag.ps1, proxy_cred_probe.ps1, and gl_proxy_probe.ps1.

The scripts checked whether the machine could reach GitLab and several GitHub services, including through the ministry’s internal web proxy and using its credentials. One included a comment that read “github C2 confirmed alive in same env”. Apiiro interprets the tests as indications that GitLab could serve as a fallback if GitHub were blocked, but found no active commands routed through GitLab.

Timing points to operators in China

The commands offer clues about the routine of those who wrote them. Apiiro reported that 85% were written between 8:00 a.m. and 7:00 p.m. Beijing time, with a break at midday. Saturdays saw one command for every seven or eight on a working day; activity also declined during most Chinese public holidays and rose again on Saturdays that China designates as official working days.

This schedule and the use of Simplified Chinese support the assessment that Chinese-speaking operators are behind the activity. However, they do not identify a specific organization. Hackers Online Club adds that Apiiro reported the repositories to GitHub, the drivers to Microsoft, and its findings to CISA, the FBI, and national computer emergency response teams before publishing the analysis, starting on November 19.

The oldest records from this campaign date back to November 2024. And although researchers reconstructed tens of thousands of commands, the question they leave open is a specific one: which commands were executed, and what information did the implants return?

Sources: The Hacker News, SecurityWeek, Hackers Online Club (HOC), https://unsafe.sh