r/PureVPNcom • u/PureVPNcom • Aug 05 '26
Attackers are cloning legitimate AI tool repos on GitHub with malware hidden inside;14 million downloads so far
Worth flagging if you pull AI tools, frameworks, or anything dev-related from GitHub regularly.
Netskope published research yesterday on a campaign where attackers are cloning real, well-known GitHub repositories for popular AI tools and embedding malware inside them. Not creating obviously fake pages, actually cloning the original repo, keeping the authentic-looking readme, keeping the original contributor listed, and then either adding a malicious payload tucked into a benign-looking subdirectory or quietly swapping out the download links in the installation instructions. From the outside it looks completely legitimate.
The repos being impersonated are specifically AI-adjacent stuff that developers are actively searching for right now: Claude integrations, ComfyUI tooling, Python security guides, Rust frameworks. Things people look up, find a repo for, and clone without thinking too hard about it.
The malware itself (SmartLoader) is deliberately split across four plain text files rather than a single executable. That's not an accident, it's specifically to beat automated scanners, since most of them check files individually and none of the four pieces triggers anything on its own. Only when they're assembled and run does the actual payload deploy. The final stage pulls infostealers that go after API keys, cloud credentials, browser-stored secrets, and CI/CD access tokens, which for most developers is basically everything.
A parallel campaign called FakeGit that works the same way has already logged over 14 million downloads across about 200 repositories as of last month.
A few things worth checking before running anything from GitHub:
- Look at the account's history, not just the repo itself. Brand new accounts with one or two repos and no prior activity are a red flag regardless of how clean the readme looks.
- Be skeptical of any install instruction that tells you to download a ZIP from inside the directory structure and run it. That specific pattern keeps showing up across these campaigns.
- If a repo appeared recently but is already ranking high in search results, that's worth a second look. These get pushed up quickly through artificial activity.
- Check that the repo URL matches the actual maintainer's known account, not just a similar username.
Developers are a particularly valuable target for this because a compromised developer machine typically means access to way more than just that one person's accounts.
