Join our Newsletter — 33% off our NHI Course
Threats, Abuse & Incident Response

ShadowRay

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: Threats, Abuse & Incident Response

ShadowRay is the name for an attack campaign that exploited internet-exposed Ray clusters, an open-source framework for distributed AI workloads, via an unauthenticated Jobs API (CVE-2023-48022, disputed by the maintainer). Attackers ran code and took credentials, tokens and data. Defenders should keep Ray off public networks and place authentication and network controls in front of the dashboard.

What ShadowRay Represents in Practice

ShadowRay is best understood as an internet-exposure failure in distributed AI infrastructure, not just a single bug. The campaign showed that when Ray clusters are reachable from public networks, an unauthenticated management path can become an entry point for code execution, data access, and credential theft.

That makes ShadowRay a useful shorthand for a broader operational lesson: AI compute platforms are part of the attack surface. If the control plane is exposed, the blast radius can include jobs, dashboards, secrets, and downstream systems that trust the cluster.

Why Exposed Ray Clusters Become High-Value Targets

Ray is designed to orchestrate distributed workloads, so it often sits near credentials, artifacts, notebooks, datasets, and GPU-backed production or research environments. In that position, a compromised cluster is rarely just a compute issue; it can become a pivot point into cloud credentials, API tokens, and data repositories.

The danger is amplified when public reachability and weak or absent authentication overlap. An attacker does not need to defeat the workload itself if they can submit jobs through an exposed interface and let the platform do the rest. That is why exposed dashboards and Jobs APIs are especially sensitive in AI environments.

For defenders, the key question is not whether Ray can be made secure, but whether the deployment preserves a clear trust boundary between the cluster and the internet. The practical answer is to keep the management surface private and force authentication and network filtering ahead of any administrative endpoint.

How Organisations Check Exposure and Containment

Exposure checks should start with asset inventory and external reachability. Teams need to know where Ray or KubeRay is deployed, which clusters are internet-reachable, and whether dashboards, job submission interfaces, or companion services are open beyond the intended boundary.

That review should extend to vendor guidance and local hardening baselines, because the specific exposure pattern may differ by deployment model. A cluster can be technically “working” while still being dangerously open if its control plane is accessible from untrusted networks.

Containment also depends on surrounding controls. Network segmentation, authentication in front of management interfaces, and tight egress controls reduce the odds that an exposed cluster becomes a staging point for credential theft or data exfiltration. For broader guidance on securing the platform, see the Ray and AI Compute Cluster Security Guide.

What Happens After Exploitation and Why It Matters

Once attackers can run code in a Ray environment, the immediate concern is not only the running process. They may be able to access job payloads, environment variables, mounted secrets, cloud metadata, cached tokens, datasets, and model artefacts that were never meant to leave the cluster.

That is why ShadowRay belongs in the same family of compromise patterns as exposed AI services and public-facing application exploitation. The platform becomes a launchpad for follow-on activity, including data collection, credential harvesting, and abuse of compute for the attacker’s own workloads. The ShadowRay 2024 case study documents how those consequences played out in practice.

Post-compromise review should therefore focus on what the attacker could read or reuse, not just what code ran. Credentials, tokens, and API keys exposed during the incident should be treated as potentially compromised, even if the initial foothold is removed quickly.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1190 — Exploit Public-Facing ApplicationShadowRay abuses a public-facing Jobs API and dashboard exposure.
Recommendation — Hunt for exposed management endpoints and investigate unauthenticated access attempts.
NIST SP 800-53 Rev 5IA-2 — Identification and Authentication (Organizational Users)Ray admin access needs authenticated users before job submission or control actions.
SC-7 — Boundary ProtectionThe attack depends on internet exposure of the Ray control surface and weak network boundaries.
AU-6 — Audit Review, Analysis, and ReportingCompromise review depends on logs that show jobs, access and abnormal cluster activity.
Recommendation — Require authenticated access to Ray administrative interfaces before any job or cluster action. Place Ray management services behind boundary protections and restrict network reachability. Review cluster and access logs for suspicious job submission, code execution and data access.
CIS Controls v8CIS-5 — Account ManagementCompromise can expose tokens and accounts that need ownership and lifecycle control.
Recommendation — Remove or rotate exposed accounts and credentials after any Ray cluster compromise.

Practitioner Guidance

Why practitioners should care: ShadowRay is a deployment lesson as much as a vulnerability lesson. If Ray is reachable from the public internet, the environment can become a direct path from unauthenticated access to cloud or data compromise. The practical control objective is to make the cluster non-public by default and to treat its admin surface as privileged infrastructure.

Practitioner takeaway: Assume any exposed Ray management plane can be abused for more than compute, then design the deployment so that exposure is impossible rather than merely discouraged.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org