Source: dotshock via Shutterstock
Hugging Face has disabled more than 3,500 project pages that a threat actor used to spread fake gaming cheats and automation tools in order to lure users into downloading information-stealing malware.
The takedown followed a JFrog investigation that uncovered a sprawling campaign involving more than 1,550 GitHub repositories and 1,557 GitHub accounts. Researchers found that the attackers also manipulated GitHub's popularity metrics, using hundreds of thousands of fake stars among their accounts, to make the malicious repositories appear more legitimate.
Lured to Download Malware
One of the lures JFrog investigated involved Roblox, an online gaming platform where users can play games created by others or build their own. JFrog researchers traced a supposed Roblox scripting and automation tool called Peroxide Script GUI from a Hugging Face Spaces page to a GitHub repository and from there to an external download site.
Related:Canada Spots AI Threats to Government Networks
The site mimicked a legitimate Windows software download and used ClickFix social engineering tactics to persuade users to run either a PowerShell command or to download a password-protected zip file. In ClickFix scams, attackers trick victims into executing malicious commands themselves, typically by presenting them as legitimate installation or troubleshooting steps. In this case, users were led to believe they were installing a game cheat when they were actually being directed to run malware.
JFrog's analysis of the recovered malware sample identified it as a Windows infostealer designed to collect browser passwords, cookies, browsing history, and autofill information. The malware also was designed to steal authentication tokens for Roblox and Steam accounts, capture clipboard contents, and take screenshots of infected computers.
A Rapidly Deployed Campaign
According to JFrog, the campaign unfolded in at least three waves dating back to Nov. 25, with newer batches replacing older ones as GitHub removed repositories and associated accounts. In the most recent wave, the attackers published 1,559 repositories under 1,557 GitHub accounts in roughly 11 hours between Nov. 29 and Nov. 30.
Additionally, they used networks of accounts to exchange approximately 340,000 stars and artificially boost the popularity of their repositories. The attackers also used 175 Hugging Face accounts to host 3,501 Spaces promoting the malicious projects.
The rapid turnover suggests the attackers treated the accounts and repositories as disposable, relying on each batch to remain available for only a day or two before moving on to another, JFrog said.
Related:Matters.AI Lands India's Largest Cybersecurity Pre-Series A Round to Fight AI Data Risks
Guy Korolevski, senior security researcher at JFrog, tells Dark Reading it's not clear how the attackers expected to reach gamers via a campaign promoted and hosted on developer platforms. He says JFrog found no evidence of forum posts, Discord servers, or social media pushes. "But the lure design itself points to SEO as the primary mechanism, with GitHub's own discovery surfaces as a secondary channel," he says.
The 340,000 traded GitHub stars was another discovery mechanism. Each repo had roughly 200 starts and existed specifically to manipulate GitHub's trending/search ranking to make each repo look established to anyone who might have found it organically via GitHub search, Korolevski says.
Abusing Trusted Platforms
The campaign is the latest example of attackers abusing the credibility and reach of legitimate AI-development platforms to distribute malware. In October, attackers exploited a breach involving AI coding platform Cursor to distribute malicious copies of Anthropic's Claude Code extension through Cursor's VS Code extension marketplace. The compromised versions were available for about 11 hours, during which time up to 5,000 users may have received it. Cursor later traced the incident back to a breach at a third-party AI infrastructure provider.
Related:It's a Bot World. We're Just Living in It
In April, Acronis reported on attackers abusing Hugging Face and ClawHub to spread malware. Researchers at the company identified more than 575 malicious skills published through 13 ClawHub developer accounts, some of which posed as legitimate tools but instead directed users to malicious downloads or commands.
Platforms like Hugging Face Spaces and GitHub are popular targets because they have trusted domain reputations and don't trip antivirus or corporate Web-filter warnings the way a brand-new standalone domain would, Korolevski says. Both platforms inherit high search-engine and security-reputation trust and offer free, instant and disposable hosting with minimal identity verification, he says.
GitHub specifically supplies the appearance of an open-source project with visible code and a star counts creating instant, cheap social proof even when the actual repository content might just be a redirect document, he points out. "Hugging Face Spaces specifically provide a real, interactive landing page, not just a file listing, which is exactly the format needed for a convincing fake download portal."
About the Author
Contributing Writer
Illinois-based Jai Vijayan is a veteran, award-winning technology journalist with more than 25 years of experience covering cybersecurity. His information security reporting has explored everything from ransomware, nation-state threats, and identity security to AI risk, critical infrastructure protection, software supply chain security, cloud security and emerging enterprise technologies.
Over the course of his career, Jai has written news stories, feature articles, survey reports, white papers, and e-books for enterprise and technology audiences. He has also moderated panel discussions and executive roundtables featuring CISOs, security researchers, and industry leaders.
Jai previously served as senior editor at Computerworld, where he covered information security and data-privacy issues. His work has also appeared in CSO Online, InformationWeek, The Christian Science Monitor Passcode, The Economic Times, and other publications.
His work has earned multiple industry honors, including a Joint ASBPE Excellence Award for Best Coverage of Government IT, and a Joint Jesse H. Neal Award for wireless LAN security coverage. Jai holds a Master’s degree in statistics from Bangalore University, and studied broadcasting and electronic communication at Marquette University in Milwaukee.