Preliminary Report: Oct 21st Security Incident
This summary is created by Generative AI and may differ from the actual content.
Overview
Railway identified a security incident on October 20th at 19:53 UTC involving a sustained and targeted campaign to breach internal systems and obtain AI provider API keys for distillation attacks. The attack timeline spanned from October 20th 13:58 UTC (when monitoring detected abnormal activity) through October 22nd 03:32 UTC (when attacker access was confirmed eliminated). The attacker, possessing abliterated models and substantial compute resources, exploited sophisticated vulnerabilities in Railway's infrastructure. Upon detection, Railway disabled build infrastructure and reported potentially impacted secrets to partner vendors including GitHub, GitLab, Anthropic, OpenAI, OpenRouter, SpaceXSI, and Stripe. The attacker gained access to a subset of internal Railway systems and decrypted encrypted secrets for approximately 1.85% of workspaces (about 100,000 workspaces). Railway engaged external incident response experts and authorities for forensic investigation. All Railway access tokens were revoked out of an abundance of caution. The attacker accessed credentials to the CI environment where they could decrypt artifacts containing additional API access. Railway revoked access to identified systems, disabled non-essential internal systems, and eventually confirmed the attacker no longer had access. All existing user deployments remained online throughout the incident. Railway paused new signups during recovery and implemented a new generation of builder infrastructure, encryption, and logging systems.
Impact
Approximately 1.85% of all workspaces (about 100,000 workspaces) had encrypted environment variables potentially compromised. A larger number of users were affected by upstream provider reset requests due to Railway's precautionary notification of all stored keys to external providers. The attacker did not access Railway user accounts. Source code access was not confirmed but not ruled out. During triage, customers experienced interrupted builds and deployments, as well as periods of dashboard, API, CLI, and support unavailability. All existing user deployments remained online and running. New builds and deployments were paused for all customers during the incident response period. Some customers experienced fraudulent AI spend on other platforms using compromised API keys.
Trigger
A sustained and targeted campaign by a malicious actor with access to abliterated models and substantial compute resources, attempting to obtain AI provider API keys to perform distillation attacks against Railway's infrastructure.
Detection
Monitoring systems triggered a page to the engineering on-call at October 20th 13:58 UTC for abnormal system activity in the form of elevated latency. The on-call engineer began research into the suspicious activity, which led to identification of an attempted privilege escalation by a hostile external party in the build infrastructure.
Resolution
Railway immediately began triaging the attack upon detection. Actions taken included: disabling build infrastructure to prioritize user safety; deploying mitigations across build systems and restricting access to affected infrastructure; deploying additional monitoring and forensics to isolate blast radius and neutralize attacker entrypoints; revoking access to identified systems and disabling non-essential internal systems; proactively notifying partner vendors (GitHub, GitLab, Anthropic, OpenAI, OpenRouter, SpaceXSI, Stripe, and others) to revoke potentially compromised keys; revoking all Railway access tokens out of an abundance of caution; reinitializing internal systems with minimal required dependencies, new credentials, and additional hardening; rolling all keys and rerolling them after validating attacker expulsion; engaging external forensics company; accelerating rollout of new generation fourth-generation single-tenant builder infrastructure; rolling credentials for all storage buckets; rebuilding all tooling from validated source; adding functionality to mass revoke Railway application permissions; and implementing other undisclosed mitigations. Enterprise and Pro builds were restored on October 22nd, with full API restoration and normal deployments across all tiers completed by October 22nd 17:00-22:49 UTC.
Root Cause
A sophisticated exploit leveraging privilege escalation vulnerabilities in Railway's build infrastructure, executed by a malicious actor with access to abliterated models and substantial compute resources. The attacker exploited these vulnerabilities to gain initial access, then escalated their access across multiple parts of the Railway system in parallel. The attacker accessed credentials to the CI environment where they could decrypt artifacts containing additional API access, ultimately enabling them to decrypt a subset of encrypted environment variables for customer workspaces. The attack was enabled by insufficient isolation and access controls in the build infrastructure and CI environment, as well as the ability to decrypt artifacts once CI credentials were compromised.
