Impresiv, AutomationImpresiv
文档社区博客价格MCP
登录
    BlogCybersecurity

    Cybersecurity

    黑客入侵Elixir和Erlang的软件包中心Hex.pm,漏洞在代码中潜伏10年,团队称密码可能已暴露

    攻击者11月23日在Hex.pm的六台服务器上执行了命令。未发现软件包被改动,但团队不能排除邮箱、密码哈希和2FA密钥被读取,并要求所有用户重置。

    IImpresiv Team
    November 28, 2026 1 min read Updated November 29, 2026
    The Elixir programming language logo: a purple droplet shape beside the lowercase word elixir. Listed as public domain on Wikimedia Commons, used only to identify the ecosystem

    Elixir和Erlang语言的主要包管理器Hex.pm在11月23日遭到入侵,运营方现在要求所有用户更改密码并重置双重身份验证。据Hex.pm incident report,一名未经授权的第三方利用漏洞,在网站的网络服务器上执行了命令。团队称已阻断流量并在20分钟内部署修复,未发现软件包被改动的证据,但也不能排除攻击者读取了数据库中的数据。Risky Bulletin于11月27日报道了此事。

    发生了什么

    据事件报告,攻击者在UTC时间18:16至18:29向hex.pm发送了69个恶意请求。六台网络服务器受影响,部分原因是18:28的重启启动了三台仍运行易受攻击版本的新服务器。18:27添加了防火墙规则,18:31前所有服务器都换成了已修补的版本。该漏洞编号为CVE-2026-129514,Risky Bulletin称其获得满分10分的严重等级。

    Hex团队把根本原因追溯到请求解码器。Hex.pm用一个本应阻止有害项的函数解码Erlang二进制格式的未认证请求体,但该检查放过了“struct”值,即带有特殊键的映射。报告描述了一条链:精心构造的struct引发错误,错误报告随后检查这些数据,经由两个库最终执行了攻击者选定的命令。git历史显示该安全检查在2016年2月23日被移除,因此据团队说,这个弱点存在了约十年。

    可能暴露了什么

    团队未发现软件包或数据库被未经授权改动。它恢复了首个恶意请求之前的数据库副本,并把每一行与线上数据库对比,称事件期间发布的23个版本都与审计日志一致。但数据库读取不被记录,因此无法排除邮箱地址、密码哈希、API密钥哈希、2FA密钥、会话和审计日志被访问。团队称,从被入侵服务器读取私有包看起来会像自己的读取,所以无法完全排除,并将直接联系受影响的组织。API密钥是128位随机值,以HMAC-SHA256存储,团队认为暴力破解无法触及。密码使用bcrypt,会减慢猜测,但对弱密码无法阻止。

    攻击者的命令可以读取服务器使用的凭据,因此团队更换了存储、CDN、邮件和数据库凭据,以及签发会话和令牌的密钥。这使所有人都被登出hex.pm和Hex客户端。团队向瑞典数据保护机构报告了个人数据泄露,并通知了CISA和ENISA。

    用户该怎么做

    报告要求用户更改hex.pm密码,在账户安全页面重置2FA(会生成新密钥和新恢复码),并在几天内带有新签名系统的版本发布后更新Hex客户端。在此之前,避免使用第三方镜像,只从repo.hex.pm获取软件包。由于邮箱地址可能已暴露,对自称来自Hex的邮件要谨慎,并确认链接指向hex.pm。可疑邮件可转发至security@hex.pm。

    Ash中的相关漏洞

    调查期间,团队在Elixir框架Ash中发现了同类漏洞。它的键集分页接受客户端提供的游标中精心构造的struct,可能导致命令执行或SQL注入。Ash团队于11月24日发布了3.38.0版本修复,编号CVE-2026-124283。使用Ash的开发者应检查版本。

    接下来关注什么

    关注带密钥轮换的新Hex客户端发布、针对plug_crypto、plug、ecto和db_connection的加固修复,以及事件报告的更新。团队称会随调查进展更新。

    为什么重要

    包管理器位于软件供应链的源头,那里被入侵会让所有依赖它的项目担忧。好消息是团队详细公开了检查过程,并未发现软件包被改动。警示是,一个十年前被移除的安全检查仍然打开了大门。本文汇总运营方自己的报告和一份新闻简报,不构成针对您系统的安全建议。

    封面图片:Elixir编程语言标志,在Wikimedia Commons上标为公有领域。Elixir名称和标志为注册商标,图片仅用于标识该生态,不代表任何背书。

    cybersecurity
    hex-pm
    elixir
    erlang
    supply-chain
    data-breach
    software-security
    Share this article

    Stay ahead

    Automate your security checks with Impresiv.

    Get alerts, log incidents and route them to the right people automatically — no code required.

    Start building free See pricing

    On this page

    17%
    • 发生了什么
    • 可能暴露了什么
    • 用户该怎么做
    • Ash中的相关漏洞
    • 接下来关注什么
    • 为什么重要

    Keep exploring

    Continue reading

    All articles
    Aerial view of the Pentagon building in Arlington, Virginia, with the Potomac River and Washington Monument behind it. US Department of Defense photo, public domain. Illustrative only
    Cybersecurity

    Hackers got into the US Air Force's flagship cloud, Cloud One, Reuters reports, and nobody will say how much they took

    Reuters, citing five anonymous sources, says hackers breached Cloud One, the Air Force's main cloud platform, reaching its control plane. The scope and the attackers are unknown, and the Air Force will not comment. Not security advice.

    IImpresiv Team
    November 29, 2026 4m
    Close-up of colorful source code on a dark screen. Illustrative photo by Martin Vorel, CC BY-SA 4.0, not 1Password's code
    Cybersecurity

    1Password was breached through one employee's hijacked GitHub account: customer names, emails and recovery tokens were stolen, but vaults were not

    1Password says an attacker took over an employee's GitHub account, pushed malicious code to backend services and copied account records for a subset of customers. The company says vaults and keys were not touched. A root cause report is due.

    IImpresiv Team
    November 29, 2026 4m
    Evening view of Tokyo skyscrapers with the green-domed National Diet Building lit up at center. Illustrative archive photo by Daderot, CC0
    Tech Policy

    Japan wants to give its AI law teeth: a draft would make OpenAI, Anthropic and other frontier AI firms stop cyberattacks, report incidents and obey orders

    A Japanese government panel outlined an amendment to the country's AI law that would add penalties, incident reporting and cyberattack safeguards for advanced AI providers, with OpenAI and Anthropic apparently in mind.

    IImpresiv Team
    November 28, 2026 4m
    Impresiv, AutomationImpresiv

    少些重复,多些 Impresiv。

    获取移动应用

    下载于App Store获取于Google Play

    产品

    • 文档
    • 价格
    • MCP
    • 博客
    • 社区

    对比

    • n8n vs Impresiv
    • Zapier vs Impresiv
    • Make vs Impresiv

    联系

    • support@impresivai.com
    • +6285136538145
    • 预约通话

    法律

    • 隐私
    • 条款
    • 退款

    © 2026 Impresiv. All rights reserved.

    Indonesia

    Impresiv