AI Security AI安全 2h ago Updated 1h ago 更新于 1小时前 49

Attackers Weaponize GitHub Actions Runners to Target cPanel and WHM Servers 攻击者利用GitHub Actions运行器针对cPanel和WHM服务器发动攻击

Attackers compromised a PHP developer's GitHub account to inject 583 malicious workflow files across ten packages, turning them into distributed infrastructure. The campaign abuses GitHub Actions runners to scan for and exploit CVE-2026-41940 in cPanel and WHM servers, bypassing traditional package installation vectors. A Linux payload harvested from these runners exfiltrates sensitive credentials including AWS keys, database access, SSH material, and cloud service tokens. The operation is part 攻击者利用被入侵的GitHub开发者账号,在10个PHP包中植入583个恶意GitHub Actions工作流文件,将开源仓库转化为分布式攻击基础设施。 恶意工作流触发后启动GitHub托管运行器,下载Linux载荷以扫描并 exploits cPanel和WHM服务器中的CVE-2026-41940认证绕过漏洞。 该活动并非通过依赖包执行,而是滥用GitHub Actions作为“机会主义服务器端凭证窃取”平台,旨在收集AWS、数据库及云密钥等高价值数据。 此事件是更广泛供应链攻击的一部分,与代号“Water Curse”的组织有关,同时揭示了GitHub被用作恶意软件分发和僵尸网络指挥控制

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

Analysis 深度分析

TL;DR

  • Attackers compromised a PHP developer's GitHub account to inject 583 malicious workflow files across ten packages, turning them into distributed infrastructure.
  • The campaign abuses GitHub Actions runners to scan for and exploit CVE-2026-41940 in cPanel and WHM servers, bypassing traditional package installation vectors.
  • A Linux payload harvested from these runners exfiltrates sensitive credentials including AWS keys, database access, SSH material, and cloud service tokens.
  • The operation is part of a broader trend where threat actors leverage legitimate CI/CD platforms for server-side credential theft and vulnerability scanning.

Why It Matters

This incident highlights a critical shift in supply chain attacks, moving from client-side malware distribution to server-side exploitation via CI/CD pipelines. It demonstrates how compromised repositories can be weaponized to create botnets of virtual machines, posing significant risks to organizations relying on automated build environments and third-party dependencies.

Technical Details

  • Attack Vector: Malicious GitHub Actions workflows were added to compromised repositories, triggering execution on GitHub-hosted runners upon push or manual run.
  • Exploitation Mechanism: The workflows download architecture-specific Linux payloads from C2 server 43.228.157[.]68, which then scan for and exploit CVE-2026-41940 (authentication bypass) in cPanel/WHM.
  • Data Exfiltration: Harvested data includes environment variables, database credentials, SSH keys, Git tokens, and API keys from services like Stripe, SendGrid, and OpenAI, uploaded via HTTP POST.
  • Scale: Approximately 6,100 workflow files across the ecosystem contain a unique DNSHook identifier, indicating a widespread, coordinated campaign beyond the initial ten packages.

Industry Insight

  • CI/CD Security Audits: Organizations must implement strict monitoring for unauthorized workflow changes in their dependency trees, as attackers are increasingly targeting the build process itself rather than just the code.
  • Runner Isolation: Consider isolating GitHub Actions runners or using self-hosted runners with restricted permissions to prevent potential abuse for external scanning or credential harvesting.
  • Supply Chain Vigilance: Monitor for anomalous activity in package registries and repository commits, particularly for popular libraries, as compromise of a single maintainer can impact thousands of downstream users.

TL;DR

  • 攻击者利用被入侵的GitHub开发者账号,在10个PHP包中植入583个恶意GitHub Actions工作流文件,将开源仓库转化为分布式攻击基础设施。
  • 恶意工作流触发后启动GitHub托管运行器,下载Linux载荷以扫描并 exploits cPanel和WHM服务器中的CVE-2026-41940认证绕过漏洞。
  • 该活动并非通过依赖包执行,而是滥用GitHub Actions作为“机会主义服务器端凭证窃取”平台,旨在收集AWS、数据库及云密钥等高价值数据。
  • 此事件是更广泛供应链攻击的一部分,与代号“Water Curse”的组织有关,同时揭示了GitHub被用作恶意软件分发和僵尸网络指挥控制的新趋势。

为什么值得看

这篇文章揭示了针对CI/CD基础设施(特别是GitHub Actions)的新型供应链攻击模式,表明攻击重心正从传统的代码依赖注入转向滥用自动化运行环境进行横向移动和数据窃取。对于安全从业者和企业而言,这强调了审查第三方仓库工作流配置以及监控异常CI/CD行为的重要性,因为即使不直接安装恶意包,仅查看或触发工作流也可能导致基础设施被劫持。

技术解析

  • 攻击载体与规模:攻击者控制了开发者dinushchathurya的10个PHP包,每个开发版本包含55-62个恶意YAML工作流文件,总计583个文件。这些文件在Packagist同步时自动传播。
  • 执行机制:不同于传统恶意包在用户本地执行,此攻击利用GitHub-hosted runners。当仓库推送或手动触发工作流时,YAML脚本检测CPU架构(x86/ARM),并从C2服务器(43.228.157[.]68)下载兼容的Linux载荷。
  • 目标与漏洞利用:载荷主要扫描易受CVE-2026-41940影响的cPanel和WHM实例,利用该认证绕过漏洞获取管理员权限。
  • 数据窃取范围:一旦获得访问权限,载荷会系统性爬取敏感信息,包括AWS凭证、GitLab/GitHub令牌、OpenAI/Google API密钥、Stripe支付密钥、SSH私钥、数据库凭据及环境变量等,并通过HTTP POST上传至攻击者控制的服务器。
  • 关联活动:研究发现约6,100个工作流文件包含唯一的DNSHook标识符,指向更广泛的攻击网络。此外,Socket还披露了“Operation Muck and Load”活动,涉及200个仓库用于分发Windows恶意软件和门罗币矿工,战术上与Trend Micro追踪的“Water Curse”组织重叠。

行业启示

  • 重构CI/CD安全边界:企业需重新评估对第三方开源仓库的信任模型,特别是针对包含GitHub Actions工作流的仓库。建议实施严格的CI/CD流水线隔离策略,避免在生产环境中直接运行来自不可信来源的工作流。
  • 加强供应链监控与审计:鉴于攻击者利用合法开发者账号进行大规模分发,组织应加强对上游依赖项的持续监控,不仅检查代码内容,还需审计工作流文件的变更历史和行为模式,识别异常的自动化操作。
  • 关注基础设施即攻击面:此次事件表明,云平台提供的开发工具(如GitHub Actions)本身可能成为攻击者的武器化平台。云服务商和安全团队需合作优化默认的安全限制和异常检测机制,防止托管运行器被滥用于扫描互联网基础设施或窃取凭证。

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

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