Skip to content

Response, New York. Noah Park: Check Point Patches Actively Exploited Management Server Path Traversal. Detection, Dallas. Ava Okello: Report Finds Nearly Half of Deployed Detections Need Attention Before SOCs Can Trust Them.

SOCtember

Always First. Fast SOC News.

An Apiiro graphic titled The spies left the door open, subtitled two years of espionage commands against at least 23 countries, left readable on GitHub, showing a world map with lines from China to the United States, Mexico, Peru, Brazil, Argentina, Italy, Uganda, Zambia, Eswatini, Taiwan, the Philippines, Vietnam and other countries, and counters reading 80,409 commands, 2,902 files requested and 23 countries.
Image: Apiiro (fair use). Lead graphic from "The spies left the door open," Apiiro Research, December 2, 2026.

Threat Intel

Apiiro Decoded 80,409 Commands a China-Linked Spy Crew Left in GitHub's Commit History, Showing Two Years of Orders Against Victims in 23 Countries and an Operation That Kept Working After Kaspersky Exposed It

The GitDoor implant took its orders from public repositories, and the operators deleted each command file, but Git kept them. Apiiro found 104 repositories, 97 never reported, and traced orders for Taiwanese opposition talking points, Philippine Coast Guard papers and a US union's mail archives. GitHub has taken all 104 down.

Priya Shah, Threat IntelSingapore7 min read

TEL AVIV - The operators deleted every order they sent. Git kept them anyway.

For two years, a Chinese-speaking espionage operation ran its implants from public GitHub repositories. To send a command, an operator committed a small encrypted file; the implant polling the repository read it and ran it, and the file was deleted hours later. But each delete was just another commit, and the public history preserved what came before. Researchers at the software security firm Apiiro say they recovered and decoded 80,409 of those commands, covering victims in 23 countries.

"This record is the operators' own task list: what they asked for, from whom and when, across every victim, down to the minute," Apiiro wrote in a report published Wednesday.

The operation is the one Kaspersky exposed on November 17 as Operation ShadowCloud, built around a backdoor it calls GitDoor. Kaspersky named nine operator accounts but did not publish their commands. Apiiro says it identified 104 operator repositories, 97 of them never reported before, and that 92 were connected to victim machines. It reported them to GitHub, the signed drivers to Microsoft and the victim lists to the FBI and the national computer emergency teams of 17 countries, including CISA, starting November 19. By November 25, GitHub had taken down all 104.

What the orders show

The decoded commands read as a target list. Apiiro said that two days after the US midterm elections, the operators listed the client sites at a company that builds websites for private clubs and ordered 32 Trump-named site folders zipped and sent out, covering about 20 Trump clubs and resorts, including Mar-a-Lago, Bedminster and Doral. The researchers stressed that every one of those commands went to the vendor's servers and that "nothing in the log shows access to the Trump Organization's own network."

In the summer of 2025, Apiiro said, the operators were inside the headquarters IT of one of the largest US industrial unions, going after an administrator's travel VPN configuration, account-recovery material and staff email archives, including two named for the union's top officer. In October 2026 they targeted a federal contractor's accounting database and sought the vendor's full software installation, including FedRAMP customizations.

In Taiwan, the operators ordered the final talking points for the opposition Kuomintang chair, Cheng Li-wun, on April 5, five days before her April 10 meeting with Xi Jinping in Beijing, Apiiro said. The Philippine Coast Guard drew more commands than any other victim, 3,696 over a year asking for 248 distinct file names, and the dated Coast Guard papers the operators ordered were a median of 2 days old, against 32 days across all victims.

Apiiro added a caveat that defenders should keep in mind. "A command is not proof that anything happened," the report said. Whatever the implants sent back went to private repositories the researchers did not open, so the commands show what was ordered, not what arrived.

An Apiiro bar chart titled Exposed, and still working, showing operator commands per hour from November 17 to 19, 2026, with a marker for Kaspersky publishing at 08:00 UTC, the first KMT command 23 minutes later at 08:23, a scheduled-task file queued in the KMT policy folder at 12:41, a second Group Policy at 07:31 on November 18 and a Tailscale tunnel tool uploaded to the KMT machine at 06:24 on November 19.
Image: Apiiro (fair use).Operator commands per hour before and after Kaspersky's report, November 17 to 19, 2026, from "The spies left the door open," December 2, 2026.

Exposure did not stop them

Kaspersky's report went live at 08:00 UTC on November 17. Fifteen minutes earlier, according to Apiiro, the operators had uploaded a rebuild of the public exploit for CVE-2026-42980, a Windows kernel bug Microsoft patched in June and still lists as not exploited. Twenty-three minutes after the report, a new command went to a KMT machine holding the party's domain policy files. That day they queued 239 commands, 188 of them to that machine, wrote a Group Policy task to run their program on 16 of the party's machines and planted a disguised driver signed through Microsoft's driver attestation.

On November 19 they uploaded a modified build of SockTail, an open-source tool that joins a machine to a private Tailscale network, which would give them a way in that does not depend on GitHub. By Apiiro's last check on November 23, they had sent 236 commands to victim machines that day.

The toolkit was largely custom. Of 494 Windows programs the operators uploaded, VirusTotal had never seen 347, and only two of the 355 Apiiro analyzed matched a hash Kaspersky or Sophos had published. The researchers decoded 87 distinct versions of the GitDoor implant, none of them the version Kaspersky published, and found a tool that decrypts the desktop Signal database and a plugin that steals data from 11 messaging apps.

Apiiro assessed that the operators are an office team in mainland China, based on Beijing office hours, a lunch break and mainland China's holiday calendar, including the Saturdays China declares official workdays, across six regional teams. "That is an assessment, not proof," the report said, noting that it agrees with Sophos, which tracks part of the activity as BRONZE SANDCASTLE and calls the group China-based, and with Kaspersky, which points to Chinese-speaking groups.

An Apiiro figure titled One command, as anyone can see it on GitHub, showing a public commit log of entries titled commit from INSOMNIA, a single commit adding a file named main.lySoAXcM.spi3.js.swp containing one line of encrypted text, and the decoded result reading filecommand loadDrives with empty arguments, which lists the machine's drives.
Image: Apiiro (fair use).How a public GitHub commit carries a command to the implant, from "The spies left the door open," December 2, 2026.

What SOC teams should hunt

Few networks block github.com, which is the point of the design. Apiiro said what gives GitDoor away is who talks to GitHub, and how.

  • Flag servers, storage appliances and desktops outside engineering that poll api.github.com repository contents around the clock, including nights and weekends. Apiiro noted the operators also ordered an autorun script written on a QNAP NAS.
  • Search any repositories your organization can see for commits authored by INSOMNIA <INSOMNIA@github.com> with the message "commit from INSOMNIA."
  • Watch for files named main.<code>.<4 chars>.js, or the older main.<code>.js, optionally ending in .kmap, .pmap, .apmap, .swp or .tmp, that appear and are later deleted in bulk.
  • Treat executables in C:\ProgramData\intel, C:\Users\Public\Libraries, C:\ProgramData\ssh and C:\PerfLogs\sc2 as suspicious, along with scheduled tasks named \SystemOptimizer or \SamsungMagician, and alert on WDigest UseLogonCredential being set to 1.
  • Look for signed programs loading a neighboring DLL that reads a base64 payload file such as config.ini, and for proxies over the Ably and Pusher messaging services, which are benign on their own and should be weighed with other indicators.
  • Pull the full indicator appendix from the Apiiro report; case-specific indicators went to national CERTs.

"A trusted platform makes a quiet channel, and it also keeps a perfect record," the researchers wrote.

About the Author

Priya Shah

Priya Shah covers threat intelligence, intrusion analysis, and adversary tradecraft for SOCtember from Singapore.

Related stories

Threat Intel desk