Public GitHub Commit History Lays Bare Two Years of Espionage Commands From Operation ShadowCloud
A public record has given defenders an unusually detailed view of a long-running espionage campaign. Operation ShadowCloud, first documented by Kaspersky last month, targets government sectors in Asia and Africa using backdoors such as GitDoor and GraphDoor. Sophos tracks some aspects of it as Bronze Sandcastle. Because the operators used GitHub for command-and-control (C2), every instruction they sent stayed in the commit history.
In a report published on 2 December 2026, Apiiro said it found 80,409 commands sent through GitHub against victims in 23 countries, across 104 operator repositories. The earliest commands date to November 2024. Operators requested 2,902 distinct files, mostly tied to government and diplomacy, military and defence, credentials, mailbox data, and messaging apps such as LINE, Signal, Telegram and WhatsApp. Activity continued after public disclosure, including an attack on the Philippines' National Nutrition Council on 23 November 2026.
The group also uploaded 494 Windows programs, 347 of which have no VirusTotal record. One was a Windows kernel exploit, uploaded once to an Exchange 2010 server reached through a repository serving Taiwan's Kuomintang party. Apiiro says it is a rebuilt version of a public proof of concept from July, altered to run silently through the implant. The commands that followed were directory listings, so the evidence shows deployment against a live victim, not confirmed successful exploitation.
Apiiro also saw signs the operators may be preparing GitLab as a backup C2 channel. In October, PowerShell scripts on a machine inside a Caribbean ministry checked whether GitHub and GitLab were reachable, with a comment reading "github C2 confirmed alive in same env". Apiiro stresses there is no evidence of live GitLab tasking. Kaspersky has not attributed the activity to a specific group, but the commands point to a Simplified Chinese-speaking operator working Beijing office hours and mainland China's holiday calendar.
Why it matters
Attackers hiding C2 inside GitHub traffic break the assumption that connections to a major, trusted platform can be safely allowed without scrutiny, so allowlisting by domain alone fails here. Organisations still running unsupported or unpatched servers, such as the Exchange 2010 host, are exposed to repurposed public exploits that are rebuilt within days. The possible GitLab fallback means blocking GitHub alone will not close the channel.
What to do
- Review outbound connections from servers and workstations to GitHub and GitLab, and investigate any host with no business reason to use them.
- Hunt for the filenames wdiag.exe, netdiag.ps1, proxy_cred_probe.ps1 and gl_proxy_probe.ps1.
- Patch or retire Exchange 2010 servers and confirm the June Windows kernel updates are applied.
- Check for unsigned or unknown Windows executables that have no VirusTotal record.