攻击者借GitHub Issues对61个公开仓库发动供应链攻击,不到一小时
Attackers turn GitHub issues into supply chain campaign against 61 public repos in less than an hour
The Register
以下为原文逐段中文翻译,保留图表与说明。AI 翻译并经 AI 对照复核,仍可能存在错误;核对数据和引用时请同时查看原文。译文发布:2026年10月30日 05:34(北京时间)。
安全
“该工作流会在不到一秒内被自动触发,若工作流确实存在漏洞,则攻击就会被成功执行。”
独家 研究人员发现了至少 83 起针对 61 个公开 GitHub 代码仓库的攻击,其中包括 Google LangExtract、Trivy、Brave 浏览器和 MLflow 等热门开源项目。他们怀疑这是一场协同行动,旨在 CI/CD 环境中执行命令,并窃取凭据与访问令牌。
Radware 的威胁猎手在接受《寄存器报》独家专访时表示,这一切发生得极快。绝大多数(77 个)恶意条目发布于 9 月 1 日一段 43 分钟的时间窗口内,其余 6 个则在此后两分钟内出现。
“我们猜测,最终目的是一场供应链攻击——攻击者获取该仓库的凭据后,便可以随心所欲地篡改内容(即代码)”,然后将这些恶意改动推送给其他人。Radware 副总裁兼研究员 Gabi Nakibly 对《寄存器报》表示。
(广告)
Nakibly 与 Radware 同事研究员 Zvika Babo 表示,他们怀疑这场供应链行动背后是同一个人在操盘。该攻击者使用了 74 个不同的 GitHub 账号,其中许多都拥有合法的开发历史,这意味着它们很可能已被盗用。
(广告)
“考虑到数十个账号在同一天、同一狭窄时间窗口内、针对同一基础设施发布了同类型有效载荷,有理由判断该活动是协同进行的。”研究团队在与《寄存器报》分享的、于发表前完成的研究中写道。
一种新颖的攻击链
他们在调查 GitHub 中的提示注入(prompt injection)时发现了这场行动——他们告诉我们,正是这条攻击链让这场供应链攻击显得新颖且极具隐蔽性。
首先,攻击者发布一个 issue、拉取请求(pull request)或评论,其中含有隐藏在 HTML 注释中的恶意命令。这确保了内容在渲染后的页面上不可见。此外,如果代码仓库被配置为响应某一事件,那么像拉取请求或 issue 这样的 GitHub 事件就会自动触发工作流,这意味着攻击者在此时几乎可以袖手旁观。
“该工作流会在不到一秒内被自动触发,若工作流确实存在漏洞,则攻击就会被成功执行。” Nakibly 表示。
该工作流将攻击者控制的内容直接拼接到 shell 源代码中,而 shell 会执行这条隐藏的恶意命令——它会搜集环境变量,并尝试将其外泄到攻击者控制的服务器。
尽管研究人员审查了实际运行的日志,并告诉我们他们发现了两起证据,表明恶意命令曾在自动化环境中运行,但他们尚无法确切判定攻击者是否成功获得了仓库写入权限、是否篡改了源代码,或是否攻陷了下游软件。不过他们仍在努力调查。
“总体来看,攻击者正试图找到一切可能的方式进入仓库以获取凭据。” Nakibly 表示。
(广告)
此外,Babo 补充道:“攻击者无需攻陷代码仓库,也无需访问其代码库”即可实施此攻击。“基本上,任何拥有 GitHub 账号的用户都可以尝试发起这种攻击——启动它非常容易。”
哪些仓库受到了影响?
截至 10 月 13 日,威胁猎手已在 61 个不同代码仓库中发现 83 个带有已确认有效载荷的 GitHub 条目。这些仓库横跨 AI 框架、安全工具、开发基础设施、数据库以及其他广泛使用的开源软件项目。
Radware 报告中列出的热门仓库包括 agno-agi/agno(42.7K 星标)、ToolJet/ToolJet(41.1K)、google/langextract(38.9K)、aquasecurity/trivy(38.4K)、CopilotKit/CopilotKit(38K)以及 podman-container-tools/podman(33K)。
其他值得注意的目标包括 QwenLM/qwen-code(28.5K)、mlflow/mlflow(28.4K)、discordjs/discord.js(26.8K)、cilium/cilium(25.6K)、brave/brave-browser(23.9K)、dotnet/maui(23.3K)、Homebrew/homebrew-cask(22.2K)、github/docs(21K)、apache/doris(16K)以及 PX4/PX4-Autopilot(12.8K)。
“这些项目被数千家组织使用。” Babo 表示。
研究人员已将其发现通报给所有这些项目的维护者,其中大多数代码仓库已被关闭或修复,但他们无法确认是否全部都已修复。
此次行动紧随此前数起针对开源安全与开发工具的供应链攻击之后,攻击者正日益寻找窃取凭据及其他机密信息的新方法。
(广告)
“无法阻止攻击者尝试攻击,” Nakibly 表示,“唯一的办法是确保工作流代码具有韧性,不易受到此类攻击。”
研究人员建议对 CI/CD 工作流采取最小权限访问控制,并尽可能将外部事件触发的工作流与具有提权权限的任务相互隔离。
“开发者应将外部内容视为不可信,并限制工作流可访问的机密信息与环境变量。” Babo 表示。®
展开英文原文 · 与中文逐段对应
Attackers turn GitHub issues into supply chain campaign against 61 public repos in less than an hour
security
'The workflow automatically is triggered within a second, and if the workflow is indeed vulnerable, then the attack is executed successfully'
EXCLUSIVE Researchers identified at least 83 attacks against 61 public GitHub repositories, including popular open source projects such as Google LangExtract, Trivy, Brave browser, and MLflow, in what they suspect is a coordinated campaign to execute commands in CI/CD environments and steal credentials and access tokens.
It all happened very quickly, the Radware threat hunters said in an exclusive interview with The Register . Most (77) of the malicious items were published during a 43-minute time span on September 1, with the remaining six occurring within the next two minutes.
“Our guess is that the final aim was a supply-chain attack in which the attacker gains credentials for the repo, and then he has the power to change the contents – the code – as he wishes” and then push the malicious changes to others, Radware VP and researcher Gabi Nakibly told The Register .
REG AD
Nakibly and fellow Radware researcher Zvika Babo say they suspect a single individual is behind this supply chain campaign. This attacker used 74 different GitHub accounts, many of which had legitimate development histories, meaning they were likely compromised.
REG AD
"Considering that dozens of accounts posted the same type of payload, on the same day, within a narrow time window, and to the same infrastructure, it is reasonable to assess that the activity was coordinated,” the team wrote in research shared ahead of publication with The Register .
A novel attack chain
They discovered the campaign while investigating prompt injection in GitHub – and they told us the attack chain is part of what makes this supply-chain campaign novel, and extremely stealthy.
First, the attacker publishes an issue, pull request, or comment containing malicious commands hidden in HTML comments. This ensures the content is not visible in the rendered page. Plus, a GitHub event – like a pull request or issue – can automatically trigger a workflow if the repository is configured to respond to that event, meaning the attacker can be pretty hands-off at this point.
“The workflow automatically is triggered within a second, and if the workflow is indeed vulnerable, then the attack is executed successfully,” Nakibly said.
The workflow incorporates attacker-controlled content directly into shell source code, and the shell executes the hidden, malicious command, which hoovers up environment variables and attempts to exfiltrate those to an attacker-controlled server.
While the researchers examined logs from actual runs, and told us they found two cases containing evidence that the malicious command ran inside the automation environment, they can’t definitively say whether the attacker successfully obtained repository write permissions, modified source code, or compromised downstream software. But they're trying.
“The big picture is that the attackers are trying to find every possible way to get inside the repos to get credentials,” Nakibly said.
REG AD
Plus, “the attacker doesn't need to compromise the repository or to have access to its codebase” to do this, Babo added. “Basically, every user with a GitHub account can try to run this attack – it's very easy to start this attack.”
Which repos were affected?
As of October 13, the threat hunters identified 83 GitHub items with a verified payload across 61 different repositories. The repos span AI frameworks, security tools, development infrastructure, databases, and other widely used open source software projects.
The Radware report lists agno-agi/agno (42.7K stars), ToolJet/ToolJet (41.1K), google/langextract (38.9K), aquasecurity/trivy (38.4K), CopilotKit/CopilotKit (38K), and podman-container-tools/podman (33K), among the most popular.
Other notable targets included QwenLM/qwen-code (28.5K), mlflow/mlflow (28.4K), discordjs/discord.js (26.8K), cilium/cilium (25.6K), brave/brave-browser (23.9K), dotnet/maui (23.3K), Homebrew/homebrew-cask (22.2K), github/docs (21K), apache/doris (16K), and PX4/PX4-Autopilot (12.8K).
“These projects are used by thousands of organizations," Babo said.
The researchers disclosed their findings to all of the projects’ maintainers, and most of the repositories were closed or fixed, but they can’t confirm that all of them were.
This campaign follows several earlier supply chain attacks against open source security and dev tools as attackers increasingly look for new methods to steal credentials and other secrets .
REG AD
“There is no way to stop the attackers from attempting,” Nakibly said. “The only way is to make sure that the workflow code is resilient, and not vulnerable to such attacks."
The researchers recommend applying least-privilege access to CI/CD workflows, and separating as much as possible workflows triggered by external events from jobs with elevated permissions.
“Developers should treat external content as untrusted, and also limit the secrets and environment variables that are available to the workflow,” Babo said. ®
信息从哪里来
- The Register 原始来源