ShadowCloud hackers GitHub: a cyber espionage campaign hid malicious commands in plain sight on publicly accessible GitHub repositories since November 2024.
Hackers posted commands in small encrypted files to the GitHub repositories. The contents were read and executed. Then each file was deleted. In addition, GitHub retains deleted files. This method allowed the operation to evade detection for nearly two years.
| Detail | Information |
|---|---|
| Operation name | ShadowCloud |
| Method | Commands posted in encrypted files on GitHub repositories |
| Start of activity | November 2024 |
| Exposed by | Kaspersky on November 17 |
| Commands decoded | 80,409 |
| Malicious repositories | 104 |
| Countries with targeted machines | 23 |
How ShadowCloud used GitHub to hide its operations
The operation known as ShadowCloud used publicly accessible GitHub repositories to transmit malicious commands. Operators also uploaded small encrypted files containing instructions. Once a compromised machine read and executed a file, the file got deleted.
Deleting files did not erase the trail. GitHub retains deleted files. As a result, Israeli cybersecurity firm Apiiro could recover and decode the command history. Apiiro also identified 104 operator repositories. Of these, 92 had links to targeted machines across 23 countries.
Apiiro decoded 80,409 commands from two years of activity. The firm notified GitHub about the malicious repositories. It also notified computer emergency response teams in 17 countries, including the Taiwan Computer Emergency Response Team/Coordination Center.
What the hackers targeted in Taiwan
The campaign targeted all three major political parties in Taiwan: the Chinese Nationalist Party (KMT), the Democratic Progressive Party (DPP), and the Taiwan People's Party (TPP). It also targeted military suppliers and critical infrastructure contractors in Taiwan.
From the political parties, hackers attempted to obtain draft legislative strategies, internal party meeting records, military conscription proposals, and election nomination schedules. They sought talking points prepared for KMT Chairwoman Cheng Li-wun's April 10 meeting with Chinese President Xi Jinping, as well as documents concerning Beijing's policies towards Taiwan.
A two-year operation exposed by Kaspersky
Russian cybersecurity firm Kaspersky exposed the ShadowCloud operation on November 17. Twenty-three minutes after Kaspersky published its findings at 4pm, the hackers queued up 239 commands. Of these, 188 were directed to a KMT computer storing domain policy files.
Hackers continued their activities as recently as last week, ahead of Taiwan's local elections. They did so despite the exposure of the operation. On Monday last week, five days before the elections, operators sought to establish a new connection on a server. That server housed KMT websites and payment portal directories.
Who was behind ShadowCloud
Apiiro assessed that the operators were likely based in China. The firm cited their use of simplified Chinese. It also pointed to working patterns aligned with Beijing office hours. Around 85 percent of the commands came between 8 am and 7 pm Beijing time. In addition, activity reflected Chinese holidays and working schedules.
Military suppliers and infrastructure contractors
The operation targeted two military drone suppliers that handle defence-related orders. One of them held price quotes for the marines, navy and army. The other had army training drone orders, and also official correspondence to the Ministry of National Defence.
Contractors managing smart water meter documents and industrial control systems in Kaohsiung were also affected by the operation.
Key dates in the ShadowCloud timeline
| Date | Event |
|---|---|
| November 2024 | ShadowCloud starts using GitHub repositories to transmit commands |
| April 5 | Hackers issue a command to retrieve Cheng Li-wun's talking points for the April 10 meeting with Xi Jinping |
| May 8 | Hackers order retrieval of Xi Jinping's full speech text and the KMT's work plan in response to Beijing's 10 measures toward Taiwan |
| November 17, 16:00 | Kaspersky publishes its findings |
| November 17, 16:23 | Hackers queue up 239 commands |
| Five days before Taiwan's local elections | Operators seek a new connection on a server housing KMT websites and payment portal directories |
The data hackers sought from political parties
- Internal policy documents and meeting preparations from the KMT
- Talking points prepared for KMT Chairwoman Cheng Li-wun's April 10 meeting with Xi Jinping
- Documents concerning Beijing's policies towards Taiwan from the KMT
- Draft legislative strategies from the targeted political parties
- Internal party meeting records
- Military conscription proposals, including draft amendments from a TPP lawmaker's office
- Election nomination schedules, including from the DPP's Hsinchu chapter
Why GitHub made the attack possible
The attackers used publicly accessible GitHub repositories. Small encrypted files held the commands. Each file was deleted after its contents were read and executed. As a result, this process kept the operation hidden for nearly two years.
DON'T MISS
GitHub retains deleted files. Apiiro used that retention to reconstruct the operation. GitHub took down all identified repositories by Wednesday last week.
The details, in brief
What is ShadowCloud?
ShadowCloud is a Chinese-speaking cyber espionage campaign that targeted Taiwan's three major political parties, military suppliers, and critical infrastructure contractors.
How did ShadowCloud use GitHub?
The operation used publicly accessible GitHub repositories to transmit commands in small encrypted files. Each file was deleted after its contents were read and executed.
How many commands were decoded?
Apiiro decoded 80,409 commands from two years of activity and identified 104 operator repositories.
Who exposed the ShadowCloud operation?
Russian cybersecurity firm Kaspersky exposed the operation on November 17. Israeli firm Apiiro later published detailed findings.
Were the hackers identified?
Apiiro assessed that the operators were likely based in China, citing simplified Chinese usage and working patterns aligned with Beijing office hours. No specific threat actor group has been named.
Has GitHub removed the malicious repositories?
Yes, GitHub took down all identified repositories by Wednesday last week.
The ShadowCloud case shows that platforms built for legitimate collaboration can be repurposed for espionage. So if your organisation handles sensitive political, defence, or infrastructure data, watch out. Also treat even routine-looking activity on public services as a potential risk.
Also read


