GitHub History Exposes Two Years of Chinese Espionage Orders
Apiiro decoded over 80,000 commands from 104 public GitHub repositories, exposing a two-year Chinese espionage campaign targeting victims in 23 countries.
In short
80,000 commands, 23 countries, 104 repos
By Dillip Chowdary • Dec 03, 2026 • Source: SecurityWeek

At a glance
- The number
- 80,000 commands, 23 countries, 104 repos
- Threat actor
- Bronze Sandcastle (PRC-aligned)
- Backdoors
- GitDoor (87 versions) and GraphDoor
- Toolset
- 494 Windows programs, 170 DLLs
- Schedule
- Beijing office hours, China holidays
In this post
Cybersecurity firm Apiiro uncovered over 80,000 decoded commands across 104 public GitHub repositories used by a Chinese-speaking threat actor to target organizations in 23 countries over two years, according to SecurityWeek's report.
This report is for security teams and threat defenders tracking state-aligned espionage infrastructure, covering the campaign's GitHub command channels, targeted organizations, and malware toolset. Defenders can inspect their networks for unauthorized GitHub, Microsoft SharePoint, and Ably traffic alongside 170 side-loading DLLs and 87 GitDoor implant versions.
01Operation ShadowCloud command and control
Kaspersky first exposed the espionage campaign in November under the name Operation ShadowCloud, detailing its infection chain, backdoors, and multiple shellcode families. The hacking group, tracked by Sophos as Bronze Sandcastle, conducts intelligence gathering aligned with People's Republic of China interests, mainly targeting organizations in Asia and Africa. Researchers noted operational overlaps between this actor and other Chinese-speaking groups, including FamousSparrow and CopperTurtle.
To conceal command-and-control traffic, the operators abused legitimate cloud services including Microsoft SharePoint, GitHub, and Ably. Victims were infected with two distinct backdoors named GraphDoor and GitDoor, with GitDoor using one GitHub repository as a command drop point and another to report results.
02Decoded commands in 104 repositories
Although the operators deleted commands sent via GitHub hours after issuing them, the instructions remained preserved inside the repositories' public commit histories. Apiiro decoded over 80,000 of these commands, gaining visibility into two years of operator tasking across 104 repositories, 92 of which were connected directly to victim machines.
Apiiro described the recovered commit logs as the operators' own task list, showing what they requested, from whom, and when, down to the minute. According to Apiiro, the 104 repositories represent a single operation organized into regional teams, each maintaining its own GitHub accounts, relay servers, and implant builds.
These regional teams cover Taiwan, the Philippines, Vietnam and Southeast Asia, Zambia and Uganda, South and Central Asia, and Latin America and Italy. Every team operated with dedicated infrastructure tailored to its assigned geographic region rather than sharing a single global repository.
03Targets across 23 countries
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
Based on the decoded commands, the espionage campaign likely hit organizations across 23 countries spanning five continents, with heavy concentrations in the United States, Taiwan, and the Philippines. In the United States, the operators targeted a company that builds websites for 20 Trump clubs and resorts, including Mar-a-Lago, Bedminster, and Doral. They also targeted the IT headquarters of a large industrial union and a federal contractor's accounting database and software vendor.
Note: Apiiro cautioned that a logged command is not proof that an action executed on a victim machine. Most deletions occurred hours later in bulk sweeps clearing several victims at once, and implant responses went to private repositories that researchers did not open.
In the Philippines, the threat actor targeted the Philippine Coast Guard in an effort to follow United States forces operating in the country. On November 20, three days after Kaspersky's public disclosure, the operators also targeted another Philippine government entity.
04Taiwan targets and November activity
In Taiwan, the operators targeted all three main political parties: the ruling Democratic Progressive Party, the main opposition Kuomintang, and the smaller Taiwan People's Party. The group also pursued Taiwan's military through its suppliers and targeted the island's critical infrastructure through outside contractors.
After Kaspersky published its Operation ShadowCloud report on November 17, the threat actor continued active operations against the Kuomintang. Operators planted loaders and drivers via Group Policy tasks and deployed a proxy on a compromised machine. Minutes before Kaspersky's report went live, the attackers also uploaded a Windows kernel exploit to a repository.
On November 23, nearly a week after the initial public disclosure, the operators opened an active session to a Kuomintang machine. That targeted system held folders containing the political party's website and payment-site infrastructure, demonstrating persistent access despite public exposure.
05Global victims and Beijing schedule
Beyond North America and East Asia, the campaign targeted a foreign-policy think tank in Italy, Argentina's foreign ministry, and Eswatini's national data center. Operators also accessed a help-desk account at Peru's Ministry of Defense, Caribbean foreign and energy ministries, Mexico's economy ministry, and organizations in Brazil. Additional victims included India's national electronic toll collection system and the Philippine Department of Justice's Office of Cybercrime.
Across the two-year operation, Apiiro uncovered 494 distinct Windows programs deployed by the attackers across victim environments. The group also relied on 170 side-loading DLLs and at least 87 distinct versions of the GitDoor implant to maintain persistence and execute commands.
Apiiro noted that the command timestamps place the attackers in mainland China, as the operators keep Beijing office hours. Their activity follows mainland China's official holiday calendar, including the specific Saturdays that China declares official workdays, a schedule no one outside the mainland follows.
Frequently asked questions
How did Apiiro uncover the Bronze Sandcastle espionage commands?
The threat actor deleted commands sent through GitDoor's GitHub repositories hours after issuing them, but those instructions remained in the public commit histories. Apiiro decoded over 80,000 commands from 104 repositories, 92 of which were linked to victim machines.
Which cloud services and backdoors were used in Operation ShadowCloud?
The operators abused Microsoft SharePoint, GitHub, and Ably to hide command-and-control traffic. They infected victims with the GraphDoor and GitDoor backdoors, including at least 87 distinct versions of GitDoor.
Did the attackers stop after Kaspersky exposed Operation ShadowCloud on November 17?
No, the operators continued targeting Taiwan's Kuomintang and Philippine government entities after the November 17 disclosure. They uploaded a Windows kernel exploit minutes before the report went live and opened a session to a Kuomintang machine on November 23.
Why do researchers believe the operators are based in mainland China?
Command timestamps in the decoded GitHub logs show the attackers work Beijing office hours. They also follow mainland China's official holiday calendar, including Saturdays declared as official workdays.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement