Hackers Flood Hugging Face and GitHub With 5,000+ Fake Game Cheat Malware Lures
A massive, coordinated supply-chain-style attack is currently sweeping through the open-source AI ecosystem, with hackers flooding Hugging Face and GitHub with more than 5,000 fake repositories designed to lure developers and autonomous AI coding agents into installing malware. First detected by security researchers at Pluto Security, this operation represents one of the largest campaigns targeting open-source model repositories to date, exploiting the growing trust in community-driven code to deliver a potent payload. The malicious repositories are cleverly disguised as legitimate game cheat models—specifically small Qwen2 test checkpoints—making them appear as harmless utilities to both human developers and automated agents scanning for resources. The most downloaded of these malicious models, `MENXIANGYU/qwen2-tiny`, has amassed over 28,000 downloads despite containing no actual model data whatsoever. Instead of relying on poisoned weights, the malware takes a more direct approach: it abuses the `trust_remote_code` option in Hugging Face models. When users enable this option during model loading, the embedded Python code executes immediately, running before the model even loads. This mechanism allows the malware to bypass traditional weight-based detection methods, effectively hiding in plain sight within the repository structure. The payload delivered by these fake repositories is multifaceted. Upon execution, the malware quietly installs a cryptocurrency miner that is carefully disguised as a standard Linux system process. This disguise helps it evade casual observation, while its built-in auto-restart capability ensures persistence even if the process is manually killed. Furthermore, the malware is aggressive in securing resources; it actively scans for and removes competing miners from the infected machine, ensuring maximum hash rate for the attackers. Some variants of the campaign go a step further by opening a reverse shell, granting attackers direct, interactive access to the compromised servers. This current wave specifically targets GPU hosts running self-hosted inference servers such as Xinference and GPUStack, which are increasingly becoming the backbone of AI development workflows. By compromising these high-performance machines, attackers can leverage significant computational power for their mining operations without drawing immediate attention. The campaign has already resulted in over 32,000 total downloads across the malicious repositories, indicating a high rate of successful infection among early adopters and automated systems alike. The timing of this attack is particularly strategic. This marks the second major wave of Hugging Face malware attacks this year. A previous cryptomining and backdoor campaign was detected in September 2026 but was taken down within days—only to return with greater scale and sophistication. The resurgence comes shortly after Hugging Face’s high-profile $13 billion acquisition by Nvidia, announced in September 2026. This massive deal has transformed the platform into a high-value target, making it more attractive for cybercriminals seeking to exploit the growing intersection of AI infrastructure and cryptocurrency mining. The attack also arrives amid broader concerns about the security of AI-assisted workflows. As organizations increasingly rely on AI agents to fetch, evaluate, and integrate external models and code, the attack surface expands. The malicious repositories are designed not just for human users who might click "trust remote code," but for AI agents that automatically resolve dependencies. This dual-target approach ensures that both manual and automated processes contribute to the spread of the malware. The incident is part of a wider trend of sophisticated supply-chain attacks in the AI sector. In a related development, the React2Keys campaign has been stealing over 50,000 credentials via React2Shell exploitation, highlighting how attackers are increasingly targeting the tools and platforms that underpin modern software development. Additionally, the Canadian government recently detected suspected AI-assisted cyber threats, further underscoring the evolving nature of digital security in an AI-driven world. As the Hugging Face and GitHub campaigns continue to evolve, the question is no longer just how many fake repositories exist, but how effectively the ecosystem can distinguish between legitimate community contributions and malicious lures. With the platform now firmly under Nvidia’s umbrella and the volume of AI-generated code surging, the battle for trust in open-source repositories is likely to intensify. For developers and AI agents alike, the lesson is clear: even the most popular models may not always contain what they seem, and the code you trust might just be mining your resources. ### Sources & Further Reading - [The Hacker News](https://thehackernews.com/2026/12/hackers-flood-hugging-face-and-github.html) - [BleepingComputer](https://www.bleepingcomputer.com/news/security/hugging-face-malware-campaign-returns-to-hijack-gpus-for-crypto-mining/) - [SecurityWeek](https://www.securityweek.com/react2keys-campaign-steals-50000-credentials-via-react2shell-exploitation/) ~AI ~Nvidia ~Malware ~OpenSource ~CyberSecurity