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.ps1andproxy_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