What happened
Railway said on October 21 that attackers accessed its customer environment variable system and may have decrypted some secrets. It advised all users to rotate credentials, although its preliminary assessment suggested only some users were affected. Deployments remained paused as of shortly after 6 a.m. Beijing time on October 22, complicating rotation because replacement credentials require redeployment to take effect; no restoration time was given.
Why it matters
The deployment pause complicates credential rotation because replacement secrets require redeployment to take effect, creating a potential service interruption if developers revoke existing credentials before deployments resume.
Railway 存密钥的系统被入侵,部分可能已被解密;官方让所有用户立刻换掉全部密钥,部署暂停中
在 Railway 上跑程序的开发者,现在就该把存在 Railway 里的环境变量全部换掉,包括 API 密钥、数据库密码和私有镜像仓库(存放打包好的程序)的登录凭证,再查查这些服务的日志。Railway 10 月 21 日说,存放客户环境变量的系统被外人访问,其中一部分可能已被解密成明文。一周之内,这是第二家替开发者保管 AI 密钥的平台出事。
Railway 是云托管平台,开发者把代码交给它打包、上线、运行。程序要用到很多“钥匙”,比如数据库密码、调用 OpenAI 或 Claude 的 API 密钥(按用量扣费的通行证,谁拿到都能花你的钱)。这些钥匙不写进代码,单独存在平台上,叫环境变量。
【官方说了什么】
Railway 说,初步看受影响的可能只是一部分用户,确认后会发邮件通知,但建议所有人先换。攻击者怎么进来、多少人受影响、密钥怎么被解密,都还没说。
部署全部暂停,谁都发布不了新版本。麻烦在于,换掉的密钥要重新部署才生效;要是先在服务商那边作废旧密钥,线上服务可能会断。先作废还是先等,官方没给建议。截至北京时间 22 日早上 6 点多,连企业版在内的所有用户都还不能部署,恢复时间未定。
【为什么盯上 AI 密钥】
Railway 认为,这次入侵属于最近一系列针对平台公司的攻击,目标是 OpenAI、Anthropic 这类按用量卖模型调用的 AI 推理服务商,它已通知这些公司主动作废相关密钥。它没点名其他受害平台,目前也查不到相关报道。
情况最像的是 AI 编程工具 OpenCode。10 月 16 日夜里,它的网页后台被入侵,1.4% 的用户存的 OpenAI、Anthropic、Google 密钥可能外泄。据 TechCrunch 等报道,有用户一夜被刷了几百到 1700 多美元。OpenCode 说这和一次大规模“蒸馏攻击”有关,也就是拿别家模型的大量回答训练自己的模型。两家都没说彼此有关联。
来源:
Railway 公告:blog.railway.com/p/security-d…
Railway 状态页:status.railway.com/incident/Q…
OpenCode 事件(TechCrunch):techcrunch.com/2026/10/19/hac…
An urgent notice from the Railway team
The story so far
Railway said attackers accessed its customer environment variable system and may have decrypted some secrets; it urged all users to rotate credentials, but deployments remained paused as of shortly after 6 a.m. Beijing time on October 22. Railway’s preliminary assessment suggested only some users were affected, though its rotation advice applied to everyone. The deployment pause complicated that advice because replacement credentials require redeployment to take effect.
Catch every AI shift in one morning briefing
Model releases, price cuts, and compute shifts with original sources. Free, confirmed by email, unsubscribe anytime. Read a past issue
