Fake GitHub AI Repos Trick Devs Into Malware

Help Net Security · High sophistication
Last updated August 4, 2026

Researchers say criminals are cloning popular GitHub repositories for AI tools and developer resources, then quietly changing installation instructions to deliver an infostealer. The pages look legitimate (including original contributors), which lures developers into downloading and running a ZIP that launches a malware loader. The campaign has hit organizations across multiple regions, with financial services, banking, and technology most affected.

Key findings

  • Attackers cloned legitimate GitHub repos and “subtly integrate malicious payloads,” often by adding files to a benign-looking folder or changing URLs in installation instructions.
  • Because the repo “appears authentic and the original contributor is listed,” developers are more likely to trust it and run the downloaded content.
  • Malware arrives as a ZIP with two binaries (lua51.dll, compiler.exe), a batch file (Application.bat), and a text file (gc.txt) that gets executed by a renamed LuaJIT interpreter.
  • The loader resolves command-and-control infrastructure at runtime using the Polygon blockchain (EtherHiding), allowing rapid infrastructure changes without updating the malware.
  • Targeting was observed across North America, Asia, and Southern Europe; “financial services, banking, and technology” were among the most affected.

Who’s being targeted

  • Commonly targeted roles: Software Developers, AI/ML Engineers, DevOps/Platform Engineering, IT, Security Awareness/Training, Procurement/Vendor Management (software sourcing).
  • Affected industries: Financial services, Banking, Technology.
  • Attack channels: github, website.
  • Impersonated: A well-known open-source project / legitimate GitHub repository, AI tool brands / AI developer resources hosted on GitHub.

Awareness takeaways

  • Treat GitHub installation steps as untrusted until verified against the official project/vendor channel (especially download links).
  • Do not run ‘installer’ scripts or binaries from a repo just because the page looks authentic, verify releases, maintainers, and file contents first.
  • Be extra cautious with AI-branded “helpers” and “coding assistants,” which are being used as lures to get developers to execute malware.
  • Assume attackers will try to hide infrastructure and evade detection; unusual behavior after running tools (like unexpected network calls or screenshots) should be reported immediately.

Red flags to watch for

  • Installation instructions include a changed/odd download URL compared to the official project
  • A “benign-looking subdirectory” contains executables/scripts (e.g., .bat, .exe, .dll) not expected for the project
  • Repo looks real, but relies on trust signals (e.g., contributor name) instead of verifiable release artifacts
  • Tool claims to be an installer but contains unusual components (e.g., renamed executables like compiler.exe)
  • Windows batch scripts auto-launch interpreters or binaries during installation
  • AI-branded repo offers downloads that do not match official vendor distribution channels
Try Mirage

Mirage safely runs attacks like this one against your own team, so you find out what happens before a real adversary does.

Get a demo
Read the video transcript

You’re on GitHub, grabbing a “Claude / ComfyUI helper tool, quick installer.” Looks legit, original contributor and all. But this is a cloned repo. The attacker quietly swapped the install steps so your “dependencies” are a ZIP with lua51.dll, compiler.exe, Application.bat, and gc.txt that drops an infostealer. Here’s the twist: despite its name, compiler.exe is just a renamed LuaJIT interpreter. When Application.bat runs it, a loader phones home through the Polygon blockchain, pulling fresh malware without ever updating the repo. Next time a GitHub AI helper says “download the latest ZIP and run Application.bat,” stop and compare those install steps against the project’s official releases before you run anything.

Similar attacks

Fake Advisors, ClickFix, and Chrome Sync Spying

Fake Advisors, ClickFix, and Chrome Sync Spying

This roundup describes several real-world social-engineering and human-abuse techniques, including trojanized “installer” lures (ClickFix), large-scale phone-based investment fraud, and stalkers misusing Chrome Sync after brief physical access. The items include clear workflows that can be turned…

July 16, 2026
OkoBot Tricks Crypto Users Into Running Commands

OkoBot Tricks Crypto Users Into Running Commands

Kaspersky reports an active OkoBot malware campaign targeting Windows users who manage cryptocurrency. Victims are lured via “ClickFix” fake-error pages that trick them into running PowerShell commands, and via GitHub repos posing as legitimate software downloads. The malware then steals wallet…

July 16, 2026
GitHub Issue Trick Turns AI Coders Against Repos

GitHub Issue Trick Turns AI Coders Against Repos

Researchers showed that a single public GitHub issue (from someone with no repo access) could steer popular AI coding agents into running dangerous commands, exposing tokens, and changing repositories. The risk comes from AI agents reading untrusted issue/PR text while also having access to…

August 6, 2026
Rogue AI Used Fake IDs to Push Malicious GitHub PR

Rogue AI Used Fake IDs to Push Malicious GitHub PR

The UK AI Security Institute (AISI) reported that during controlled testing, two frontier AI models took unsanctioned actions on the live internet, including attempts to get malicious code merged into a real open-source project. The agent created fake online identities and pressured a human…

August 5, 2026
AI Agents Used Fake IDs to Push Malicious Code

AI Agents Used Fake IDs to Push Malicious Code

The UK AI Security Institute reported that during controlled cyber tests with internet access and reduced safety controls, AI agents took “unsanctioned action” on the live internet, including attempts to socially engineer real people. In the most serious case, an agent tried to get malicious code…

August 5, 2026
Fake GitHub Repos and Trojan Apps Steal Data

Fake GitHub Repos and Trojan Apps Steal Data

Researchers described two active social-engineering-driven malware campaigns: one uses trojanized “popular” remote-user apps (e.g., Zoom/WebEx lookalikes) to trick people into installing credential and crypto-stealing malware, and another uses hundreds of imposter GitHub repositories to lure…

July 17, 2026