rotateit

All incidents

ShadowRay, exposed Ray clusters exploited through CVE-2023-48022 to steal AI and cloud credentials

Disclosed Mar 26, 2024 · updated Oct 28, 2026 · critical · Historical

Exposed Ray AI clusters were hijacked and their keys and tokens stolen.

Are you affected?

The free scanner that answers this opens soon. Until then, the steps below work by hand.

What happened

Exposed Ray clusters leaked AI and cloud credentials. Oligo Security reported on 2024-03-26 that attackers were exploiting CVE-2023-48022, a missing-authorization flaw in the Ray Jobs API, to run arbitrary code on internet-exposed Ray clusters. Oligo says it found production database credentials, private SSH keys, password hashes, and OpenAI, Hugging Face, Stripe and Slack tokens on compromised machines, plus access to cloud services and Kubernetes secrets, often with root privileges. Oligo traces attacker activity back to 2023-09-05 and saw crypto miners from 2024-02-21. The CVE is disputed: Anyscale, as Oligo reports, calls the behaviour an expected product feature rather than a bug, so it was not fixed in Ray 2.8.1 and many scanners do not flag it.

Exposure starts
2023-09-05
Exposure ends
Not known yet (exposure ends when each Ray dashboard is no longer reachable without authorization)
Confidence
medium
Scope
every credential readable on a Ray cluster whose dashboard or Jobs API (port 8265) was reachable without authorization, including environment variables, SSH keys, database credentials, cloud credentials and Kubernetes secrets

What to do, in this order

  1. Block internet access to the Ray dashboard and Jobs API (port 8265), bind Ray to a trusted interface, and put an authorizing proxy in front if it must be reachable

    Oligo's mitigations. Rotating first would hand fresh secrets to a cluster that still runs anyone's jobs.

  2. Cloud provider credentials and Kubernetes secrets used by the cluster

    Advisory inference. Oligo says attackers reached cloud services and Kubernetes secrets, often with root privileges; these unlock the most other systems.

    anything else stored there

  3. Production database credentials and private SSH keys found on cluster machines

    Advisory inference. Oligo found production database credentials and private SSH keys that let attackers reach more machines.

    private_key, anything else stored there

  4. OpenAI, Hugging Face, Stripe and Slack tokens on the cluster

    Advisory inference. Oligo names each of these token types as found on compromised machines.

    slack_token, anything else stored there

  5. Review Ray job history and runtime behaviour for unknown jobs, reverse shells and miners

    Oligo recommends reviewing Ray environments for exposure and suspicious activity, since static scanners may not detect this issue.

Notes

  • Disputed CVE. Anyscale, as quoted by Oligo, says the missing authorization is "an expected behavior and a product feature, rather than a vulnerability or bug"; Oligo says this is why many vulnerability databases and scanners miss it.
  • Oligo says many deployment guides and boilerplate repositories bind the Ray dashboard to 0.0.0.0, exposing it.
  • Advisory inference, not Oligo guidance. Oligo's mitigations cover network exposure and authorization only; RotateIt advises rotating every credential that was on an exposed cluster because Oligo found those credentials on compromised machines.

How to tell if you’re affected

  • Ray dashboard or Jobs API on port 8265 reachable from the internet
  • Unknown jobs in Ray job history
  • Reverse-shell connections to 23.146.184.38, 54.176.108.174, 158.247.217.90 or 206.189.156.69
  • XMRig, NBMiner or a Java-based Zephyr miner running on cluster nodes

Sources

Rotating the keys

Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.

One email when it opens. Stored: your email, whether you confirmed, and when you signed up. We send a confirmation link first.

By hand, free: the steps above.