Skip to content

Hack Atlas · ATLAS / DEF-24 · AI & Agent Safety

The Platform That Held Every Secret

A host that deploys your code could decrypt your environment. Provider keys were spent the same day.

The platform that deploys your code also decrypted your environment. Provider keys were used the same day.

File
ATLAS / DEF-24
Domain
Secret custody
Framework
The env file is a database
Studio
26 min studio
Stance
Educational / defensive

Fig. 00 — The env file is a database — signature diagram

SHIPRAILROADYARDTHE JOIN IS THE PRODUCT

00 / Abstract

Around 20–22 October 2026, Railway disclosed that an attacker reached the systems that store customers’ environment variables and, for some, decrypted them. Reporting described API keys, database credentials, and private-registry logins, and said the intrusion sat inside a wider run of attacks aimed at companies that hold AI inference credentials. Stolen Anthropic and Stripe keys were reported used within hours. One developer’s crypto wallet was described as drained of roughly $371,000. Railway paused deployments.

The implementation is architectural. Environment variables are a convenience that became a vault: one store, many customers, decryptable by the platform so that a deploy can inject them. The platform must be able to decrypt, or the product does not work. That ability is the crown jewel. Treating it as an internal microservice with the same access as ordinary admin tools is how a platform breach becomes every customer’s breach before lunch.

We do not describe the intrusion path. We describe how to hold secrets so a platform operator cannot casually read them, and so a leaked provider key dies quickly.

A hosting platform that can read plaintext secrets is a custodian. If decryption is an ordinary internal function, every operator incident is a secret incident.

01 / Classification

HACKERS does not publish payloads, commands, vulnerable configurations, or any sequence that could be repeated. The walkthrough is a map of trust. A studio that becomes a manual is a defect. Authorise / Test / Improve.

Around 20–22 October 2026, Railway disclosed that an attacker reached the systems that store customers’ environment variables and, for some, decrypted them. Reporting described API keys, database credentials, and private-registry logins, and said the intrusion sat inside a wider run of attacks aimed at companies that hold AI inference credentials. Stolen Anthropic and Stripe keys were reported used within hours. One developer’s crypto wallet was described as drained of roughly $371,000. Railway paused deployments.

02 / Hidden frame

Convenience was a vault.

Developers put secrets in environment variables because frameworks tell them to. Platforms store those variables because deploy must inject them. The hidden assumption is that encryption at rest means the platform cannot read. If the platform holds the unwrapping key, at-rest encryption is a lock on a door the platform keeps the key to.

A second assumption: a leaked model key is a billing problem. A key that can spend, send, or move value is a treasury key. The same store should not hold a feature-flag and a payment secret with the same protection and the same audit.

A third assumption: pausing deploys contains the incident. It stops a bleeding product. It does not un-read a key that has already been copied. Rotation has to be possible without the platform’s cooperation, or you do not control the secret.

03 / Four false objects

Name the false object, then drop it.

  1. C1

    Encrypted means safe

    At rest is treated as unreadability.

    Ask who holds the unwrapping key. That person can read.

  2. C2

    All env vars are equal

    A flag and a payment key share a store.

    Classify secrets by what they can spend.

  3. C3

    The platform will tell us

    Detection is the vendor blog.

    You can revoke provider keys without the platform.

  4. C4

    Pause is containment

    Stopping deploys is the response.

    Rotation is the response. Pause is a courtesy.

04 / The system

What actually sat on the table.

Developers put secrets in environment variables because frameworks tell them to. Platforms store those variables because deploy must inject them. The hidden assumption is that encryption at rest means the platform cannot read. If the platform holds the unwrapping key, at-rest encryption is a lock on a door the platform keeps the key to.

Walkthrough: take one production service. List every environment value that can spend money, send mail, or open a database. For each, name the system that can reveal the plaintext. If that list includes ‘the hosting company’s on-call,’ you have a custodian. Custodians get ceremonies: two people, a reason, a log, a rate limit, no bulk export.

Customer-side design: provider keys should be rotatable in minutes from the provider’s console, which you control. A key you can only see inside the breached platform is a key you have already lost.

HACKERS does not publish payloads, commands, vulnerable configurations, or any sequence that could be repeated. The walkthrough is a map of trust. A studio that becomes a manual is a defect. Authorise / Test / Improve.

05 / What it looked like while it was happening

Do not study the outfit.

Deploys looked normal until the platform stopped them. Applications did not throw a ‘your host is reading secrets’ error, because the host is supposed to inject them.

The first external symptom for some customers was a provider bill or a drained wallet, which means the key worked.

The implementation is architectural. Environment variables are a convenience that became a vault: one store, many customers, decryptable by the platform so that a deploy can inject them. The platform must be able to decrypt, or the product does not work. That ability is the crown jewel. Treating it as an internal microservice with the same access as ordinary admin tools is how a platform breach becomes every customer’s breach before lunch.

06 / The chain

HabitSecrets live in environment variablesStoreThe platform keeps them for injectionUnwrapAn internal function can decryptOperator pathThat function is reachable from too much of the companyCopyPlaintext leavesIf unwrap is rare, logged, and incapable of bulk export, the copy does not scale.
How a deploy convenience became custody

Apparent health against the actual grant

Login succeeded

Authority was never granted for this action

Vendor is reputable

The vendor identity can reach the crown jewel

Version number matches

The artefact was not the reviewed build

Dashboard is green

The picture shares a trust root with the failure

Store, unwrap, spend

S1 Env var

Developer view 95 / Custodian view 30

S2 Platform vault

Developer view 80 / Custodian view 25

S3 Bulk unwrap

Developer view 20 / Custodian view 5

S4 Provider honours key

Developer view 30 / Custodian view 10

The secret still works off-platform.

Secret calculus

  1. A1

    Unwrap is an event

    Decryption of customer secrets is logged, justified, and rate-limited.

  2. A2

    No bulk export

    There is no API that returns everyone’s plaintext.

  3. A3

    Class the value

    Payment and model keys are not stored like feature flags.

  4. A4

    Revoke at the issuer

    The provider console, not the platform, is the kill switch.

A secret you cannot revoke without the custodian is not your secret.

Where the design has to change

P1 Identity

Who may cause a release, a signature, or a spend.

A logged-in person, package, or vendor is treated as the grant.

P2 Provenance

Proof that an artefact is the one that was reviewed.

A name and a version number are treated as provenance.

P3 Blast radius

How far one secret, runtime, or script can reach.

One credential is valid in every tenant, wallet, or pipeline.

P4 Independent picture

A measurement that does not share the failing trust root.

The dashboard, the package page, and the operator screen are the same story.

10 / Failure taxonomy

Failure taxonomy and corresponding defences
IDFailureWhat brokeControl
F1Encrypted means safeAt rest is treated as unreadability.Ask who holds the unwrapping key. That person can read.
F2All env vars are equalA flag and a payment key share a store.Classify secrets by what they can spend.
F3The platform will tell usDetection is the vendor blog.You can revoke provider keys without the platform.
F4Pause is containmentStopping deploys is the response.Rotation is the response. Pause is a courtesy.
Fig. — Failures and the controls that match them

The same join in other systems

A bank vault

The teller’s key also opens the vault

Custody is a ceremony, not a login

A hospital pharmacy

The supplier’s label is the prescription

The drug and the authority to administer it are different objects

Air-traffic control

A radio call is a clearance

Clearance is a separate grant, logged and bounded

A hosting platform that can read plaintext secrets is a custodian. If decryption is an ordinary internal function, every operator incident is a secret incident.

If unwrap is rare, logged, and incapable of bulk export, the copy does not scale.

Defence as architecture

  1. 01 Ceremony for unwrap

    Two people, a ticket, a customer scope, an alert. Bulk jobs do not exist.

  2. 02 Customer-held keys

    Where the product allows, the customer wraps secrets and the platform sees ciphertext only at inject, inside a boundary it does not snapshot.

  3. 03 Spend classes

    Keys that can move money live in a different store with a different audit.

  4. 04 Issuer kill switch

    Runbooks revoke at Anthropic, Stripe, the cloud, the registry — from an account the platform does not host.

The system as built

  • One environment store for every kind of secret.
  • Platform staff can decrypt as part of ordinary support.
  • Customers hear about copies from a blog.
  • Rotation depends on the platform UI.

The system that would have contained it

  • Spend-capable secrets are a separate class.
  • Unwrap is rare and cannot enumerate.
  • Customers can revoke at the issuer in minutes.
  • A copied key dies even if the platform is still down.

Second-order system

  1. Every project on the platform

    A multi-tenant secret store is a single incident with many victims.

  2. AI providers

    Inference keys are bearer tokens. They spend as soon as they leave.

  3. Adjacent wallets

    A key that can sign or pay is not ‘just config.’

Typical brief versus HACKERS studio
TopicTypical briefHACKERS studio
What most courses teachA vulnerability name and a patch link.The trust that made the patch late, and the redesign that makes the class fail closed.
What a board hearsWe were targeted by a sophisticated actor.Which ordinary permission did the actor inherit, and who can revoke it in one action?
What an engineer is askedRotate the keys.Which keys, in which blast radius, with which proof they cannot be re-read from the same store?
Fig. — The join lives between chairs

15 / What the brief missed

Elite programmes still stop at the object.

A university lab that copies this file into a how-to has failed the ethics charter.

The transferable object is the control design: identity, provenance, blast radius, and an independent picture.

HACKERS does not publish payloads, commands, vulnerable configurations, or any sequence that could be repeated. The walkthrough is a map of trust. A studio that becomes a manual is a defect. Authorise / Test / Improve.

16 / Design studio

Do not admire the turning point. Redesign the join.

Draw the crown-jewel outcome this incident could reach in two hops.

  1. Exercise 01

    Draw the crown-jewel outcome this incident could reach in two hops.

  2. Exercise 02

    Name the permission that was inherited, not stolen in the cinematic sense.

  3. Exercise 03

    Write the one control that makes the chain fail closed without a hero on call.

Interrogate the join

Name who can decrypt production environment variables.

If you cannot show the artefact, the grant, and the revoke path, the control is a slogan.

48-hour authorised studio

  1. Hour 0–4

    Name the jewel

    Write the outcome that must not move: funds, secrets, identity, or a physical process.

  2. Hour 4–24

    Draw two hops

    List every identity, package, script, and vendor that can influence that outcome.

  3. Hour 24–48

    Install a fail-closed

    Put a bound, a second channel, and a named revoke on the widest hop. Do not add a tool that only alerts.

Anti-patterns

  • Calling the incident sophisticated when the permission was ordinary.
  • Rotating secrets inside the same store that was read.
  • Patching a runtime and leaving the secrets that runtime could already see.
  • A third-party script, package, or vendor with the same authority as first-party code.

19 / The transferable lesson

At-rest encryption is not unreadability when the platform holds the unwrapping key.

Separate values that can spend from values that cannot. No job may export plaintext for more than one scope. Every decrypt has a human reason and an alert. Provider consoles are not logged in from the same platform. Time a full revocation. If it depends on the platform being up, it is not a control.

Questions we are asked

Are environment variables wrong?
They are a bad vault. They are acceptable only for values that cannot spend, and only if unwrap is a controlled event.
What do we do the hour we hear?
Revoke at the issuers you still control. Assume plaintext that the platform could decrypt has been decrypted.

Public sources

Cited for classification and method. Not as a manual. Atlas cases are educational and defensive.