Railway Oct 21 Security Incident: What the Report Says

An attacker hunting AI API keys reached Railway's internal systems. Here is how to read the scale figures, why vendors revoked keys you may never have lost, and what to rotate first.

Binary Buddies · 5 min read · 4 views

Between 20 and 22 October, an attacker had access to a subset of Railway's internal systems. Railway now says encrypted environment variables belonging to at most 1.85% of workspaces, about 100,000 workspaces, were potentially exposed. Its preliminary report on the October 21st security incident also says the attacker's goal was AI provider API keys, which would be used for distillation attacks against the model vendors themselves.

For anyone running production workloads on Railway, the question is narrower than 'was there a breach'. You need to know which of your secrets you have to treat as burned, what the platform has changed, and what the report does not yet tell you. Railway's own recommendation is broad: every customer who signed up before 21 October should rotate the keys they store on the platform, whether or not they were notified.

This piece covers what the report establishes, how to read the scale figures, and what the remediation work looks like for a team holding third-party credentials in a PaaS. The forensic investigation is still ongoing, so some of the most useful details are not public yet.

The timeline Railway has published

Railway gives four timestamps. The attack window is believed to have opened on 20 October at 13:58 UTC. Railway became aware of what it calls 'a sustained and targeted campaign to attack and breach our services' at 19:53 UTC the same day, almost six hours later. On 21 October at 09:25 UTC it knew keys had been accessed and began working with vendors to revoke them. At 03:32 UTC on 22 October it confirmed the attacker no longer had access to any internal systems.

The gap between first activity and detection is worth noting. It is shorter than many disclosed breaches, but six hours is enough time for a determined attacker inside an internal system. The other gap matters more to customers. Detection came at 19:53 UTC on the 20th, and confirmation that keys had been accessed came at 09:25 UTC on the 21st. Until the second timestamp, Railway was triaging without knowing whether customer secrets had been decrypted.

Railway has brought in external incident response experts and the authorities. It has said a follow-up document will come when the investigation concludes.

What the attacker was after

Early investigation points to one objective: AI provider API keys, which would be used to run distillation attacks. In a distillation attack, someone queries a frontier model at scale to train a cheaper copy of it. That needs a large volume of paid API calls, and other people's keys make those calls free to the attacker. A platform that stores environment variables for many AI-heavy applications is a concentrated source of those keys.

Railway also says initial evidence suggests the actor had access to abliterated models (open models with their refusal behaviour stripped out) and substantial compute. It credits these with enabling 'highly sophisticated exploits' against its infrastructure. It has not described the exploits themselves, citing the ongoing investigation and customer protection. So the claim that AI tooling drove the intrusion is Railway's attribution, and it cannot be independently checked yet.

The motive shapes the risk model. Forensics on the attacker's behaviour suggested a search for high-value targets. Railway describes two risk buckets: workspaces with a very large number of environment variables, and environments holding many AI vendor keys. If your workspace fits either description, assume you were looked at, whether or not you received a direct notice.

Reading the 1.85% figure

Railway says its system is designed so that compromising one set of keys does not compromise everything. On that basis, it validates that at most 1.85% of workspaces had some environment variables potentially compromised, about 100,000 workspaces in absolute terms. 'At most' and 'potentially' are doing real work in that sentence. Railway also says it could not determine which specific variables were decrypted.

That uncertainty explains why the notification net is wider than the 1.85%. Railway is contacting three groups:

  • Customers with definite impact.
  • Customers it considers high risk based on the attack pattern. This group is larger than the 1.85% of workspaces.
  • Every user whose keys it handed to upstream providers. Railway escalated those reset requests up to 'all of the keys we stored, for all users on Railway', so the number of users affected by provider reset requests is larger than 100,000.

The practical consequence: a revocation email from GitHub, an AI vendor or a payment provider does not mean your credential was stolen. Railway says this explicitly. Not receiving a Railway notice does not mean you are clear either, which is why the blanket rotation recommendation exists.

Which vendors revoked keys, and why that broke things

Railway names GitHub, GitLab, Anthropic, OpenAI, OpenRouter, SpaceXSI and Stripe among the vendors it worked with, 'and others'. For GitHub and SpaceXSI specifically, it supplied every API key present on the platform, not only the ones known to be at risk. That is the conservative choice. It closes the window on stolen keys fast, at the cost of breaking working integrations for customers who were never touched.

If your services started failing on 21 or 22 October with authentication errors from an upstream API, this is the most likely cause. A key revoked by the vendor fails exactly like a typo'd key: 401s from the AI provider, failed webhook signature checks, deploy keys rejected by the Git host. Teams that discovered the incident through an outage, rather than through an email, were probably in this group.

Treat any revoked key as gone. Issue a new one at the vendor, update it in Railway, and redeploy. Do not try to reinstate the old one. Even if your workspace was outside the potentially exposed set, the old value has been through an incident pipeline you have no visibility into.

What stayed up and what did not

Railway disabled its build infrastructure during triage to protect users. New builds and deployments were paused for every customer. Running deployments stayed online throughout, so production traffic to already-deployed services continued. Customers also saw periods where the dashboard, API, CLI and support were unavailable.

For an operator, the awkward combination was this: you could not ship a fix while you were being told to rotate credentials. If a rotated secret needed a redeploy to take effect, you were waiting on the build pipeline to come back. Railway reports that builds for all tiers are now restored, so that constraint has lifted.

It is worth checking whether your team has a path to rotate a credential without a full rebuild. Some designs read secrets at startup only, others reload them at runtime. This incident showed which one you have.

The remediation list, and how to work through it

Railway's recommendations for all customers are:

  • Remove public network access to databases.
  • Rotate any sensitive variables and keys, specifically those stored on Railway before 21 October.
  • Check your GitHub account audit logs and review all app access.
  • Check audit logs in your container registries, such as Docker Hub.

Railway has also published guides on checking for anomalous activity and rotating credentials across various tools, and takes questions at support@railway.com. Given the attacker's stated target, start with AI provider keys. Look at usage dashboards for volume spikes or unfamiliar models in the window from 20 October onwards, then rotate. Payment and source-control credentials come next, since they carry the most consequence if misused. Database credentials that were exposed alongside a public endpoint should be rotated and the endpoint closed in the same change.

One point is easy to miss. Railway says the attacker did not access Railway user accounts. It does not rule out access to user source code, and it will confirm in the final report. Until then, treat any secret committed to a repository deployed on Railway as being in scope too. Hard-coded keys are not covered by the environment-variable analysis.

What Railway has changed on its side

Railway lists the following actions so far. It shut down potentially compromised internal tooling once it saw suspicious activity. It rolled all of its keys, then rolled them again after validating that the intruder was out. That second roll guards against an attacker who had captured the first set of new keys. It also engaged an external forensics company.

The structural change is the build layer. Railway has rolled out a new generation of builder infrastructure, moving from its third-generation isolated multi-tenant builders to fourth-generation single-tenant environments. Single-tenant builders reduce what one compromised build environment can reach. The report has not said whether the builders were the entry point, so do not read the change as confirmation of where the breach started.

Railway frames this as a response to the pressure vendors face from 'new found cyber threats'. It says it is refining both its platform and its corporate security posture.

Where to be careful with this report

This is a preliminary document, and it says so. It does not name the initial access vector or the specific exploits, and it gives no breakdown of which variable types were decrypted. Any post-mortem you write internally should mark those as unknown rather than filling them in. The final report may change the source-code question in particular. That changes the remediation scope for anyone with credentials in a repository.

The 1.85% figure depends on Railway's key compartmentalisation working as designed. That is a reasonable claim, but customers cannot verify it, and Railway's own response treats it cautiously: it rotated everything at the vendors and recommends rotation for everyone. Use the same posture yourself. Do not rely on 'probably not in the affected set' as a reason to skip rotation.

Finally, this incident does not show that a PaaS is the wrong place for secrets. It shows the cost of long-lived static keys held anywhere. Where your vendors support short-lived credentials, scoped tokens or per-environment keys with spend limits, the next forced rotation is cheaper and a stolen key is worth less. Where they do not, keep an up-to-date inventory of which key lives where, so a rotation takes hours instead of days.

  • #AI API keys
  • #Railway security incident
  • #credential rotation
  • #distillation attack
  • #environment variables
  • #security

Comments

Add a comment
Sign in with Google to join the conversation