Repo Roulette: How Hackers Turned GitHub Desktop into a Trojan Horse
A sophisticated supply chain attack exploited GitHub’s own infrastructure to distribute malware disguised as trusted software updates.
Imagine downloading what you believe is a safe, official update for a popular developer tool-only to unwittingly invite cybercriminals into your system. That’s the reality hundreds of developers and organizations faced in late 2025, after hackers hijacked GitHub’s Desktop repository using a cunning blend of technical trickery and social engineering. The campaign, dubbed “GPUGate,” exposed a dangerous chink in the armor of software supply chains: the very platforms developers trust most can be weaponized against them.
The attack began with a classic case of “repo squatting.” Hackers forked the legitimate GitHub Desktop repository and quietly altered the README to link to their own malicious installer. Unsuspecting victims, lured by Google Ads or direct links, landed on what appeared to be an official download page-complete with a familiar URL structure and file size. But the installer they grabbed was a carefully crafted imposter.
The infection chain was alarmingly sophisticated. The initial installer bundled a .NET loader that used OpenCL GPU APIs to detect and crash malware analysis sandboxes, effectively hiding its true intent from most security researchers. If no GPU was detected, the malware would intentionally fail, making static analysis nearly impossible without specialized hardware.
Once past this hurdle, the loader decrypted and dropped additional payloads, including a PowerShell stager designed to quietly exfiltrate data and weaken system defenses by adding exclusions in Windows Defender. The attack didn’t stop there: subsequent stages used DLL sideloading and injected shellcode to deploy HijackLoader, a notorious malware loader capable of delivering info-stealers like LummaC2. On macOS, a variant called AMOS was observed stealing sensitive data.
Researchers from GMO Cybersecurity and Theo Webb meticulously documented the operation, sharing indicators of compromise (IOCs) and YARA rules to help defenders hunt for traces. But a major concern remains: GitHub’s fork and commit system allows malicious code and links to persist in the official repo’s network, even after the attacker's fork has been deleted. This loophole, combined with aggressive malvertising, made the attack exceptionally effective.
For developers and organizations, GPUGate is a chilling reminder that even trusted platforms are not immune to supply chain compromise. Downloading software only from verified release pages, monitoring for suspicious commit activity, and using robust endpoint defenses are now more critical than ever.
As the dust settles, one truth stands out: in the world of software supply chains, trust is both a shield and a target. The GPUGate attack proves that vigilance and technical literacy must go hand in hand-because the next Trojan horse may arrive with a familiar logo and a friendly commit message.
WIKICROOK
- Repo Squatting: Repo squatting is when attackers mimic trusted repositories to distribute malicious code, exploiting users’ trust in well-known software sources.
- OpenCL: OpenCL is an open standard for parallel programming across CPUs, GPUs, and other hardware, enhancing performance for cybersecurity and data-intensive tasks.
- DLL Sideloading: DLL sideloading is when attackers trick trusted programs into loading malicious helper files (DLLs) instead of the legitimate ones, enabling hidden attacks.
- PowerShell Stager: A PowerShell stager is a script that downloads and runs malware, helping attackers bypass defenses by using legitimate PowerShell commands.
- HijackLoader: HijackLoader is a modular malware loader that delivers and manages other malicious payloads, enabling cybercriminals to execute multi-stage attacks on infected systems.



