Skip to main content
HIGH Threat Intel #Supply Chain Attack#GitHub

Operation ShadowCloud: GitHub Commit History Exposes 80K C2 Commands

3 min read Runtime Rebel Intel
Primary source: thehackernews.com

This article was written by a language model from the source above and was not reviewed by a human before publication. Verify anything operational against the original. Editorial policy

Key points
  • Immediate impact: Government and defense sectors across 23 countries face ongoing espionage via abused public code repositories.
  • Affected systems: Organizations globally utilizing Windows environments and networks where public code hosting platforms are accessible.
  • Remediation: Monitor and restrict outbound connections to code hosting platforms used for anomalous command and control traffic.

Advertisement

Overview of Operation ShadowCloud

Recent analysis into a long-running cyber espionage campaign has uncovered how threat actors leveraged public code-hosting platforms for command-and-control (C2) infrastructure. According to a report by The Hacker News, researchers identified over 80,000 espionage commands sent via public repositories across two years of malicious operations. Tracked by Kaspersky as Operation ShadowCloud and by Sophos as Bronze Sandcastle, the intrusion set primarily targets government, diplomacy, and military sectors in Asia, Africa, and Latin America.

The investigation revealed 104 operator repositories linked to the campaign. The threat actors utilized custom backdoors, notably GitDoor and GraphDoor, to issue tasks, exfiltrate data, and deploy custom tooling directly through commit histories.

Technical Analysis and TTPs

Abuse of Public Repositories for C2

The campaign’s reliance on public code repositories left an extensive, permanent audit trail of operator intent. Rather than erasing their tracks, the actors stored their task lists directly within commit logs. Investigators recovered 2,902 distinct file requests targeting sensitive data, including messaging application logs from platforms like Telegram, Signal, WhatsApp, and LINE, alongside harvested credentials and mailbox contents.

Operational telemetry strongly points to Chinese-speaking operators. Analysis of timestamp data shows that 85% of all issued commands occurred strictly between 8:00 a.m. and 7:00 p.m. Beijing time, complete with a midday lunch pause. Furthermore, command execution dropped significantly during mainland China public holidays while resuming on officially designated Saturday workdays.

Custom Tooling and N-Day Exploitation

Throughout the campaign, operators uploaded hundreds of unique Windows binaries, a significant portion of which lacked any prior record on VirusTotal. Notable observations include:

  • Custom Windows Kernel Exploits: Attackers uploaded a modified proof-of-concept utility (wdiag.exe) designed to run silently and pipe command output back through the backdoor implant.
  • Alternative C2 Channels: Evidence indicates actors are preparing GitLab as a fallback C2 channel. Loader builds and reconnaissance scripts—such as netdiag.ps1 and proxy_cred_probe.ps1—have been deployed in Caribbean networks to verify outbound connectivity to GitLab where GitHub access might be restricted.

Actionable Recommendations and Mitigations

Defenders monitoring enterprise environments against repository-backed C2 frameworks should prioritize the following defensive steps:

  • Network Egress Filtering: Restrict and inspect outbound HTTP/HTTPS traffic to public code hosting platforms from internal production servers and non-developer workstations.
  • Endpoint Behavioral Monitoring: Audit endpoint activity for unusual execution chains involving native administrative scripts attempting to validate connectivity to public repositories.
  • Repository Access Auditing: Implement strict monitoring on internal and external repository usage to detect unauthorized automated commits or anomalous data staging patterns.

Related: Attackers Abuse Legitimate SaaS and Commerce Infrastructure, Forensic Review Scripts for OpenCode and Hermes AI Agents

Advertisement

Advertisement