Operation ShadowCloud: Two-Year Cyber Espionage Campaign Exposed Using GitHub for Command-And-Control Infrastructure

A sophisticated, long-running cyber espionage campaign designated as Operation ShadowCloud has come to light, revealing how threat actors systematically exploited public code-hosting platforms to orchestrate global intelligence-gathering operations. Newly released technical analysis of commit histories across public repositories indicates that the campaign has been active for more than two years, leveraging legitimate developer infrastructure to mask malicious communications and target high-value government, military, and diplomatic targets across 23 countries spanning five continents.
First brought to public attention by cybersecurity firm Kaspersky last month, Operation ShadowCloud involves the deployment of specialized backdoors known as GitDoor and GraphDoor. While Kaspersky initially identified the operational footprint, additional telemetry and deep-dive analysis published by security vendor Apiiro have illuminated the sheer scale of the threat. Parallel tracking by other firms, including Sophos, has associated aspects of this activity with threat clusters monitored under names such as Bronze Sandcastle. Security analysts emphasize that the campaign represents a notable evolution in living-off-trusted-land techniques, where malicious actors repurpose universally trusted developer platforms to blend in with legitimate network traffic and evade standard perimeter defenses.
The Architecture and Scale of Operation ShadowCloud
According to comprehensive findings released by Apiiro on December 2, investigators identified more than 80,400 individual espionage commands transmitted via GitHub infrastructure over the course of two years. These commands were routed through 104 distinct operator repositories specifically established to manage infected endpoints globally. The earliest recorded command traces back to November 2024, establishing a baseline for the campaign’s longevity.

Throughout its operational lifecycle, the threat actors requested 2,902 distinct files from compromised networks. Forensic analysis of these requests highlights a deliberate focus on high-value intelligence, with targets concentrated within government bodies, diplomatic missions, defense contractors, and military organizations. Furthermore, the exfiltrated data frequently included stored credentials, corporate mailbox contents, and cached information from popular consumer and enterprise messaging platforms, including LINE, Signal, Telegram, and WhatsApp.
The geographical distribution of targeted nations underscores the broad geopolitical scope of the campaign. Victims have been identified in the United States, Peru, Brazil, Argentina, Italy, Uganda, Zambia, Kyrgyzstan, Afghanistan, Pakistan, India, Laos, Thailand, Cambodia, Singapore, Malaysia, Vietnam, Taiwan, and the Philippines.
Unlike traditional command-and-control (C2) servers that are rapidly provisioned and dismantled, the use of public GitHub repositories meant that every single command issued by the operators remained permanently etched into the commit history. Security researchers have described this oversight as an unintended digital ledger, providing an exact task list that details which targets were queried, what data was requested, and the precise minute instructions were executed.
Chronology of Operations and Evolving Toolsets
The timeline of Operation ShadowCloud demonstrates continuous operational capability and adaptability, persisting even after initial public disclosures by the cybersecurity community. Activity logs confirm that attacks continued through late 2026. For instance, telemetry shows an intrusion attempt targeting the Philippines’ National Nutrition Council on November 23, 2026, alongside separate compromises on the same day designed to upload previously undocumented utility tools.

In total, threat actors uploaded 494 distinct Windows binaries to their repositories. Of this total, 347 binaries possessed no prior detection records or file hashes on threat intelligence aggregators such as VirusTotal, highlighting the customized and bespoke nature of the toolset used to bypass traditional signature-based detection mechanisms.
A particularly critical milestone in the campaign’s technical chronology occurred on November 17, 2026. At 7:45 a.m. UTC, a Windows kernel exploit—files associated with a modified version of "wdiag.exe"—was uploaded to an Exchange 2010 server accessed via a repository serving the Kuomintang (KMT), a major opposition political party in Taiwan. Compiled merely a day prior to its deployment, this specific exploit had no prior build or upload history across any of the 104 identified operator repositories.
Forensic examination of the binary revealed that it was derived from a public proof-of-concept exploit published in July. The actors modified the code by stripping out Microsoft dialog boxes, renaming internal log strings, and altering execution parameters to ensure the payload ran silently in the background, piping command output directly back through the GitDoor implant. While researchers could not independently confirm whether the exploitation attempt succeeded or if the targeted server had already been patched against the vulnerability, the deployment illustrates an active operational willingness to integrate newly weaponized n-day exploits into a live espionage framework.
Contingency Planning: Exploration of GitLab as a Secondary C2 Channel
As defenders grow increasingly adept at monitoring and blocking suspicious activity on GitHub, sophisticated threat actors routinely develop redundancy into their infrastructure. Evidence uncovered during recent investigations suggests that the operators behind ShadowCloud were actively preparing GitLab as a secondary command-and-control channel to maintain operational resilience in environments where GitHub access is restricted or heavily monitored.

Between October 10 and October 22, 2026, regional teams operating in Latin America deployed a novel family of loaders. Build directory structures recovered from these instances were explicitly labeled "gitlab2_autoproxy" and "ssv_gitlab3_autoproxy." Subsequently, on October 21 and 22, operators executed a series of PowerShell scripts—including "netdiag.ps1," "proxy_cred_probe.ps1," and "gl_proxy_probe.ps1"—on a machine located within a Caribbean government ministry.
These scripts were engineered to test network connectivity and determine whether infected endpoints could successfully reach specific external URLs associated with alternative code-hosting infrastructure. Notably, internal commentary discovered within one of the PowerShell scripts explicitly noted that a "github C2 confirmed alive in same env," indicating that GitLab was being evaluated as a failover mechanism rather than an immediate replacement. Security analysts have clarified that while the scripts confirm active probing and contingency preparation, there is currently no conclusive evidence of fully operational, day-to-day tasking conducted through GitLab channels.
Attribution Clues and Operational Work Patterns
While formal geopolitical attribution remains challenging and cautious among major cybersecurity vendors, detailed analysis of the operators’ behavioral patterns provides strong circumstantial evidence regarding their origins. Telemetry and commit metadata analyzed by researchers indicate that the campaign is orchestrated by Chinese-speaking operators who adhere strictly to standard business hours in Beijing.
Statistical breakdowns of command execution times reveal that roughly 85% of all repository interactions occurred between 8:00 a.m. and 7:00 p.m. Beijing Time, complete with a distinct mid-day pause corresponding to local lunch hours. Furthermore, operational tempo dropped significantly on weekends, with Saturday recording only a fraction of the activity observed on weekdays.

Crucially, the threat actors aligned their operational calendar precisely with mainland China’s official public holiday schedule. Command activity routinely ceased during national holidays and resumed on designated weekend days when the Chinese government officially mandated work to compensate for holiday schedules—a distinctive pattern unique to the mainland Chinese administrative calendar.
Broader Implications for Software Supply Chain and Enterprise Security
The public disclosure and subsequent analysis of Operation ShadowCloud underscore a profound structural challenge in modern cybersecurity: the inherent difficulty of defending networks against threats that misuse legitimate developer tools and trusted cloud infrastructure. Platforms like GitHub and GitLab are foundational to global software engineering, relying on outbound HTTPS traffic that is rarely blocked by corporate firewalls. When state-sponsored espionage groups weaponize these platforms for command-and-control communications, traditional security controls struggle to differentiate between legitimate developer workflows and malicious data exfiltration.
Security experts emphasize that organizations must adopt more granular visibility into endpoint behavior and outbound network destinations. Simply blocking code repositories is rarely viable for modern enterprises that depend on these services for software development and IT operations. Instead, defenders must focus on behavioral anomaly detection, monitoring for unusual API requests, unexpected script execution originating from development directories, and unauthorized binaries operating within critical enterprise servers.
As threat actors continue to refine living-off-trusted-land tactics, Operation ShadowCloud serves as a stark reminder that the tools driving global software innovation can simultaneously be leveraged to conduct stealthy, long-term intelligence operations across international borders.






