All research
StealersThreat IntelDetection

Fake AI Agent Repositories on GitHub: SmartLoader, StealC, and the Malware Supply Chain Hiding in READMEs

Fake AI-agent repos on GitHub hid the install step in the README. What the samples show about SmartLoader, StealC, and developer trust.

Fake AI Agent Repositories on GitHub: SmartLoader, StealC, and the Malware Supply Chain Hiding in READMEs

Executive summary

On November 4, 2026, Thomas Roccia disclosed a set of 73 GitHub repositories impersonating AI-agent tooling, including Claude skills, Codex-related projects, MCP servers, and OpenClaw tooling. At the time of his post, he reported that 51 of the repositories were still live. Several imitated legitimate projects such as mcp-superset, hermes-agent, and ContinuousClaude. The important detail is that the malicious behavior was not necessarily embedded in the obvious agent configuration files: Roccia specifically noted that SKILL.md and settings files could appear clean while the malicious installation path was introduced through the repository README.

The README-based lure directs Windows users toward a ZIP installer and, in observed cases, tells them to proceed past the Windows SmartScreen warning. Inside the archive, the recurring structure is a small .bat or .cmd launcher, a LuaJIT-style runtime, and an obfuscated Lua program disguised as a text or data file. Roccia identifies this chain as SmartLoader, a loader already documented in the broader FakeGit ecosystem and repeatedly associated with delivery of the StealC information stealer.

The IOC Gist published alongside the research provides much stronger evidence than repository names alone. It contains locally verified SHA-256 hashes for two ZIP samples, launchers, Lua payloads, LuaJIT binaries, a DLL, a second-stage Lua file, scheduled-task names, and filesystem artifacts. Importantly, the Gist explicitly distinguishes indicators verified in those samples from campaign-level indicators such as Polygon RPC infrastructure and StealC C2 addresses that were documented elsewhere but were not necessarily observed in those exact samples.

This activity is not a one-off GitHub abuse case. Derp documented a LuaJIT-based FakeGit campaign operating since March 2025, with more than 600 malicious ZIP archives tied to dozens of GitHub accounts by March 2026. Netskope later documented campaigns cloning AI and developer projects and using SmartLoader twice in a multi-stage chain. Island subsequently reported a much broader operation containing roughly 7,600 malicious GitHub repositories, including more than 800 posing as AI skills or MCP servers, with malicious assets appearing across public AI catalogs and registries.

The practical lesson for OffPerimeter is straightforward: repository trust cannot stop at source code, SKILL.md, MCP manifests, or agent configuration. The README, attached archives, release assets, account history, binary content, and actual process tree created during installation are all part of the software supply chain.

OffPerimeter Intelligence
From a README to session exposure

Timeline and infection chain

The underlying FakeGit operation appears to have started substantially earlier than the November 2026 discovery. Derp traced the LuaJIT-based delivery model to March 2025 and documented an evolution in loader binaries, obfuscation formats, blockchain contracts, and payload staging over the following year. Its analysis showed that the attacker could alter downstream infrastructure without replacing every deployed malware sample because the loaders resolved infrastructure through values stored in Polygon smart contracts.

By August 3, 2026, Netskope Threat Labs was documenting a developer-focused variant of the same ecosystem. Its researchers found attackers cloning or impersonating well-known repositories related to AI and developer tooling, delivering SmartLoader through ZIP archives, and using two separate SmartLoader stages. Both stages resolved infrastructure dynamically from Polygon. Netskope described the first-stage Lua payload as using Prometheus-style obfuscation and a later Lua stage as likely using MoonSec.

Island later described the operation as FakeGit and identified about 7,600 malicious repositories, including roughly 1,400 associated with AI tools, agents, or workflows. More than 800 impersonated Skills or MCP servers. Island also observed appearances across public AI catalogs and measured millions of downloads from campaign-associated GitHub release assets. Those larger numbers describe the broader campaign, not Roccia's 73-repository November set.

On November 4, Roccia's investigation isolated a new/current set of 73 repositories and reported 51 still live that morning. The repositories used themes such as Claude skills, Codex, MCP servers, and OpenClaw. Some archives were committed directly into the repository, including paths buried underneath .claude directories.

The first half of the infection path is directly supported by Roccia's November samples. Polygon-based resolution, additional encrypted stages, PE injection, and final StealC execution are supported by public analysis of the associated FakeGit/SmartLoader campaign and should therefore be described as campaign behavior, not automatically attributed to every one of the 73 repositories.

Technical analysis of SmartLoader and StealC

The launcher stage is deliberately unsophisticated. Its job is simply to execute the bundled runtime with the disguised Lua payload as an argument. Island documented one representative archive where application.cmd started luau.exe with ico64.txt; Roccia's two documented samples use analogous structures: one contains Application.bat, util64.exe, lua51.dll, and lfs.txt, while the other contains Launcher.cmd, luajit.exe, and uix.txt.

That simplicity matters defensively. LuaJIT itself is legitimate software, so detecting luajit.exe by filename alone produces weak results. A much stronger behavioral signal is a Lua or LuaJIT runtime originating from a newly downloaded ZIP, executing an unusually large .txt, .log, .json, or similarly disguised file from a user-writable location, followed by persistence creation or outbound network activity. Derp documented numerous executable names across FakeGit generations, including luajit.exe, vm_s390x.exe, init.exe, luad.exe, and gcc.exe, demonstrating why detections should focus on process relationships and file behavior rather than a single binary name.

The Roccia Gist confirms persistence via two scheduled tasks: CCleanerSkipUAC_7d7757, pointing to an executable under %LOCALAPPDATA%\7d7757\, and OfficeClickToRunTask_7d7752, pointing to a second stage under %LOCALAPPDATA%\7d7752\. It also records execution or creation of %LOCALAPPDATA%\Programs\Py\Selenium\Selenium.exe and C:\Windows\Setup\Scripts\ErrorHandler.cmd.

Netskope's analysis provides the clearest view of SmartLoader's network design. SmartLoader first performs victim geolocation and then makes an eth_call against Polygon to obtain the next infrastructure address. The documented contract is 0x1823A9a0Ec8e0C25dD957D0841e3D41a4474bAdc, with public Polygon RPC services used to query it. Because the value can be changed on-chain, an operator can redirect already-deployed loaders without replacing the binaries themselves.

Derp's analysis of the downstream chain found encrypted stages fetched from GitHub and decrypted through multiple transformations before a PE crypter ultimately delivered StealC. Derp documented StealC builds associated with the FakeGit operation and described injection into another process as part of the final delivery chain.

StealC is a Windows information stealer that targets browser passwords, cookies, authenticated session material, extension data, email and remote-access credentials, screenshots, and host information. Theft of session data is especially relevant on developer machines because access to GitHub, GitLab, cloud consoles, package registries, CI/CD dashboards, or internal SaaS may remain possible even when a password itself was not directly stolen.

There is no SSH-key indicator in Roccia's November SmartLoader samples. The Gist contains no SSH public key, SSH fingerprint, or authorized-keys persistence artifact. That distinction matters because this campaign should not be mixed with separate 2026 developer-tool compromises that did establish SSH backdoors.

Indicators and ATT&CK mapping

The strongest indicators are the artifacts directly verified in Roccia's samples. Campaign-level infrastructure is still useful for hunting, but it should be given lower confidence when investigating these particular repositories. The Gist makes this same distinction explicitly.

Category Indicator Platform Confidence Description
SHA-256 53039bdeb3e155236dce324281f59846c2da7518a54859c409286aaff86d61a2 Windows Confirmed messenger-codex-v2.6.zip
SHA-256 bd2a6bff153d95ab3d94d7db4525c49c31f5c6f32ddbf8e7c466732b0a6eb071 Windows Confirmed supercharged-claude-skills-v2.0.zip
SHA-256 4f5c5ad522d8dba60e89c443e07d65c3ce373ef1a617d220d3b69a185c11dae2 Windows Confirmed Application.bat
SHA-256 2a7afb187157a4052e5b9797d1d1c7ee807b2edeffef076a08b20b12e3dcf317 Windows Confirmed lfs.txt
SHA-256 7ad4b911d05a12f91ab27ba3baa351a56653ca099dda7ad87ee2b94f8cd018c9 Windows Confirmed util64.exe
SHA-256 04d3c82782927330d56827ff551697666dbab4b3abf5b86bde492efdd142bc58 Windows Confirmed lua51.dll
SHA-256 ce1e33483d353200a266b3bc383ccf500e5a760c6dcd8218747260f5bbe39509 Windows Confirmed Launcher.cmd
SHA-256 8cede35b80b1deaf732c2b178d908f91b3e7a0c114d06dfae9075b8a9bf78b8f Windows Confirmed uix.txt
SHA-256 f3e34c9e36f3be065d80d456281d31dd1cc85eb4980db7fa8c1b0eb6f29c25d8 Windows Confirmed luajit.exe
SHA-256 ad9da27f72bb7abbfcba92f9302d3467f5487814bb34bbf4b1573abcb56e4efc Windows Confirmed dist.lua
Scheduled task CCleanerSkipUAC_7d7757 Windows Confirmed Persistence
Scheduled task OfficeClickToRunTask_7d7752 Windows Confirmed Persistence
File %LOCALAPPDATA%\Programs\Py\Selenium\Selenium.exe Windows Confirmed Executed artifact
File C:\Windows\Setup\Scripts\ErrorHandler.cmd Windows Confirmed Dropped artifact
Contract 0x1823A9a0Ec8e0C25dD957D0841e3D41a4474bAdc Network Campaign Polygon dead-drop resolver
Domain polygon[.]drpc[.]org Network Campaign Legitimate Polygon RPC service abused
Domain ip-api[.]com Network Campaign Legitimate geolocation API abused
Domain raw.githubusercontent[.]com Network Campaign Legitimate GitHub staging
IP 217.119.129[.]110 Network Campaign StealC infrastructure reported in FakeGit
IP 213.176.72[.]200 Network Campaign StealC infrastructure reported in FakeGit

The Gist also records several live lure repositories as of its November 4 re-check, including Andreiarsenevichtarkovskyinmate282/codex-messenger, Sebas2015diaz/hermes-agent-orange-book, montgomeryunpopular607/anywhere-agents, Deepu-Thapa/codex-skills, and others. GitHub search results independently exposed the suspicious codex-messenger README with explicit instructions to click “Run anyway” after SmartScreen appears.

Tactic Technique Evidence
Initial Access T1195.002 — Software Supply Chain Compromise Fake/cloned repositories and malicious installation assets
Execution T1059 — Command and Scripting Interpreter BAT/CMD and Lua execution
Persistence T1053.005 — Scheduled Task/Job Confirmed scheduled tasks
Defense Evasion T1027 — Obfuscated/Compressed Files Obfuscated Lua
Defense Evasion T1036 — Masquerading Legitimate-looking repository, file, and task names
Command and Control T1102 — Web Service GitHub and public RPC services
Command and Control T1071.001 — Web Protocols HTTP(S)-based retrieval and discovery
Credential Access T1555 — Credentials from Password Stores StealC capability
Collection T1539 — Steal Web Session Cookie StealC browser-session theft
Collection T1113 — Screen Capture StealC capability

The execution, persistence, obfuscation, and service-abuse mappings are directly supported by the observed SmartLoader/FakeGit chain; credential and collection mappings correspond to documented StealC capabilities.

Detection, hunting, and incident response

Hunting should start with sample-specific hashes and known repository names, then widen toward behavior. The strongest behavioral pattern is not simply “LuaJIT exists”; it is an unusual Lua runtime launched from a repository archive or user-writable directory, executing a file with a misleading data extension, followed by persistence or outbound activity. This approach remains useful even when operators rename the runtime or change the ZIP filename.

A high-priority Microsoft Defender or Sentinel query is:

DeviceProcessEvents
| where FileName in~ ("luajit.exe","luau.exe","util64.exe")
| where ProcessCommandLine has_any (".txt",".log",".json",".lua")
| project Timestamp,
          DeviceName,
          AccountName,
          FileName,
          ProcessCommandLine,
          InitiatingProcessFileName,
          InitiatingProcessCommandLine

Persistence should be hunted separately:

DeviceProcessEvents
| where FileName =~ "schtasks.exe"
| where ProcessCommandLine has_any (
    "CCleanerSkipUAC_",
    "OfficeClickToRunTask_"
)
| project Timestamp,
          DeviceName,
          AccountName,
          ProcessCommandLine

Network hunting can correlate campaign infrastructure with the initiating process:

DeviceNetworkEvents
| where RemoteUrl in~ (
    "polygon.drpc.org",
    "raw.githubusercontent.com",
    "ip-api.com"
)
or RemoteIP in (
    "217.119.129.110",
    "213.176.72.200"
)
| project Timestamp,
          DeviceName,
          InitiatingProcessFileName,
          InitiatingProcessCommandLine,
          RemoteUrl,
          RemoteIP,
          RemotePort

polygon.drpc.org, raw.githubusercontent.com, and ip-api.com are legitimate services and should not be blocked or treated as proof of compromise solely because a host contacted them. Their value comes from correlation with a suspicious Lua process, recently downloaded ZIP, known hash, persistence creation, or other campaign evidence.

A useful Sigma starting point is:

title: Suspicious LuaJIT Execution From User Download Context
status: experimental
logsource:
  category: process_creation
  product: windows

detection:
  image:
    Image|endswith:
      - '\luajit.exe'
      - '\luau.exe'
      - '\util64.exe'

  arg:
    CommandLine|contains:
      - '.txt'
      - '.log'
      - '.json'
      - '.lua'

  location:
    CommandLine|contains:
      - '\Downloads\'
      - '\AppData\Local\Temp\'
      - '\.claude\'

  condition: image and arg and location

falsepositives:
  - Legitimate Lua development

level: high
OffPerimeter Intelligence
Cookies, sessions and response
OffPerimeter response model

For incident response, any endpoint that actually executed one of the installer archives should be considered potentially compromised, not simply “exposed.” Preserve process, memory, scheduled-task, DNS, proxy, browser, and EDR evidence before cleanup. If SmartLoader persistence is confirmed, isolate the host and investigate whether downstream StealC execution occurred. If StealC execution cannot be excluded, credentials and sessions accessible from the developer endpoint should be rotated from a separate clean device.

Priority credentials include source-control tokens, cloud sessions, browser sessions, package-registry credentials, SSH material, CI/CD tokens, and developer API keys. Source-control history, releases, package publications, cloud audit logs, identity-provider logs, and pipeline activity should be reviewed for activity following the suspected execution time.

If post-exploitation activity cannot be reconstructed with confidence, rebuilding the workstation is safer than relying on deleting the loader and scheduled tasks.

Risk assessment and developer-tool governance

The campaign demonstrates a weakness in how developer tooling is often evaluated. Traditional repository review asks whether the source code is suspicious. Agent ecosystems introduce additional files that teams may consider authoritative—SKILL.md, MCP manifests, AGENTS.md, settings files—but Roccia's finding shows that attackers can leave those surfaces untouched and put the actual social-engineering step in the README.

A second problem is discoverability. Island observed malicious skills and MCP servers propagating into public catalogs and registries, meaning a repository does not need to rank organically in GitHub search to reach developers. Once indexed by a catalog or surfaced by a tooling discovery workflow, the repository gains an additional layer of apparent legitimacy.

The control model should therefore treat an externally sourced repository as a package, not as a collection of text files. Before execution, organizations should inspect archive contents, binaries, scripts, documentation, release assets, commit history, account ownership, forks, and recent changes. Particular scrutiny should be applied to commits that modify only README content while introducing a new installer or download path. Roccia specifically noted accounts showing normal-looking histories followed by a single README-only modification.

For managed environments, OffPerimeter's recommended policy is to sandbox newly discovered tooling, prevent unsigned or unapproved binaries from running directly from Downloads, %TEMP%, repository working directories, or .claude paths, and require an explicit approval step before an agent or developer tool can execute repository-provided archives. Short-lived credentials and least-privilege tokens materially reduce the consequences if a developer workstation is compromised.

Sources

  1. Thomas Roccia (@fr0gger): 73 fake AI-agent GitHub repositories delivering SmartLoader (November 4, 2026)
  2. Thomas Roccia: IOC Gist
  3. Island: AgentBaiting — how 800 fake AI skills and MCP servers delivered malware
  4. Derp: FakeGit: LuaJIT malware distributed via GitHub at scale
  5. Netskope Threat Labs: Developers in the Crosshairs
  6. Apiiro: Never Deleted, Only Re-Pointed
  7. MITRE ATT&CK: techniques

OffPerimeter

Climate is which FakeGit lure is trending this week. Posture is whether your developers — or the agents installing tools for them — still treat a clean SKILL.md as enough to trust a README, a ZIP, and the process tree that follows.

https://offperimeter.com

OffPerimeterResearch by OffPerimeter
PRIVATE BETABeta access for a limited time

From research to your own exposure.

Explore your attack surface, credential exposure and threat intelligence with OffPerimeter.

Request Beta
OffPerimeterOFFPERIMETER BRIEF

Stay one signal ahead.

New research on exposure, credentials and emerging threats.

New researchUnsubscribe anytime