80,409 Espionage Commands Exposed via GitHub

espionage commands - 80,409 Espionage Commands Exposed via GitHub

GitHub Commit History Uncovers Massive Espionage Campaign

A sprawling cyber espionage operation, codenamed Operation ShadowCloud, has been brought to light through an exhaustive analysis of GitHub’s commit history. This campaign, active for over two years, has utilized public GitHub repositories as a command-and-control (C2) infrastructure to issue a staggering 80,409 espionage commands. The findings, detailed by Apiiro, reveal a sophisticated and persistent threat targeting government sectors across Asia, Africa, and beyond.

The operation, also partially tracked by Sophos as Bronze Sandcastle, employs custom backdoors such as GitDoor and GraphDoor. These tools allow the threat actors to exfiltrate sensitive data and maintain control over compromised systems. The sheer volume of commands exposed in the commit logs provides an unprecedented look into the operational tempo and targets of this Chinese-speaking threat group.

Operation ShadowCloud: Architecture and Command Execution

Apiiro’s investigation identified 104 operator repositories linked to Operation ShadowCloud. The earliest commands detected date back to November 2024, indicating a prolonged period of clandestine activity. These repositories served as a staging ground for commands, which resulted in the request and exfiltration of 2,902 distinct files from victims.

The targeted data primarily includes information from government and diplomatic entities, military and defense organizations, credential harvesting, mailbox data, and sensitive communications from messaging applications like LINE, Signal, Telegram, and WhatsApp. This broad scope highlights the group’s intent to gather intelligence across multiple critical sectors.

Global Reach and Targeted Nations

The espionage commands have been traced to victims in 23 countries spread across five continents. Notable nations include the United States, Peru, Brazil, Argentina, Italy, Uganda, Zambia, Kyrgyzstan, Afghanistan, Pakistan, India, Laos, Thailand, Cambodia, Singapore, Malaysia, Vietnam, Taiwan, and the Philippines. This wide geographical distribution underscores the global reach of the operation.

The threat actors’ methodology is particularly insidious, as they leverage the public nature of GitHub commits to log their activities. “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 stated. This record effectively serves as the operators’ own task list, detailing what data was requested, from whom, and precisely when.

Exploitation of Vulnerabilities and Evolving Tactics

The campaign has demonstrated a willingness to exploit known vulnerabilities. Among the uploaded tools was a Windows kernel exploit for CVE-2026-42980, a flaw that Microsoft had patched in June 2026. This indicates the group’s capability to weaponize n-day vulnerabilities for operational advantage.

Furthermore, the threat actors have been observed uploading 494 Windows programs, with a significant portion (347) lacking any prior detection on VirusTotal. One notable tool was designed to decrypt Signal desktop databases and export messages. The exploitation of the CVE-2026-42980 vulnerability, disguised as a legitimate diagnostic tool, was compiled and deployed silently, demonstrating a refined approach to stealthy execution.

The group also appears to be diversifying its C2 infrastructure, with evidence suggesting potential preparations to use GitLab as a secondary channel. Build folder names like “gitlab2_autoproxy” and “ssv_gitlab3_autoproxy” were observed, alongside PowerShell scripts designed to probe connectivity to both GitHub and GitLab services. This move could be a contingency plan in environments where GitHub access might be restricted.

Operational Patterns and Attribution Indicators

While Kaspersky has not officially attributed the activity to a specific group, several indicators strongly point towards a Chinese-speaking operator. The threat actors exhibit a consistent work schedule aligning with Beijing office hours, with 85% of commands issued between 8 a.m. and 7 p.m. Beijing time. Their activity also follows mainland China’s holiday calendar, with operations significantly decreasing on public holidays and resuming on official workdays.

The persistence of the campaign is notable, with recent activity observed as late as November 23, 2026, targeting organizations like the Philippines’ National Nutrition Council. This continued operation, even after public disclosure, underscores the resilience and determination of the threat actors. The potential for such extensive data exfiltration and control through seemingly innocuous platforms like GitHub highlights the evolving landscape of cyber espionage and the critical need for robust AI security measures to detect and mitigate such threats.

The ongoing evolution of threat actor tactics, including the potential adoption of new C2 channels, necessitates continuous monitoring and adaptation of defensive strategies. The exposure of these espionage commands serves as a stark reminder of the persistent threats facing global governments and the critical importance of securing digital infrastructure against sophisticated adversaries.

The discovery of these extensive espionage commands underscores the sophistication of modern cyber threats. As threat actors continue to innovate, the demand for advanced threat intelligence and detection capabilities, akin to the surge in frontier intelligence, becomes increasingly vital for organizations worldwide.

The continuous discovery of vulnerabilities, such as those recently patched in Android or found in HPE networking equipment, further emphasizes the dynamic nature of the cybersecurity landscape. Understanding and mitigating these risks, including the exploitation of n-day vulnerabilities like CVE-2026-42980, remains a paramount challenge for defenders aiming to secure critical infrastructure against persistent espionage commands.

The intricate methods employed in Operation ShadowCloud, including the use of GitHub for command and control and the exploitation of vulnerabilities, highlight the complex challenges in attributing and neutralizing state-sponsored cyber operations. The ongoing threat of such espionage commands necessitates a proactive and multi-layered security approach.

This incident serves as a critical case study in how public platforms can be subverted for malicious purposes, demonstrating the need for enhanced security scrutiny even in widely used development tools. The sheer scale of the espionage commands exposed is a testament to the persistent and evolving nature of cyber warfare.

The analysis of these espionage commands reveals a calculated and long-term strategy by the threat actors. Their ability to maintain operations for over two years, leveraging GitHub’s infrastructure, presents a significant challenge for cybersecurity professionals tasked with defending against such sophisticated campaigns.

Source: The Hacker News