Chinese Espionage Campaign Leveraged GitHub for Two Years to Manage Backdoors
A sophisticated Chinese espionage campaign, active for two years, utilized public GitHub repositories to manage and deploy backdoors like GitDoor and GraphDoor against victims in 23 countries.

A Chinese-speaking threat actor has been conducting a two-year-long espionage campaign, leveraging public GitHub repositories to manage its malicious implants and command-and-control (C&C) infrastructure. Cybersecurity firm Apiiro uncovered the operation, which targeted organizations across 23 countries, including significant activity in Asia and Africa, aligning with the intelligence-gathering objectives of the People's Republic of China (PRC).
The campaign, also detailed by Kaspersky as Operation ShadowCloud, saw the threat actor abuse services like Microsoft SharePoint, GitHub, and Ably to mask C&C traffic and distribute the GitDoor and GraphDoor backdoors. Sophos tracks the group responsible as Bronze Sandcastle, noting its activities are consistent with PRC interests.
Kaspersky's earlier analysis revealed that the GitDoor implant specifically used two GitHub repositories for its C&C communications. One repository served as a staging area for receiving commands, while the other was used to report back the results of those commands. Although the threat actors attempted to delete commands shortly after execution, their presence remained in the public commit histories of these repositories.
Apiiro's deep dive into GitHub's historical data allowed them to decode over 80,000 commands, providing an unprecedented view into the campaign's operational details over the past two years. "Espionage operations are usually seen through their malware and servers, and rarely through their orders. This record is the operators’ own task list: what they asked for, from whom and when, across every victim, down to the minute," Apiiro stated in their report.
The investigation identified 104 GitHub repositories used in the campaign, with 92 directly linked to victim machines. These repositories were organized by regional teams, each with its own GitHub accounts, relay servers, and implant build processes, covering regions such as Taiwan, Southeast Asia, parts of Africa, South and Central Asia, and Latin America.
Victims spanned five continents. In the United States, targets included a website development company serving Trump-affiliated properties, the IT headquarters of a large industrial union, and a federal contractor's accounting database vendor. In Taiwan, the group targeted the three major political parties (DPP, KMT, TPP) and military suppliers. The Philippines saw its Coast Guard and the Department of Justice's Office of Cybercrime targeted.
Apiiro noted that the threat actor continued operations even after Kaspersky's report was published, targeting the KMT with loaders and drivers and deploying a proxy. Minutes before the Operation ShadowCloud report went live, the attackers uploaded a Windows kernel exploit to a repository. The group's operational patterns, including adherence to Beijing office hours and mainland China's holiday calendar, strongly indicate their location within mainland China.
The campaign employed a wide array of tools, with Apiiro uncovering 494 Windows programs, 170 side-loading DLLs, and at least 87 distinct versions of the GitDoor implant. While the deleted commands do not definitively prove execution, the sheer volume and detail of the decoded orders provide a clear picture of a persistent, well-resourced espionage operation.