A global hacking campaign named ShadowRay 2.0 is actively exploiting AI infrastructure worldwide, leveraging a known yet officially “disputed” flaw in the Ray open-source framework.
Security researchers at Oligo Security have confirmed a significant evolution in the campaign, now harnessing AI-generated payloads to accelerate and adapt its attacks, making this one of the first large-scale “AI versus AI” attacks on record.
The ShadowRay operation is not only growing rapidly but also demonstrates how organizational lapses in secure configuration can leave advanced AI clusters exposed and vulnerable.
New ShadowRay Attack Exploits Vulnerability in Ray AI Framework
ShadowRay 2.0 targets CVE-2023-48022, a flaw in Ray’s dashboard Jobs API that allows unauthenticated remote code execution if Ray servers are exposed to the internet.
Despite being known for over a year, this vulnerability remains unfixed; Ray’s maintainers argue it is only dangerous when deployed outside of secured, internal networks.
However, Oligo’s latest research finds that more than 230,000 Ray servers are now openly exposed, a tenfold increase from a few thousand in early 2024, demonstrating widespread misconfigurations amid AI’s boom across enterprises, research labs, and startups.
The attackers, calling themselves IronErn440, initially used GitLab as their malware-delivery channel, updating region-aware payloads in real time.
After their infrastructure was taken down in early November, they rapidly migrated operations to GitHub, creating multiple accounts and repositories to distribute new malware variants.
Payloads are delivered via Ray’s own orchestration features, allowing attackers to run cryptominers, exfiltrate data, and move laterally across every node in a targeted cluster using Python code invoked via the legitimate Ray API.
Attack Techniques and Indicators of Compromise
Notably, the ShadowRay 2.0 payloads exhibit clear evidence of AI generation, including documentation strings and error-handling logic tailored to attackers’ evolving needs.
The campaign is highly adaptive: malware checks cluster specs to optimize for CPU and GPU usage, uses process masquerading (renaming miners as legitimate services), and evades detection by capping resource utilization at 60%.

Attackers regularly update persistence mechanisms through cron jobs and systemd services, maintain reverse shells for ongoing access, and actively eliminate competing cryptominers and rival botnet operators on victim infrastructure.
The threat group employs advanced DevOps tactics, compromising systems to poll for new payloads every 15 minutes, allowing the adversaries to iterate and propagate updates nearly in real time.
Instances of cryptominer binaries, disguised as system services, are often distributed through GitHub releases, taking advantage of trusted domain reputation.
Additionally, lateral propagation turns infected clusters into launchpads for new attacks, generating a self-propagating, worm-like global botnet with cryptojacking, DDoS, and data theft capabilities.
Organizations are strongly advised to review Ray’s security documentation, restrict access with firewalls, avoid exposing Ray dashboards to the internet, and use open-source tooling to verify clusters are not unintentionally public.
As ShadowRay 2.0 demonstrates, even “disputed” vulnerabilities can have a massive, ongoing real-world impact when design assumptions do not align with real-world deployments.
Find this Story Interesting! Follow us on Google News , LinkedIn and X to Get More Instant Updates