Public GitHub Commit History Reveals Two Years of a China-Linked Espionage Group's Tasking
Apiiro decoded more than 80,000 commands left in public GitHub commit histories by the group behind Operation ShadowCloud, showing espionage tasking against organizations in 23 countries over two years.

Key points
- The group, tracked by Sophos as Bronze Sandcastle, abused Microsoft SharePoint, GitHub and Ably to conceal command-and-control traffic.
- Its GitDoor implant used one GitHub repository to receive commands and another to report results; deleted commands remained in public commit history.
- Apiiro identified 104 repositories, 92 linked to victim machines, organised by regional teams.
- Targets included government ministries, political parties, defence suppliers, contractors and a national data center across five continents.
- Apiiro counted 494 Windows programs, 170 side-loading DLLs and at least 87 GitDoor versions.
What was found
Research firm Apiiro has reconstructed two years of activity by a Chinese-speaking espionage group by reading the public commit histories of GitHub repositories the group used to control its implants. The campaign was first described by Kaspersky in November as Operation ShadowCloud, and the group is tracked by Sophos as Bronze Sandcastle.
The group's GitDoor backdoor used one repository to receive commands and a second to return results. Commands were deleted hours after being posted, but they persisted in public history. Apiiro decoded over 80,000 of them across 104 repositories, 92 tied to victim machines, run by regional teams with separate accounts, relay servers and implant builds.
Who was targeted
Apiiro assesses that organizations in 23 countries were likely targeted, with a focus on intelligence gathering in Asia and Africa. Named targets include political parties and military suppliers in Taiwan, Philippine government bodies, ministries in Latin America and the Caribbean, a national data center in Eswatini and a toll collection system in India. Apiiro cautions that a command is not proof that it ran, as results went to private repositories it did not access.
Activity continued after Kaspersky's report on November 17, including deployment of loaders and drivers via Group Policy tasks and a proxy on a compromised machine.
Why it matters
The campaign hid in trusted cloud and developer services such as Microsoft SharePoint, GitHub and Ably, which many institutions allow by default. It also relied heavily on DLL side-loading, with 170 side-loading DLLs and at least 87 GitDoor versions observed. Blocking known malicious servers alone would not have caught this traffic; behavioural monitoring of legitimate services is needed.
What to do now
- Review outbound traffic to GitHub, SharePoint and Ably from servers and endpoints that have no business need for them, and alert on unusual API usage.
- Ask threat intelligence providers for indicators linked to Operation ShadowCloud, GitDoor and GraphDoor, and run a retrospective hunt in EDR and proxy logs.
- Strengthen detection of DLL side-loading and unexpected kernel driver loading on Windows hosts.
- Audit Group Policy for recently created scheduled tasks or unapproved changes, especially on domain controllers.
- Include suppliers, contractors and web hosting providers in third-party risk reviews, given the group's use of supply-chain access.
How useful was this story?
0.0 out of 5 · 0 ratings
Related frameworks
Our consultants can assess your exposure and map the change to your controls and evidence.
