Chinese Spies Ran Their Implants From Public GitHub Repos, and Git Kept All 80,409 Orders. How to Spot GitDoor on Your Network, Plus Two New C2 Domains
Three things to do today. First, find any machine that is not a developer workstation polling api.github.com repository contents around the clock, nights and weekends included: that is how a GitDoor implant takes orders. Second, search any GitHub repositories your organization can see for commits authored by INSOMNIA with the message "commit from INSOMNIA". Third, block the two command-and-control domains at the end of this post. We added them to our feed today, attributed to the operation. Do not block GitHub. The operators were counting on that.
What happened
On November 17, Kaspersky exposed Operation ShadowCloud, an espionage campaign whose backdoor, GitDoor, takes its orders from a public GitHub repository. We covered that report the same day. On December 2, Apiiro Research published the follow-up, and it is a rare thing: the attackers' own task list.
The design explains why. To send a command, an operator commits a small encrypted file to the repository. The implant reads it, runs it, and the file is deleted later. But Git keeps deleted files in its history. Apiiro found 104 operator repositories, 97 of them never reported before, and decoded 80,409 commands sent over two years, starting in November 2024, against victims in 23 countries. 92 of those repositories were connected to victim machines. Apiiro reports GitHub had taken down all 104 by November 25.
A note on that number: 80,409 counts commands the operators queued, not files that left a victim. Apiiro is explicit that a command is not proof anything ran, and that whatever the implants sent back went to private repositories it did not open. The research reports what was ordered.
Who and what they went after
Per Apiiro, the targets were mostly government, diplomatic and military. The Philippine Coast Guard drew more commands than any other victim, 3,696 over a year, and the dated papers ordered from it were a median of two days old, against 32 days across all victims. Taiwan's opposition party, the KMT, was a standing target: five days before its chair met Xi Jinping in April 2026, the operators ordered her final talking points. Apiiro also describes US victims, including a company that builds websites for private clubs, among them about 20 Trump properties (Apiiro says nothing in the log shows access to the Trump Organization's own network), a federal contractor's accounting database, and a large US industrial union. Other victims sit in Italy, Peru, Eswatini, the Caribbean, Central Asia, India, Laos and more.
The operation did not stop when Kaspersky published. Fifteen minutes before Kaspersky's report went live, the operators uploaded a rebuilt public exploit for CVE-2026-42980, a Windows kernel bug Microsoft patched in June, to a KMT machine. Twenty-three minutes after it, they sent that machine a new command, and over the next days they wrote Group Policy tasks to run their program across the party's machines and uploaded a tool that would give them a way in that does not depend on GitHub.
Who did it
Apiiro assesses the operators are an office team in mainland China, and labels it an assessment, not proof. Its reasons: commands written in Simplified Chinese, 85% of them between 8 a.m. and 7 p.m. Beijing time with a lunch break, and a calendar that follows mainland China's public holidays down to the Saturdays China declares workdays. Sophos tracks part of the same activity as BRONZE SANDCASTLE, a China-based group. Kaspersky did not attribute it to one group but found implants of two Chinese-speaking groups, FamousSparrow and CopperTurtle, staged alongside GitDoor.
How to spot it
These come from Apiiro's detection section and its shared indicators appendix.
The polling: a server, or a desktop outside engineering, calling api.github.com/repos/ (owner)/(repo)/contents all day and all night. GitHub polling from storage appliances counts too; Apiiro notes the operators ordered an autorun script on a QNAP NAS.
The commits: author INSOMNIA with the address [email protected], message "commit from INSOMNIA".
The command files: names shaped like main.(code).(four characters).js, or the older main.(code).js, sometimes ending in .kmap, .pmap, .apmap, .swp or .tmp, appearing in a repository and later deleted in bulk.
The loaders: a signed, legitimate program sitting next to a malicious DLL and a base64 payload file. Pairs Apiiro lists include javaw.exe or jconsole.exe with jli.dll, Sandboxie programs with SbieDll.dll, wsc_proxy.exe with wsc.dll, LineAppMgr.exe with msvcp140.dll, zoomit.exe with winmm.dll, pythonw.exe with python39.dll, and mpclient.exe with mpclient.dll. The payload file is most often config.ini, but also usrClass.dat, store.dat, EASports.conf, ThirdPartyNotice.txt, update.log or legacy.key.
Where they stage: executables in C:\ProgramData\intel, C:\ProgramData\ssh, C:\Users\Public, C:\Users\Public\Libraries, C:\PerfLogs\sc2, %LOCALAPPDATA%\Programs or %LOCALAPPDATA%\Microsoft\WindowsApps.
Persistence: scheduled tasks named \SystemOptimizer, \SystemOptimizerTemp, \SystemOptimizerCustomEvent, \SamsungMagician, Lenovo-BACKUP-(SID), Adobe-Agent-(SID), javaw-(SID), or \Microsoft\XblGameSave\Telemetry.
Credential theft: the registry value WDigest UseLogonCredential set to 1 (it makes Windows keep passwords in clear text), LSASS dumps disguised as proc.png, 11.txt or (host IP).dmp, and an event-log wiper named Record.exe next to 2025.evtx.
Ably traffic: rest.ably.io was used as a proxy channel on Linux. Ably is a legitimate service, so treat it as a clue to combine with the others, never as a block.
Am I affected?
Pull a week of proxy or firewall logs for api.github.com and list the source hosts. Anything that is not a developer machine, CI runner or Git client, and that calls at all hours, gets a closer look: check it for the scheduled task names and the DLL pairs above. Then search your endpoint tool for the payload file names in the staging folders listed. And check DNS logs for the two domains below. A clean result means none of the patterns Apiiro shared turned up, not that you are clear: Apiiro says case-specific indicators went privately to national CERTs, and most of the 494 tools the operators uploaded had never been seen by VirusTotal.
What we fed
Block these with our free feed, setup guides at docs.dugganusa.com.
Added today, from Apiiro's appendix, at confidence 80, attributed to Operation ShadowCloud, and confirmed landed in our index by read-back:
openclawapi[.]webredirect[.]org, the server of a custom remote-access tool, August 2026. Block this exact host only. webredirect.org is a dynamic DNS service, and the parent is shared by many unrelated users. n[.]deepso[.]org, the server of a second custom remote-access tool, November 2026.
Apiiro says both tools were sent through the repositories serving a South Asian government's machines, and that neither domain appears in earlier vendor reports. ThreatFox also lists both, which we cite as corroboration. Apiiro found them; we are repeating them so defenders who pull our feed are covered.
Already in our feed since November 17, from Kaspersky's report: the GitDoor sample hash 552f0a9cc5fc3755721fa49be05e8035 and the C2 domain ekmt[.]tw, along with the rest of Kaspersky's published set. We hold about 40 records attributed to the operation in total.
Not fed: rest.ably.io and GitHub itself (legitimate services), and the file names, folders and task names above, which are hunting clues rather than blockable indicators.
Edge: this is outbound command traffic from infected machines, not something that probes our web edge, so we did not run an edge check, and we make no claim either way about whether our edge saw these operators.
How we know
Everything about the commands, the repositories, the victims and the attribution comes from Apiiro Research's report of December 2, 2026, which we read in full. Background on GitDoor and GraphDoor comes from Kaspersky GReAT's November 17 report. The Hacker News covered Apiiro's findings on December 4. Credit for the research belongs to Apiiro, and before them Kaspersky; we are the reporter. Apiiro says it reported the repositories to GitHub and the drivers to Microsoft, and notified CISA, the FBI and national CERTs starting November 19.
Sources: Apiiro, "GitDoor: Chinese espionage commands decoded from GitHub" (https://apiiro.com/blog/gitdoor); Kaspersky Securelist, Operation ShadowCloud (https://securelist.com/operation-shadowcloud-graphdoor/122005/); The Hacker News (https://thehackernews.com/2026/12/github-commit-history-exposes-80409.html); Microsoft, CVE-2026-42980 (https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-42980).
Read next: GitDoor and GraphDoor Hide Their C2 in GitHub and SharePoint. You Cannot Block the Platform, So Hunt the Process That Talks to It, our November 17 post on Kaspersky's report.
Every indicator in this post is in the feed. Free.
1.58M+ IOCs, STIX 2.1 / TAXII, 88% novel vs ThreatFox, exploited-CVE leads ahead of CISA. No credit card — a free API key in 30 seconds, and you can audit every claim above against the live endpoints.



Comments