ShadowRay 2.0, self-propagating botnet on exposed Ray clusters steals database and cloud credentials
A botnet is hijacking exposed Ray clusters and stealing database passwords.
Are you affected?
The free scanner that answers this opens soon. Until then, the steps below work by hand.
What happened
Ray botnet stole database and cloud credentials. Oligo Security reported on 2025-11-18 a new campaign it calls ShadowRay 2.0 that again exploits CVE-2023-48022, the missing authorization in the Ray Jobs API, and spreads by submitting jobs to other exposed Ray dashboards. Oligo says the attackers "discovered and exfiltrated MySQL database credentials from Ray job environment variables and config files", giving root access to a production MySQL database, and that it found many security tokens and cloud credentials on compromised machines. The attackers added their own SSH key to root's authorized keys and used the nodes for crypto mining. Oligo identified the campaign in early November 2025 and says evidence suggests it may have run since September 2024. Anyscale treats the missing authorization as a design choice, so there is no patch; Oligo advises isolating Ray.
- Exposure starts
- Not known yet (Oligo says the operation may have been active since September 2024 but gives no day)
- Exposure ends
- Not known yet (exposure ends when each Ray dashboard is no longer reachable without authorization)
- Confidence
- low
- Scope
- every credential in Ray job environment variables and config files on a cluster whose dashboard or Jobs API (port 8265) was reachable without authorization, including database credentials, cloud credentials and security tokens
What to do, in this order
- 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 recommendations. Rotating first would hand fresh secrets to a cluster that still runs anyone's jobs.
- Remove the attacker's SSH key from root's authorized keys and delete the cron job and masqueraded miner processes
Oligo found these persistence mechanisms; they keep access open after any rotation.
- Cloud credentials and security tokens present on cluster machines
Advisory inference. Oligo found many security tokens and cloud credentials on compromised machines; cloud credentials reach the most other systems.
anything else stored there
- MySQL and other database credentials in Ray job environment variables and config files
Advisory inference. Oligo says MySQL credentials were exfiltrated from exactly these places and gave root access to a production database.
anything else stored there
Notes
- Same root cause as ShadowRay (shadowray-2024-03). Anyscale considers the unauthenticated Jobs API intended behaviour for isolated environments, so no Ray release fixes it.
- Oligo reports GitLab removed the attacker's account and repository on 2025-11-05 and GitHub blocked the next account on 2025-11-17, with a new account appearing within about two hours.
- Advisory inference, not Oligo guidance. Oligo's recommendations cover network exposure, authorization and monitoring; RotateIt advises rotating credentials because Oligo says they were exfiltrated or present on compromised machines.
How to tell if you’re affected
- Ray dashboard or Jobs API on port 8265 reachable from the internet
- An ed25519 key with the comment root@archtop in root's authorized keys
- A cron job running every 15 minutes that downloads mon.sh
- Files /usr/lib/dev/systemdev/dns-filter (a renamed XMRig), /var/tmp/.ddns.sh or .python3.6
- Connections to 18.228.3.224 (primary C2), 45.95.168.100, 185.215.180.70 or 45.61.150.83
- GitLab accounts ironern440-group or least3654, or GitHub user thisisforwork440-ops, as a payload source
Sources
- Oligo Security: ShadowRay 2.0, attackers turn AI against itself in global campaign that hijacks AI into self-propagating botnet
- NVD CVE-2023-48022
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.
By hand, free: the steps above.