Breaking
Cyber CrimeConfirmed

GitHub commit logs reveal spy campaign

An audit of two years of repository history shows 80,409 commands sent to victims in 23 countries through a backdoor built on GitHub.

··20 hours ago·8 min read
laptop screen displaying colorful code
Photo by Mohammad Rahmani on Unsplash

Every command an intruder types into a compromised network leaves a trace somewhere. For one long-running espionage cluster, that trace sat in public view the entire time — buried in the commit history of GitHub repositories the operators treated as their own task queue.

A follow-up analysis of an intrusion set first documented by Kaspersky last month has now put a number on two years of activity: 80,409 commands, 104 operator repositories, and victims spread across 23 countries. The research was published by Apiiro on December 2, 2026.

The cluster is tracked as Operation ShadowCloud, with some of its activity followed separately by Sophos under the name Bronze Sandcastle.

A task list left in plain sight

The campaign relies on backdoors called GitDoor and GraphDoor, which turn GitHub's public infrastructure into a command-and-control channel. Implants on victim machines check repositories for instructions rather than receiving them from dedicated attacker servers, the command-and-control pattern that has made the technique attractive for operations that want to blend into ordinary developer traffic.

What makes the Apiiro findings notable is not the use of GitHub itself — that was already known — but the fact that the platform's commit history preserved the operators' own instruction log. According to the report, the earliest commands date back to November 2024.

"For two years, a Chinese-speaking espionage operation ran its implants from public GitHub repositories, and every command it sent through them stayed in their commit history," Apiiro said. "This record is the operators' own task list: what they asked for, from whom and when, across every victim, down to the minute."

That framing matters for anyone trying to reconstruct the campaign after the fact. Rather than inferring what attackers wanted from malware samples or network logs, the researchers could read the requests themselves, timestamped and attributed to specific repositories.

The scale of the hunt, in numbers

Apiiro's review of the commit record produced a set of figures that describe both the breadth of the targeting and the depth of the operators' toolset.

  • 80,409 espionage commands identified across two years of operations
  • 104 operator repositories linked to the campaign
  • 2,902 distinct files requested from victim machines
  • 23 countries with victims, spanning five continents
  • 494 Windows programs uploaded by the group in total
  • 347 of those programs have no record on VirusTotal
  • One kernel exploit uploaded exactly once, on November 17, 2026, at 7:45 a.m. UTC
  • 85% of commands written between 8 a.m. and 7 p.m. Beijing time

The requested files skewed heavily toward government and diplomatic material, military and defense documents, credentials, mailbox data, and messages pulled from apps including LINE, Signal, Telegram, and WhatsApp.

Where the victims are

The targeted nations stretch across five continents. The list includes the U.S., Peru, Brazil, Argentina, Italy, Uganda, Zambia, Kyrgyzstan, Afghanistan, Pakistan, India, Laos, Thailand, Cambodia, Singapore, Malaysia, Vietnam, Taiwan, and the Philippines.

The original reporting on the cluster described government sectors in Asia and Africa as the principal focus. The commit-history analysis widens that picture considerably, placing victims in Latin America and Europe as well.

The operation also did not stop when it became public. One attack identified in the data targeted the Philippines' National Nutrition Council on November 23, 2026. According to Apiiro, a second victim is assessed to have been compromised the same day, in that case to upload tools that had not previously been identified.

A kernel exploit, built for a backdoor

Among the 494 Windows programs in the operators' repository collection is a kernel exploit for CVE-2026-42980, a vulnerability Microsoft patched in June 2026. The file, named wdiag.exe, was uploaded once and only once: on November 17, 2026, at 7:45 a.m. UTC, to an Exchange 2010 server reached through a repository that served the Kuomintang (KMT), a major opposition political party in Taiwan.

It was compiled the day before the upload. Across all 104 repositories, Apiiro found no earlier record of the tool being uploaded or built.

The researcher's description of the binary is specific: it began as a public proof of concept from July, then was rebuilt with renamed log strings, Microsoft's dialog boxes stripped out, and one behavioral change added so that it runs a command silently and returns the output through the implant.

"It is the public proof of concept from July, rebuilt with renamed log strings, Microsoft's dialog boxes removed, and a change so it runs a command silently and returns the output through the implant," a security researcher from Apiiro told The Hacker News. "That change is what you'd make to use it through a backdoor rather than on a desktop. The commands that followed were directory listings. We can't see whether it ran or whether the server was patched for June. So the evidence is an operational deployment of an n-day against a live victim, not confirmed successful exploitation."

The commands that trailed the upload were directory listings — reconnaissance-style activity rather than a confirmed follow-through. Apiiro is explicit that the record shows a deployment attempt, not proof that the exploit worked or that the server was unpatched.

The unseen toolset

The 494 uploaded Windows programs are themselves a notable data point. Roughly 347 of them have no record on VirusTotal, meaning the security industry's most widely consulted malware repository had never seen them.

Another tool in the collection decrypts the desktop Signal database and exports the messages it finds into text files — consistent with the broader pattern of requested data that favors messaging applications over document theft alone.

The use of an unpatched Exchange 2010 server as a staging point is equally telling. It suggests the operators were seeking internet-facing infrastructure that would appear unremarkable in logs, and it put a live mail server in the path of a kernel exploit delivered through a backdoor.

The case for a second channel

There are signs the operators may be preparing GitLab as a backup channel for networks where GitHub is blocked or unreachable.

Between October 10 and 22, 2026, according to the researcher, the group's Latin America team deployed a new loader family on victims in the region. The build folders were named gitlab2_autoproxy and ssv_gitlab3_autoproxy.

On October 21 and 22, on a machine inside a Caribbean ministry, the operators uploaded and ran a set of PowerShell scripts — netdiag.ps1, proxy_cred_probe.ps1, and gl_proxy_probe.ps1 — six versions over two days.

Those scripts checked whether the machine could reach a set of destinations:

  • gitlab[.]com, through the ministry's internal web proxy and using the proxy's credentials
  • api.github[.]com
  • github[.]com
  • raw.githubusercontent[.]com

A comment in the script read "github C2 confirmed alive in same env," which points toward keeping GitLab as a fallback if the GitHub channel failed. Apiiro stressed that the commands show only the probes, and that there is no evidence of live GitLab tasking.

Working hours are a fingerprint

Kaspersky has not attributed the activity to a specific threat actor or group. The behavioral evidence, however, points toward a Chinese-speaking operator writing in Simplified Chinese.

The commit timestamps reinforce that reading. Apiiro found that 85% of all commands were written between 8 a.m. and 7 p.m. Beijing time, with a lunch break in the middle of the day. A Saturday sees one command for every seven or eight issued on a weekday.

"85% of all commands were written between 8 a.m. and 7 p.m. Beijing time, with a break at lunch, and a Saturday sees one command for every seven or eight on a weekday," Apiiro said. "They also keep mainland China's holiday calendar: commands all but stop on most public holidays and pick up on the Saturdays China makes official workdays, a schedule only the mainland follows."

That calendar pattern is difficult to fake and equally difficult to explain otherwise: the operators paused on mainland China's public holidays and resumed on the weekends Beijing designates as official workdays.

What the record does not show

The commit history is a detailed account of what the operators asked for. It is not a complete account of what they obtained. Commands and file requests appear in the record; whether those files were successfully exfiltrated, whether the kernel exploit executed, and whether the Exchange server was patched remain open questions that Apiiro says the data cannot answer.

The disclosure timeline is also worth noting. The story was updated after publication to correct the links the operators used to probe reachability of GitHub and GitLab, and to remove the researcher's name at their request.

The campaign's use of backdoors that read instructions from public code repositories remains a distinctive approach. It requires no bulletproof hosting, no dedicated C2 domain to seize, and no server the operators must keep online. Instead, the repository history becomes both their control channel and, eventually, their audit trail.

What this means for defenders

The practical consequence for organizations is that GitHub and similar developer platforms now sit in the same monitoring scope as any external command-and-control destination. A network that sees regular traffic to raw.githubusercontent.com may be looking at developer work — or at an implant checking in. The probing scripts found inside the Caribbean ministry targeted exactly those endpoints, which suggests defenders in blocked-GitHub environments should watch for GitLab being tested the same way.

The presence of a kernel exploit for CVE-2026-42980, rebuilt from public code and aimed at an internet-facing Exchange 2010 server, is a reminder that n-day exploits remain viable long after a patch ships — the question is only whether the target applied it. Apiiro could not confirm that the exploit ran, and that uncertainty cuts both ways: an unpatched server may have been compromised, while a patched one would have shrugged off the attempt.

Perhaps the most transferable lesson is about where evidence lives. Because the operators used GitHub, the platform's own version history preserved a granular record of their requests. That record became available only because someone went looking at the commit log rather than at the malware. This suggests that for incidents involving code-hosting platforms, repository metadata may be as valuable an investigative source as the implants themselves.

#github#cyber espionage#backdoor#command and control#threat intelligence

Sources

Iliyas

Founder & Editor, Xploitwire

This article was written and reviewed against the sources listed above before publication, under editorial policies set by Iliyas. Read our Editorial Policy →

← Back to all stories