Cybersecurity news

Jessica Doner

Back to the list

Railway Reveals How Hackers Used AI Agents to Steal API Keys and Rack Up $740,000 in Charges

Cyber Security News,

A hacker used AI agents and system flaws to steal keys and generate unauthorized charges, according to a report on the incident.

AI and securityVulnerabilities and patches

Overview

A hacker used AI agentsArtificial intelligence software that can plan steps, call tools, and take actions on its own and a build system flaw to steal API keysA secret string a program sends with an API request to identify itself and get access from Railway, a cloud platform, and generate $740,000 in unauthorized charges. The attacker exploited a weakness that allowed them to escape file isolation and access internal credentialsThe login details, such as a username and password or key, that prove who an account belongs to, which gave them permission to read stored histories from 353 builds. This access exposed Railway's internal codebaseThe complete collection of source code files used to build a software application or system, enabling the AI agents to search for additional weaknesses and test multiple routes simultaneously. A separate error in cloud trust configurationA text file that stores settings, network addresses, and options for how a program or server runs later exposed a short-lived credential, allowing the attacker to retrieve an SSHAn encrypted network protocol that administrators and developers use to log in to remote servers and run commands private keyThe key only its owner holds and enter a machine with access to the productionThe live servers and databases that real customers actually use, as opposed to internal test machines databaseAn organized digital store of structured records, such as customer accounts, orders, or messages, queried by software. The attacker then used a key management service to decryptTurn ciphertext back into plaintext with the key environment variables, specifically searching for AI provider key names. Up to 1.85% of workspaces, roughly 100,000, could have had their environment variables decrypted.

Terms in this story

AI Agents
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.
API Keys
A secret string a program sends with an API request to identify itself and get access. Software teams sometimes accidentally upload an API key to a public code repository, allowing attackers who scan for leaked keys to rack up cloud bills or read private databases. Security+ objective 4.6 lists the term
Keys
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)
exploit
A piece of code or technique that uses a software flaw to break into or crash a system. Finding a vulnerability is only the discovery of a weakness, whereas an exploit is the working code or sequence of inputs that triggers that weakness in practice. Security+ objective 2.4 lists the term
credentials
The login details, such as a username and password or key, that prove who an account belongs to. Many breaches begin when attackers steal an employee's login credentials through a fake website and sign in to the company network as if they belonged there. Security+ objective 4.6 lists the term
codebase
The complete collection of source code files used to build a software application or system. Security teams run automated scanners across a company's codebase to catch hardcoded passwords, outdated dependencies, and injection flaws before changes ship to production.
configuration
A text file that stores settings, network addresses, and options for how a program or server runs. Attackers who gain read access to a server look for its configuration file first because it often contains database passwords, API keys, and internal server paths.
SSH
An encrypted network protocol that administrators and developers use to log in to remote servers and run commands. Attackers constantly scan the internet for servers with open SSH ports and weak passwords, while defenders protect SSH access with cryptographic keys instead of passwords.
private key
The key only its owner holds. When attackers steal a company's private key in a breach, they can sign malware so computers trust it or impersonate the company's website to intercept customer traffic. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 2); Security+ objective 1.4 lists the term
production
The live servers and databases that real customers actually use, as opposed to internal test machines. A bug or breach in a company's production environment directly affects live users and real customer records.
database
An organized digital store of structured records, such as customer accounts, orders, or messages, queried by software. Behind almost every website and mobile app sits a database, and attackers target misconfigured or unpatched databases to copy millions of user records at once.
decrypt
Turn ciphertext back into plaintext with the key. Authorized users decrypt protected messages or drives with their secret key, while ransomware victims must either restore from backups or obtain the attacker's key to decrypt their files. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 2)

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 Cyber Security News website. Cite the article, not this page.

Read the full article on Cyber Security News (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.

How a story is connected to the course, and every objective, week and job role

Same story at other outlets

Related