leaklatch
  1. Home
  2. Railway breach guide

Breach guide. Updated 1 November 2026

Was your key stored on Railway? Rotate these, in this order.

Between 20 and 22 October 2026 an attacker decrypted a subset of Railway customers' environment variables. Railway said the goal was AI provider keys. This page says what to rotate, in which order, and how to do it without downtime.

What happened

  • An attacker escalated privilege in Railway's build infrastructure, took CI credentials, and queried encrypted customer environment variables. A subset was decrypted.
  • Railway asked every customer who signed up before this date to rotate all keys, and asked GitHub, GitLab, Anthropic, OpenAI, OpenRouter, Stripe and others to revoke keys broadly. At most 1.85 percent of workspaces, about 100,000, were affected. Railway did not say which.
  • Deployments were paused and every Railway API token was invalidated. Users who rotated keys could not redeploy while the pause lasted. Some reported Anthropic keys hitting their spend cap within a day, and OpenRouter disabled keys linked to Railway on its own.

Do I have to rotate if Railway did not email me? Yes, if you signed up before 21 October 2026. Railway did not say which workspaces were decrypted, so treat every variable as exposed.

In what order

Order by how fast a stolen key turns into money or damage. A stolen AI key becomes a bill in hours. A stolen database password needs network access first.

  1. AI provider keys

    OpenAI, Anthropic, OpenRouter, Google. These were the stated target. One stolen provider key cost a research lab about 600,000 dollars of credits in three weeks because it had no spend cap. Set a cap on the new key.

  2. Payment keys

    Stripe secret keys (sk_live_…), restricted keys (rk_live_…) and webhook signing secrets. Stripe keys found in the open have been used for test charges within 17 hours.

  3. Cloud keys

    AWS access keys and any other cloud provider's long-lived keys. Check what each key can do before you replace it, and give the new key less.

  4. Source control tokens

    GitHub and GitLab personal tokens and deploy keys. A stolen token can read every private repo, which holds more keys.

  5. Databases and everything else

    Connection strings, Redis URLs, email provider keys, signing secrets for sessions and JWTs. Rotating a session secret signs everyone out, so do it last and tell your users.

How to rotate without taking production down

Revoking first is what caused outages during the incident. The order for every key is the same.

  1. Create the new key at the provider

    The old key still works. Nothing is down.

  2. Write the new key to the environment store

    Every environment of every project that used the old one. Missing one is the usual cause of a partial outage.

  3. Redeploy and check health

    Watch the service start with the new key and make one real request through it.

  4. Revoke the old key

    Only now. If something breaks, the new key is already in place and the fix is a config change, not a scramble.

How to check whether a key was used

Look at each provider's own log for the days since 20 October 2026. You are looking for calls from places or at volumes you do not recognise.

  • OpenAI and Anthropic: the usage page, by day and by key. A new daily high is the sign.
  • Stripe: the events log. New customers, charges, payouts or account changes you did not make.
  • AWS: CloudTrail, filtered by the access key id. New regions, new services, CreateUser or CreateAccessKey.
  • GitHub: the security log and the audit log for the org. New SSH keys, new tokens, repos cloned from a new IP.

If you find use you did not make, the rotation above still applies..

Free breach-day check

Tell us which platform held your keys. We reply with a rotation checklist for your stack, and run the key check with you on a call. No key is ever pasted or sent.

Questions

Do I have to rotate my keys if Railway did not email me?

Yes, if you signed up before 21 October 2026. Railway asked every customer who signed up before that date to rotate all keys. Railway said at most 1.85 percent of workspaces had variables decrypted, but did not say which ones, so treat every variable as exposed.

In what order should I rotate the keys?

AI provider keys first (OpenAI, Anthropic, OpenRouter, Google), because they turn into bills within hours. Then payment keys (Stripe secret and restricted keys, webhook signing secrets). Then cloud keys (AWS access keys). Then source control tokens (GitHub, GitLab). Then database passwords and connection strings, then everything else.

How do I rotate a key without taking production down?

Create the new key at the provider first. Write it to the environment store. Redeploy and check that the service is healthy. Only then revoke the old key. Revoking first is what caused outages during the Railway incident.

How do I know if a stolen key was already used?

Check the provider's own usage or event log for the days since 20 October 2026: the usage pages for OpenAI and Anthropic, the events log in Stripe for new customers, charges and payouts, CloudTrail for AWS, and the security log for GitHub. Look for calls from places or at volumes you do not recognise.

Sources: Railway's preliminary incident report, TechCrunch's report of 22 October 2026, and the Wiz summary of October 2026 platform breaches.