AI Security AI安全 14h ago Updated 8h ago 更新于 8小时前 51

FakeGit Campaign Uses 7,600 GitHub Repositories to Spread SmartLoader Malware FakeGit活动利用7600个GitHub仓库传播SmartLoader恶意软件

The FakeGit campaign utilizes approximately 7,600 malicious GitHub repositories to distribute SmartLoader malware, with over 800 specifically masquerading as AI skills or Model Context Protocol (MCP) servers. A new vector called "AgentBaiting" allows AI agents like Claude Code, Gemini, and ChatGPT to autonomously discover and execute malicious instructions from fake repositories without human intervention. The attack chain involves downloading malicious ZIP files containing LuaJIT loaders that d FakeGit 攻击者利用近 7,600 个恶意 GitHub 仓库传播 SmartLoader 恶意软件,其中 800 多个伪装成 AI 技能或 MCP 服务器。 新型“AgentBaiting”技术使 AI 代理在搜索技能时自动发现并执行恶意仓库,无需人类用户干预即可被欺骗。 攻击通过 LuaJIT 加载器链部署 SmartLoader 和 StealC 信息窃取器,利用伪造的开发者资料和 README 诱导下载。 超过 600 个恶意列表已出现在 LobeHub、Glama 等公共 MCP 和技能注册表中,造成超过 1400 万次下载。 防御建议包括建立审核过的技能目录、在沙箱中评估新能

75
Hot 热度
70
Quality 质量
72
Impact 影响力

Analysis 深度分析

TL;DR

  • The FakeGit campaign utilizes approximately 7,600 malicious GitHub repositories to distribute SmartLoader malware, with over 800 specifically masquerading as AI skills or Model Context Protocol (MCP) servers.
  • A new vector called "AgentBaiting" allows AI agents like Claude Code, Gemini, and ChatGPT to autonomously discover and execute malicious instructions from fake repositories without human intervention.
  • The attack chain involves downloading malicious ZIP files containing LuaJIT loaders that drop SmartLoader, which subsequently deploys the StealC information stealer to harvest sensitive data.
  • More than 600 listings from this campaign have been identified on public AI registries such as LobeHub, Glama, and MCP.so, exploiting the growing demand for third-party AI integrations.

Why It Matters

This incident highlights a critical shift in cybersecurity threats where AI agents themselves become targets for social engineering and supply chain attacks, bypassing traditional human-centric security controls. For AI practitioners and developers, it underscores the urgent need to secure the ecosystem of third-party skills, plugins, and MCP servers, which are increasingly becoming vectors for malware distribution. The ability of attackers to manipulate autonomous agents introduces new risks for enterprise environments relying on AI-driven workflows.

Technical Details

  • Attack Vector: Malicious GitHub repositories posing as legitimate AI skills or MCP servers, often using copied projects, lookalike developer profiles, and convincing README files.
  • Malware Chain: Downloads trigger a LuaJIT loader chain executing an obfuscated Lua script that installs SmartLoader, followed by the deployment of StealC information stealer.
  • AgentBaiting Mechanism: AI models are prompted to search for specific tools (e.g., "free claude cinematic prompt skill"), leading them to autonomously fetch and process malicious repositories and their instructions.
  • Targeted Models: Tests confirmed susceptibility in Anthropic Claude Code, Google Gemini, and OpenAI ChatGPT, which surfaced malicious repositories without explicit malicious links provided by the user.
  • Distribution Scale: Over 14 million downloads recorded across GitHub Release assets in approximately 200 campaign repositories as of July 2026, with listings propagated through public registries.

Industry Insight

  • Secure AI Supply Chains: Organizations must implement strict vetting processes for third-party AI skills and MCP servers, treating them with the same scrutiny as software dependencies in traditional development pipelines.
  • Agent Sandboxing: AI agents should operate within sandboxed environments with restricted permissions to prevent autonomous execution of unverified code or commands discovered during search operations.
  • Proactive Monitoring: Security teams should monitor public AI registries and GitHub for anomalies in repository creation patterns and developer profiles to detect campaigns like FakeGit before widespread adoption.

TL;DR

  • FakeGit 攻击者利用近 7,600 个恶意 GitHub 仓库传播 SmartLoader 恶意软件,其中 800 多个伪装成 AI 技能或 MCP 服务器。
  • 新型“AgentBaiting”技术使 AI 代理在搜索技能时自动发现并执行恶意仓库,无需人类用户干预即可被欺骗。
  • 攻击通过 LuaJIT 加载器链部署 SmartLoader 和 StealC 信息窃取器,利用伪造的开发者资料和 README 诱导下载。
  • 超过 600 个恶意列表已出现在 LobeHub、Glama 等公共 MCP 和技能注册表中,造成超过 1400 万次下载。
  • 防御建议包括建立审核过的技能目录、在沙箱中评估新能力、验证发布者身份以及监控代理行为路径。

为什么值得看

该资讯揭示了 AI 代理安全的新前沿威胁,即攻击者不再仅针对人类进行社会工程学攻击,而是直接利用 AI 代理的自主搜索和执行能力进行自动化入侵。对于 AI 从业者和企业而言,这标志着供应链安全和代理安全(Agentic Security)成为必须立即应对的关键风险点。

技术解析

  • 攻击载体与伪装:攻击者创建了约 6,600 个开发者配置文件,发布近 7,600 个恶意仓库。这些仓库高度模仿知名工具(如 Gmail、WhatsApp、Databricks、Jenkins、Docker 集成),并利用复制的项目代码和逼真的 README 文档建立可信度。
  • 恶意载荷执行链:用户或代理下载恶意 ZIP 文件后,触发 LuaJIT 加载器链,执行混淆的 Lua 脚本以释放 SmartLoader。SmartLoader 随后建立持久性并部署二级载荷 StealC(信息窃取器)。
  • AgentBaiting 机制:这是一种针对 AI 代理的社会工程学变体。当代理(如 Claude Code、Gemini、ChatGPT)接收自然语言指令(例如“查找免费的 Claude 电影提示词技能”)时,它会自主搜索并发现伪造的 GitHub 仓库。代理将恶意的 README 视为合法文档,并将攻击者的指令传递给用户或自行执行,从而绕过人类的安全意识防线。
  • 分发渠道:除了 GitHub,攻击者还将恶意技能和 MCP 服务器列表提交到 LobeHub、Glama、MCP.so 和 MCP Market 等公共注册表,利用这些平台的信誉背书增加可信度,目前已有超过 600 个相关列表被标记。

行业启示

  • 重构 AI 代理信任模型:传统的“人类确认”机制在 AgentBaiting 面前失效。企业和开发者必须假设 AI 代理在自主搜索和执行任务时可能面临不可信的外部输入,需引入零信任架构,对所有外部技能、插件和 MCP 服务器进行严格的签名验证和来源审查。
  • 强化沙箱与隔离执行环境:鉴于恶意载荷可通过看似正常的安装流程注入,建议在隔离的沙箱环境中运行所有新发现的 AI 技能、MCP 服务器和代理插件,并在部署前进行动态行为分析和静态代码扫描,以拦截类似 LuaJIT 加载器的隐蔽执行链。
  • 建立内部技能白名单与监控体系:组织应建立经过审核的内部 AI 技能和插件目录,禁止代理随意从公共注册表安装未经验证的能力。同时,实施对代理行为的实时监控,检测异常的仓库访问、下载行为或 README 读取模式,以便在恶意代码执行前中断攻击链。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Security 安全 Open Source 开源 Research 科学研究