Operation ShadowCloud Exposes 80,409 GitHub Commands

Chinese-speaking group used GitHub C2 in multi-year espionage campaign

Operation ShadowCloud has exposed 80,409 espionage commands through public GitHub commit history. The recovered data provides an unusually detailed view of how operators tasked compromised Windows systems across 23 countries.

The commands were linked to a campaign using GitHub, Microsoft Graph and SharePoint as command and control channels. Although the known targets were mainly government and political organisations in Asia and Africa, the techniques could be used against any organisation that permits access to these legitimate cloud services.

Operation ShadowCloud commands recovered from GitHub

Apiiro researchers reconstructed exactly 80,409 commands from public GitHub commit history associated with Operation ShadowCloud. The findings were first reported publicly on 3 December 2026, with further technical details published on 4 December 2026.

The research identified 104 operator repositories. Of these, 92 were connected to victim machines, and the reconstructed activity covered a little more than two years. Recovered tasking included activity directed at Taiwanese political parties, including Taiwan’s Kuomintang, and Philippine government entities.

The exposure occurred because the operators deleted commands from the current versions of their repositories without removing them from the underlying commit history. Git records historical changes, so commands that disappeared from the latest view could still be retrieved and analysed.

This created a record of the operators’ activity, but it does not provide complete proof of impact. A command stored in a repository shows intended tasking, not necessarily that the target received it, executed it successfully or returned usable data.

Timeline of the espionage campaign

  • Late 2024: Many GitHub accounts and repositories later associated with GitDoor were created, indicating early infrastructure preparation.
  • Early 2026: Kaspersky assessed Operation ShadowCloud as active from this period, while the recovered repository activity covered a little more than two years.
  • 17 November 2026: Kaspersky disclosed the campaign, including detailed analysis of the GitDoor and GraphDoor backdoors.
  • 17 to 23 November 2026: Reconstructed commands indicated that operator tasking continued after the disclosure, including activity involving Taiwan’s Kuomintang and a subsequent Philippine target.
  • 3 December 2026: Apiiro’s findings about the 80,409 recovered commands and operational repositories became public.
  • 4 December 2026: Additional information emerged about command content and a reported Windows kernel exploit uploaded to an operator repository.

How Operation ShadowCloud used GitDoor

GitDoor is a Windows backdoor designed to conceal malicious communications inside normal GitHub traffic. Its encrypted configuration contains a GitHub personal access token, a User-Agent string and associated request headers.

The malware generally uses two repositories for each victim set. One repository supplies commands, plug-ins and payloads, while another receives system information and command results from infected machines. This separation helps operators manage tasking and collected data without relying on conventional attacker-controlled servers.

Uploaded result files follow a recognisable structure: main.%victim_unique_code%.%random%.js.%ext. The final extension identifies the type of output, with examples including .kmap for keylogger data and .pmap for proxy results.

Operation ShadowCloud plug-ins support extensive surveillance and system control. Observed capabilities include:

  • Capturing keystrokes and screenshots.
  • Listing processes and managing files.
  • Starting, stopping and controlling services.
  • Stealing credentials and browser data with tools including Mimikatz and CookieKatz.
  • Creating SOCKS5-style proxy connections, including connections relayed through Ably.
  • Uploading files through services such as Gofile.

Kaspersky also observed MeshCentral’s MeshAgent being used as an initial foothold utility on at least one victim. The operators then delivered loaders through DLL side-loading, a technique in which a trusted application is induced to load a malicious library.

Trusted executables involved in these side-loading chains included javaw.exe, Sandboxie start.exe, pythonw.exe and ZoomIt. Associated malicious or manipulated DLL names included jli.dll, SbieDll.dll, python39.dll, WINMM.dll and libcef.dll.

GraphDoor moved tasking into Microsoft services

GraphDoor provided Operation ShadowCloud with an alternative channel based on Microsoft Graph and SharePoint. It obtained an access token through the client credentials flow at login.microsoftonline.com, using a hard-coded client ID and client secret.

The backdoor stored encrypted victim information in a SharePoint document library using filenames such as main.%victim_unique_code%.js.map. It could also retrieve plug-ins from SharePoint list items named scr.ts, pr.ts and kl.ts through Microsoft Graph v1.0 queries.

After decryption, these plug-ins ran in parallel threads. GraphDoor used named pipes for local communication and created a working directory under C:\ProgramData\Intel_Log\ followed by a unique identifier.

GitHub, SharePoint, Microsoft Graph and Ably are legitimate services, not vulnerable products in this incident. Operation ShadowCloud abused valid service features and credentials, so there are no affected software versions or conventional patches that resolve the campaign by themselves.

Targets, attribution and exploitation status

Operation ShadowCloud is a confirmed in-the-wild espionage operation, with known victims concentrated in government sectors in Asia and Africa. Apiiro’s reconstruction connected the wider activity to 23 countries and showed that tasking continued after Kaspersky’s 17 November disclosure.

The attribution requires care. Kaspersky identified overlaps with Chinese-speaking threat groups but did not make a firm attribution. Separate reporting has linked the activity to BRONZE SANDCASTLE, a China-based cluster tracked by Sophos, based partly on overlapping tools and DLL side-loading methods.

Apiiro also reported that the operators uploaded a rebuilt public proof of concept for a Windows kernel vulnerability to a tasking repository. Microsoft had not listed the vulnerability as exploited, and it was not present in the CISA Known Exploited Vulnerabilities catalogue. The claim should therefore be treated as unconfirmed rather than evidence of verified exploitation.

Why the GitHub command exposure matters

The Operation ShadowCloud findings show how cloud platforms can give espionage traffic the appearance of ordinary business activity. Blocking all GitHub or Microsoft 365 access is rarely practical, while encrypted connections can prevent conventional network tools from inspecting command content.

The recovered history also demonstrates an operational weakness for attackers. Deleting repository content does not necessarily erase it, allowing investigators to reconstruct commands, infrastructure and victim identifiers after the event.

Actions organisations should take

Organisations should focus on evidence connected directly to GitDoor and GraphDoor rather than applying broad restrictions without context.

  • Review unusual GitHub access from servers or endpoints that do not normally use developer services, particularly repeated access to newly created public repositories.
  • Inspect Microsoft 365 application registrations, client credentials and SharePoint access for unfamiliar applications or excessive permissions.
  • Hunt for unexpected DLLs beside trusted executables, including SbieDll.dll, python39.dll, WINMM.dll and libcef.dll.
  • Check for the GraphDoor working path under C:\ProgramData\Intel_Log\ and unexplained MeshAgent installations or connections.
  • Use the published Operation ShadowCloud indicators to inform endpoint, identity and network investigations, while recognising that legitimate cloud domains should not be treated as malicious on their own.

Originally reported by thehackernews.com.

Share this bulletin

About the Author

Rob McBride Headshot - CyPro Partner and leading cyber security expert

Rob McBride

Partner

  • CISSP
  • ACA Chartered Accountant
  • MPhil
  • BSc
  • SOC 2
  • ISO 27001

Rob McBride

Rob is a Founding Partner at CyPro and a highly experienced CISO. Beginning his career with a successful tenure at Deloitte, Rob has since amassed a wealth of experience, notably serving as a cyber security advisor to the UK government and spearheading cloud security transformations for several global banks.

At CyPro, Rob leads the managed service business line, working extensively across multiple sectors including telecommunications, technology, higher education, travel, and retail. He is passionate about equipping small and medium-sized businesses (SMBs) with robust cyber security strategies to fuel their growth.

View Profile
Back to Bulletins
Category
Malware
Published
Dec 4 - 2026
Post Tags
Cypro firewall showing robust network security
Secure your business.
Elevate your security, accelerate your growth. We take care of cyber security for high-growth companies, at every stage of their journey.
Get in touch

Related CyPro Services

  • Managed Detection and Response (MDR)

    Managed Detection and Response (MDR) is an end-to-end managed service designed to help organisations detect, analyse and respond to cyber threats quickly and effectively. It...
    View Service
CyPro Cookie Consent

Hmmm cookies...

Our delicious cookies make your experience smooth and secure.

Privacy PolicyOkay, got it!

We use cookies to enhance your experience, analyse site traffic, and for marketing purposes. For more information on how we handle your personal data, please see our Privacy Policy.

Schedule a Call