Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore
Security NewsNews Explainer

Railway Breach: What to Rotate, in What Order, and What to Check

Railway's incident report confirms stolen keys and a 1.85% workspace upper bound. See the secret rotation order and provider log checks.

By
Brandefense Research Team
Reviewed by
Brandefense Analyst Team
Published
23 October 2026
Updated
17 November 2026
Reading time
7 min read
Dark glass vault drawer of keys left ajar with red neon lines, cover art for: Railway Security Incident: Rotate Your Secrets Now

Railway published its detailed incident report on 10 November 2026. An external forensic investigation remains ongoing.

On 21 October 2026 Railway, a cloud platform for deploying apps and databases, told users that an unauthorized third party may have read encrypted environment variables and, for some of them, obtained the decrypted contents. Railway says these variables may hold API keys, database credentials and registry credentials. The incident illustrates how supplier-held credentials can create downstream risk. This fits the definition of a supply chain attack: a service you trust held your secrets.

Railway Breach Rotate Secrets Checklist: What the 10 November Report Confirms

Report update, 10 November 2026: Railway published its detailed account of the October attack. Railway says a specialist forensic investigation remains ongoing.

Railway traces initial unauthorized access to its build infrastructure at 07:28 UTC on 20 October. Its engineers received an alert at 13:58 UTC and began containment. Railway says the attacker found a second route into its cloud environment at 03:26 UTC on 21 October.

The report says the attacker obtained and decrypted a subset of customer environment variables. Railway says the actor was fully evicted by 09:24 UTC on 21 October. Its investigation found no customer-data access beyond 09:25 UTC that day.

Railway’s logs show that at most 1.85% of workspaces, about 100,000, could have had any variables decrypted. That is an upper bound on environments, not a count of individual secrets or confirmed affected customers. The attacker also read histories of 353 builds, including sealed variables.

Railway says the decrypted data included linked-account tokens for 1,852 users, including BYOK agent keys and GitHub OAuth tokens. It reset those tokens and notified the users. Railway says it found no Railway-account logins using credentials taken in this incident.

Railway estimates unauthorized spending on stolen keys at approximately $740,000. It says its forensic analysis points to AI provider keys as the main target. The report does not establish whether the original intruder operated services that later used or resold the keys.

Railway restored builds to every plan by 22:49 UTC on 22 October and reopened new signups on 2 November. Its report does not withdraw the advice to rotate platform-held secrets. The rotation order and provider log checks below remain relevant for customers.

The exposed variables illustrate credential compromise. Railway’s preliminary account described an attempted privilege escalation in its build infrastructure. Our Railway security incident timeline tracks the notices. Northflank separately disclosed a platform incident on 30 October; see our Northflank secrets rotation guide.

Where Your Secrets Live on Railway

Start by listing every place a secret can sit, and include supplier-held credentials in your third party risk management platform review. Railway’s security guides point to these:

  • Service variables and shared project variables, including pasted connection strings.
  • Database credentials such as DATABASE_URL, DATABASE_PUBLIC_URL and REDIS_URL.
  • Cloud keys: an AWS access key pair or a Google Cloud service account key file.
  • Payment and AI keys, for example Stripe, OpenAI, Anthropic, Grok and OpenRouter.
  • Private registry credentials, including a GitHub personal access token used to pull from ghcr.io.
  • Copies outside Railway, such as local development, CI jobs and BI tools that use the public database URL.

In What Order to Rotate

Railway’s guides do not rank the steps. The order below is ours: keys that can spend money or reach other systems go first, because they work from anywhere. Create the new value first, then deploy it, then retire the old one.

  1. Save evidence. Export the logs you will need before you delete anything. Railway’s GitHub guide says to export the audit log before you revoke anything, and its Stripe guide says to export evidence before you clean up. Audit log retention in a Railway workspace depends on your plan.
  2. Cloud, payment and AI keys. Replace each one at the provider:
    • AWS: create a second key, then deactivate the old one instead of deleting it, so you can reactivate it briefly if a forgotten service breaks.
    • Google Cloud: create a new service account key and disable the old one with the gcloud CLI, because the console cannot disable keys.
    • Stripe: rotate the key and choose Now as the expiry for a confirmed leak, or a window long enough to redeploy for a precautionary rotation. Rotate every other secret and restricted key on the account too, and update any webhook signing secret you rotate.
    • OpenAI and Anthropic: delete the key and create a new one. Grok and OpenRouter: disable the key, which keeps its history for review, then create a new one.
  3. Database passwords. In the Database tab, use Regenerate. Do not edit the password variable by hand or run ALTER USER yourself, because that leaves the database and its variables out of sync.
    • Regenerate restarts the database and drops every open session.
    • Then redeploy every service that references it.
  4. Tokens and registry credentials. Reconnect GitHub in Account Settings. Delete old ghcr.io tokens on GitHub, create a new one with the read:packages scope and add it to the service. Create new Railway API tokens.
  5. Everything else. Replace pasted values with reference variables, so the next rotation reaches every service by itself.

Containers read variables only at startup. A service keeps using the old value until you redeploy it, so a rotation is not finished until each consumer has restarted.

What to Check in Your Logs

A rotation stops future access. It does not tell you whether the old secret was used. Railway’s guides give these checks per system.

  • AWS: search CloudTrail event history by the access key ID, in every Region. Look for RunInstances, CreateUser, CreateAccessKey, AttachUserPolicy, CreateRole and PutBucketPolicy. Download the IAM credential report and compare Cost Explorer with the previous month.
  • Google Cloud: in Logs Explorer, filter on the service account’s principal email. Look for new service accounts or keys, IAM bindings, Compute Engine instances, storage buckets and project SSH keys. Compute, GPU and Vertex AI charges are the common targets.
  • GitHub: read your security log (kept 90 days) and your organization audit log (kept 180 days). Review OAuth apps, SSH keys, personal access tokens, deploy keys and webhooks. An attacker with push access can add a webhook or secret that outlives a password reset.
  • Stripe: open the request logs of the old key. Review charges, refunds, payouts, bank accounts, webhook endpoints and team members you did not add.
  • PostgreSQL: after the rotation, list sessions in pg_stat_activity. Any session you do not recognize connected with the new password, so find out where it got it. Also check deploy logs for password authentication failed errors.

What the Report Resolves and What Remains Open

Railway’s report establishes the initial access window, the upper bound on potentially decrypted workspaces, and the linked-account token count. It says it has no indication that customer repository snapshots were downloaded. The company has not named the actor, and an external forensic investigation is still underway.

Brandefense Blackhole recorded 1,505 Railway mentions in monitored cybercrime channels from 14 August to 12 November 2026. This is a discussion count, not evidence of additional compromise or attribution. Customers should use provider logs and Railway’s notices to assess their own exposure.

Next Steps for Your Security Team

Treat platform-held secrets as third-party risk. Keep a list of which vendors hold which of your credentials, and who can rotate them. Our supply chain attack and vendor risk use case shows how to track that outside access.

Public databases are the quickest wins to close. Railway’s guides say to remove public access when nothing outside the project needs it. Also, external attack surface management can show which of your endpoints are reachable from the internet.

AI keys deserve a second look. Our LiteLLM 1.107.0 response checklist covers a compromised AI gateway release whose malware went after model provider keys. For the wider habit of watching for exposed secrets, see our glossary entry on leaked credentials.

Frequently Asked Questions

Do I need to rotate secrets if Railway has not emailed me?

Railway recommends that all users roll their variables as a precaution. In its 10 November report, Railway says it emailed customers whose credentials were at high risk of theft based on its forensic analysis. An absent email is not proof that your secrets were safe.

Which Railway tokens are already invalid?

Railway says it invalidated all API tokens and Project Tokens created before the incident, reset bucket credentials and removed the GitHub tokens it held. Create new tokens and reconnect GitHub.

Why do I have to redeploy after rotating a secret?

Railway's guides say containers read variables only at startup. A service keeps the old value until it is redeployed.

Has Railway named who is behind the attack?

No. Railway's 10 November report says its forensic analysis points to AI provider keys as the main target, but it does not identify the actor. The external forensic investigation remains ongoing.

Sources

  1. Railway Blog: Incident Report, October 21st Security Attack
  2. Railway Status: Railway Platform Outage
  3. Railway Blog: Rotate PostgreSQL Database Credentials
  4. Railway Blog: Redeploy Buckets and Reconnect GitHub After the Credential Reset
  5. Railway Blog: Check for Anomalous AWS Access
  6. Railway Blog: Check for Anomalous GCP Access
  7. Railway Blog: Check for Anomalous GitHub Access
  8. Railway Blog: Check for Unexpected Usage in Stripe
Share this articleLinkedInXEmail
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →