Railway Breach Postmortem: How an AI-Driven Attack Decrypted Secrets for Up to 100,000 Workspaces
An attacker used AI and stolen code to decrypt secrets for up to 100,000 workspaces after escaping a sandbox.
Overview
An attacker used stolen source codeThe human-readable programming instructions written by developers before they are compiled into a runnable program and AI tools to break into Railway, a platform that hosts software builds. The intruder exploited a flaw in the system's isolation to access internal files and steal a credential. This credential allowed the attacker to read build histories and copy internal code. The attacker also decrypted environment variablesA named setting stored in a program's running environment that often holds file paths or secret keys for up to 100,000 workspaces. The stolen AI keys generated an estimated $740,000 in unauthorized usage. The incident was fully contained on October 21, 2026.
Terms in this story
- source code
- The human-readable programming instructions written by developers before they are compiled into a runnable program. When attackers steal a company's private source code from a repository, they can study it to find hidden vulnerabilities or leaked API keys.
- environment variables
- A named setting stored in a program's running environment that often holds file paths or secret keys. Cloud apps frequently store database passwords and API tokens in environment variables, so an attacker who tricks a server into printing its environment variables can steal those secrets.
- Secrets
- Private credentials used by software, such as API keys, database passwords, and encryption keys. Software teams use vault tools to keep secrets out of source code because anyone who finds a leaked secret in a public repository can log right in to the company's cloud services.
- sandbox escape
- A flaw that lets malicious code break out of an isolated container into the host system. Even if an attacker tricks your browser tab into running code, they usually need a separate sandbox escape bug to reach your personal files or install malware on the computer.
- OIDC
- An identity layer built on OAuth that lets apps verify user logins through a central provider. Many single sign-on portals use OIDC to issue a signed identity token confirming who just logged in and what email address they hold.
- misconfiguration
- An insecure setting in a server, cloud account, or application that leaves data or access exposed. Many major data leaks happen without any clever exploit because an administrator leaves a cloud storage bucket or database open to the public through a simple misconfiguration. Security+ objective 2.3 lists the term
- decryption key
- The secret value that locks or opens a message. Many breach and ransomware stories come down to who holds the cryptographic key, since strong encryption protects data only as long as the key stays secret. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- sandbox
- An isolated test environment where a program can run without touching the rest of the computer. Web browsers run each tab inside a sandbox so a malicious page cannot read your personal files, and analysts detonate suspicious attachments in a sandbox to watch what they do. Security+ objective 4.1 lists the term
- agentic
- Artificial intelligence software that can plan steps, call tools, and take actions on its own. Many stories cover agentic AI when companies connect language models to email, browsers, and databases, creating new risks if a hidden prompt tricks the agent into leaking data.
- encryption
- Scrambling readable data with a mathematical key so only someone with the right key can read it. Online services use encryption to protect credit card numbers in transit, while ransomware gangs use the same math to lock a company's files until a ransom is paid. Security+ objective 1.4 lists the term
- API calls
- A structured interface that lets one software program request data or actions from another program. Mobile apps, websites, and cloud services talk to backend servers through an API, and a poorly protected API can let attackers pull customer records in bulk. Security+ objective 4.7 lists the term
- registry
- A central database of system settings on a computer or a public catalog that hosts software packages. In security news, the registry means either the operating system settings database where malware adds startup entries or a public package registry where developers download code libraries.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the The CyberSec Guru website. Cite the article, not this page.
Read the full article on The CyberSec Guru (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Breach or attack
"Railway Breach Postmortem: How an AI-Driven Attack..." Found by reading the article; these exact words are in it - Who is affected: "Railway..." Transportation
Copied word for word from the article - Security+ 1.4 Explain the importance of using appropriate cryptographic solutions.
"......escape, an OIDC misconfiguration and one exposed decryption key put secrets of multiple workspaces at..." Found in the opening sentences - Security+ 2.3 Explain various types of vulnerabilities.
"......full postmortem: a sandbox escape, an OIDC misconfiguration and one exposed decryption key put secrets..." Found in the opening sentences - Security+ 3.3 Compare and contrast concepts and strategies to protect data.
"Railway Breach Postmortem: How an AI-Driven Attack Decrypted Secrets..." Found in the headline - Security+ 4.1 Given a scenario, apply common security techniques to computing resources.
"Railway's full postmortem: a sandbox escape, an OIDC misconfiguration and one exposed..." Found in the opening sentences - CYBR 101 week 4: encoding, ciphers, symmetric and asymmetric encryption
"......escape, an OIDC misconfiguration and one exposed decryption key put secrets of multiple workspaces at..." Found in the opening sentences - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"Railway Breach Postmortem: How an AI-Driven Attack Decrypted Secrets for Up to..." Found in the headline
How a story is connected to the course, and every objective, week and job role
Same story at other outlets
- Hackers stole AI credentials to get $740,000 in free compute; Railway picked up the bill
- Railway Says Stolen Customer AI Keys Led to $740,000 in Estimated Unauthorized Usage Charges
- Railway breach leads to $740,000 in fraudulent AI charges
- Railway Reveals How Hackers Used AI Agents to Steal API Keys and Rack Up $740,000 in Charges