Incident Report: October 21st Security Attack
This summary is created by Generative AI and may differ from the actual content.
Overview
On October 20-21, 2026, Railway suffered a large-scale security attack. An attacker exploited a previously unknown vulnerability in Railway's build infrastructure to partially escape filesystem isolation at 07:28 UTC on October 20th, gaining access to a build credential. The attacker used this credential to access Railway's internal Temporal instance and retrieve build histories containing environment variables and secrets. The attacker obtained a copy of Railway's internal monorepo, enabling them to identify additional escalation pathways. At 03:26 UTC on October 21st, the attacker exploited an erroneous OIDC binding configuration to gain access to short-lived cloud credentials, which they used to retrieve longer-lived internal credentials and SSH keys. Between 04:07 UTC and 05:21 UTC on October 21st, the attacker accessed Railway's database and decrypted a subset of customer environment variables, specifically targeting AI provider credentials. The attacker was fully evicted from Railway's systems at 09:24 UTC on October 21st. At most 1.85% of workspaces (approximately 100,000) could have had environment variables decrypted. The attacker also read stored histories of 353 builds and obtained linked-account tokens for 1,852 users. Unauthorized spend on stolen AI provider keys was estimated at approximately $740,000. Railway halted builds, rotated credentials, invalidated all user sessions and tokens, and deployed new hardened build infrastructure.
Impact
At most 1.85% of workspaces, approximately 100,000, could have had environment variables decrypted. The attacker read stored histories of 353 builds containing sealed variables. Linked-account tokens (BYOK agent keys and GitHub OAuth tokens) for 1,852 users were compromised. Unauthorized spend on stolen AI provider keys was estimated at approximately $740,000. Customers experienced service disruptions including builds being halted from October 20th 17:03 UTC until October 22nd 22:49 UTC, GitHub login unavailability, API tokens and project tokens invalidation, service SSH unavailability, and all user sessions invalidated. Some customers experienced downtime because they could not redeploy services with new credentials during the build pause.
Trigger
The initial trigger was a previously unknown vulnerability in Railway's build infrastructure that allowed partial escape of filesystem isolation. The attacker exploited this vulnerability at 07:28 UTC on October 20th to read files on the host virtual machine and obtain a build credential. A secondary trigger was an erroneous OIDC binding configuration in one of Railway's cloud environments that allowed the attacker to gain access to short-lived cloud credentials at 03:26 UTC on October 21st.
Detection
An alert on multiple anomalous API calls to a registry service that stores artifacts from completed builds paged the engineer on-call at 13:58 UTC on October 20th. The on-call engineer determined these calls were not part of normal platform operation and investigated the root cause, tracing the calls back to a compromised build credential and the build where the attacker partially escaped isolation. From the moment the root cause was identified as an isolation escape, the response team started 24/7 observation of the attacker through collected signals including audit logs, traces, and other instrumentation.
Resolution
Railway engineering worked around the clock in shifts from the initial exploit at 07:28 UTC on October 20th through 09:24 UTC on October 21st when the attacker was fully evicted. The response team merged an underlying fix for the partial isolation escape, halted builds, and hardened infrastructure including isolating the attacker. At 17:28 UTC on October 20th, Railway revoked and replaced the build credential and restricted what services build servers could reach. At 07:14 UTC on October 21st, Railway disabled all active cloud credentials, revoked all static credentials, disabled access to the key decryption service, and shut down various parts of the Railway platform. At 07:22 UTC on October 21st, Railway disabled builds for all customers again. Railway rotated all credentials used within tooling and infrastructure, bootstrapped new PKIs, instantiated a new root CA, rebuilt internal tooling systems from validated source, and reprovisioned machines, services, and accounts where threat actor access was suspected. Railway deployed new hardened build infrastructure with dedicated ephemeral virtual machines for each build and significantly increased isolation layers. Builds were restored starting October 22nd at 03:32 UTC for Enterprise workspaces, followed by Pro workspaces at 06:29 UTC, Hobby builds at 21:08 UTC, and Free and Trial builds at 22:49 UTC. Railway notified affected AI providers starting at 09:25 UTC on October 21st and worked with providers to revoke potentially compromised keys and refund unauthorized token spend.
Root Cause
The root causes were: (1) A previously unknown vulnerability in Railway's build infrastructure that allowed partial escape of filesystem isolation, enabling the attacker to read files on the host virtual machine and obtain a build credential. (2) Railway's internal Temporal instance accepting the build credential as a trusted client and allowing the attacker to call APIs intended for Temporal clients, enabling the attacker to read stored histories of other builds containing environment variables and secrets. (3) The build credential having access to fetch snapshots of repository state used for caching, allowing the attacker to retrieve a copy of Railway's internal monorepo. (4) An erroneous OIDC binding configuration in one of Railway's cloud environments that allowed the attacker to exchange the configuration for short-lived cloud credentials. (5) Internal credentials and SSH keys being stored on an orchestration machine that the attacker could access using the short-lived cloud credentials. (6) The orchestration machine having access to the internal VPC network connected to the database storing envelope-encrypted variables, and having a file on disk containing a longer-lived credential allowing decryption of encrypted variables. (7) Insufficient privilege separation and access controls on internal service accounts and credentials.
