On this page
- 01Understanding ShadowRay 2.0: The Mechanics of the Exploit
- 02Indian Legal Framework: Criminal Penalties and Enterprise Duties
- 03Civil Recourse: Claiming Compensation Under IT Act Section 46
- 04Incident Response: How Mumbai and Thane Businesses Should Act
- 05Mitigation Checklist for AI Engineering Teams
- 06Frequently Asked Questions (FAQs)
- 07Legal Advisory & Incident Support
Artificial intelligence development in India has grown at an extraordinary pace, with enterprises, fintech startups, and research institutions deploying vast clusters of high-performance Graphics Processing Units (GPUs). However, this rapid cloud adoption has exposed critical architectural vulnerabilities. A prime example is the emergence of ShadowRay 2.0, an aggressive campaign exploiting unpatched vulnerabilities in the popular open-source AI framework, Ray.
Ray, developed by Anyscale, is widely used for scaling AI and Python workloads. ShadowRay 2.0 weaponizes missing authentication controls in the Ray platform, turning expensive corporate AI infrastructure into a self-spreading, GPU-hijacking cryptomining botnet. For enterprises operating in Mumbai, Pune, and the wider Indian corporate corridor, this threat is not merely a technical glitch—it represents severe commercial loss, massive cloud infrastructure bills, data exposure, and substantial statutory liability under Indian law.
Understanding ShadowRay 2.0: The Mechanics of the Exploit
The original ShadowRay campaign exploited CVE-2023-48022, a vulnerability stemming from Ray’s default design choice not to enforce authentication on its dashboard and job submission APIs (typically bound to port 8265). When developers expose these ports to the open internet without adequate network perimeter security, external actors can submit arbitrary compute jobs.
ShadowRay 2.0 elevates this threat through automation and persistence:
- Automated Scanning & Initial Access: The botnet actively scans IPv4 address spaces for exposed Ray cluster ports.
- Arbitrary Code Execution: Once identified, it invokes Ray's internal API to execute remote shell commands with the privileges of the Ray runtime user.
- GPU Resource Hijacking (Cryptojacking): ShadowRay 2.0 detects available NVIDIA/CUDA GPU resources and deploys customized cryptominers (frequently mining Monero or other privacy-oriented digital assets).
- Worm-like Self-Spreading: The payload retrieves cloud metadata, scrapes internal networks for reachable subnets, identifies peer nodes and external cloud clusters, and replicates itself autonomously.
- Data Exfiltration: Beyond stealing compute cycles, attackers often obtain access to environment variables, cloud IAM tokens (AWS, GCP, Azure), database credentials, and proprietary model weights or training datasets.
Indian Legal Framework: Criminal Penalties and Enterprise Duties
In India, deploying unauthorized cryptominers, hijacking cloud hardware, and exploiting software flaws trigger both criminal liability for perpetrators and compliance duties for affected businesses.
1. Offences Under the Information Technology Act, 2000 (IT Act)
- Section 43 (Damage to Computer Systems): Extracting data, introducing malware, or denying access to authorized users without permission entails civil liability to pay damages by way of compensation to the affected entity.
- Section 66 (Computer-Related Offences): Read with Section 43, dishonestly or fraudulently accessing Ray clusters constitutes hacking, punishable with imprisonment for up to three years or a fine extending to ₹5,00,000, or both.
- Section 66C (Identity Theft): Hijacking IAM credentials, API access tokens, or dashboard session keys attracts imprisonment of up to three years.
- Section 70B (CERT-In Compliance): The Indian Computer Emergency Response Team (CERT-In) directions of April 28, 2022, mandate that companies must report critical cybersecurity incidents—including unauthorized access to IT systems/data, malicious code attacks (botnets), and rogue cryptomining—within 6 hours of detection.
2. Offences Under the Bharatiya Nyaya Sanhita, 2023 (BNS)
With the replacement of the Indian Penal Code, cyber-enabled offences are prosecuted under the BNS:
- Section 303(2) (Theft): Dishonest abstraction of computational bandwidth, paid cloud resources, and electricity constitutes actionable digital theft.
- Section 318(4) (Cheating): Deceitfully manipulating systems to divert corporate cloud infrastructure into private mining botnets.
- Section 324 (Mischief): Intentionally altering software configurations, disabling security tools, or degrading hardware life constitutes criminal mischief.
- Section 61 (Criminal Conspiracy): Operating an organized botnet infrastructure involves concerted criminal conspiracy across multiple actors.
3. Data Protection Implications
If the compromised Ray cluster hosted proprietary training datasets containing customer data, the Digital Personal Data Protection Act, 2023 (DPDPA) comes into play. Data Fiduciaries must implement reasonable security safeguards to prevent personal data breaches; failure to do so can result in substantial monetary penalties imposed by the Data Protection Board of India.
Civil Recourse: Claiming Compensation Under IT Act Section 46
Many businesses assume that cyber intrusions can only be handled via police complaints. However, Indian cyber law offers a distinct civil mechanism:
Under Section 46 of the IT Act, the State Government appoints an Adjudicating Officer (typically the Principal Secretary of the Department of Information Technology).
- In Maharashtra, companies subjected to unauthorized intrusions can file an adjudication petition before the Maharashtra Cyber Adjudicating Officer at Mantralaya, Mumbai.
- The Adjudicating Officer possesses powers akin to a Civil Court and can award financial compensation to victims for financial damage caused by unauthorized access under Section 43.
- While tracing anonymous botnet operators is difficult, adjudication proceedings remain vital when contractors, managed service providers (MSPs), or rogue employees contribute to or cause the misconfiguration through gross negligence.
Incident Response: How Mumbai and Thane Businesses Should Act
If your security or engineering team discovers ShadowRay 2.0 or rogue GPU utilization in your cloud environment, follow these legal and procedural steps immediately:
Phase 1: Containment and Forensic Preservation
- Do not wipe the virtual machines immediately. Under the Bharatiya Nagarik Suraksha Sanhita, 2023 (BNSS) and the Bharatiya Sakshya Adhiniyam, 2023 (BSA), electronic records must maintain clear chain-of-custody.
- Take disk and memory snapshots of the affected nodes to capture the running cryptominer, network sockets, and malicious Ray jobs.
- Extract and preserve all firewall, VPC flow, and Ray API logs.
- Isolate the cluster network by revoking exposed public IPs and applying security groups.
Phase 2: Regulatory Reporting
- Notify CERT-In: File an incident report via email (
incident@cert-in.org.in) or the CERT-In portal within the mandatory 6-hour window. - Notify Cloud Providers: If running on managed clouds, notify the provider’s trust and safety team to halt fraudulent billing caused by the rogue mining surge.
Phase 3: Lodging the Cyber Complaint
Victims in the Mumbai Metropolitan Region (MMR) should formalize legal complaints:
- Register an online incident report at the National Cyber Crime Reporting Portal (
cybercrime.gov.in). - File a written complaint or e-FIR under Section 173 of the BNSS at the jurisdictional Cyber Police Station:
- Mumbai: Bandra-Kurla Complex (BKC) Cyber Police Station, or regional stations (South, North, Central, West).
- Thane: Thane Cyber Crime Police Station (near Commissionerate).
- Mira-Bhayandar, Vasai-Virar (MBVV): MBVV Cyber Crime Cell.
Mitigation Checklist for AI Engineering Teams
To safeguard Ray deployments against ShadowRay 2.0:
- Network Isolation: Never expose Ray dashboard (8265) or client ports (10001) directly to the public internet. Restrict access via zero-trust network architectures, VPNs, or private VPC peering.
- Enforce Mutual TLS & Access Control: Deploy reverse proxies (e.g., NGINX/Envoy) with authentication enabled in front of the Ray dashboard.
- Rotate Cloud Credentials: Assume all environment variables and secrets on compromised clusters have been exfiltrated; revoke and rotate IAM keys, AWS access secrets, and database strings.
- Monitor Compute Anomalies: Set up billing and telemetry alerts for 100% GPU utilization spikes outside of scheduled model training runs.
Frequently Asked Questions (FAQs)
1. Is cryptojacking illegal under Indian law?
Yes. Cryptojacking violates Sections 43 and 66 of the Information Technology Act, 2000, as it involves unauthorized access and modification of computing resources. It also constitutes criminal theft and mischief under Sections 303(2) and 324 of the Bharatiya Nyaya Sanhita, 2023.
2. Can an enterprise be penalized if it fails to report a ShadowRay intrusion to CERT-In?
Yes. Under Section 70B(7) of the IT Act, willful failure to furnish information or report cybersecurity incidents to CERT-In as required by the 2022 Directions can attract penal consequences, including imprisonment up to one year, a fine, or both.
3. Can our company challenge inflated cloud bills caused by a cryptomining botnet?
Most cloud service providers include shared responsibility clauses in enterprise contracts, stating that network-level access control is the client's responsibility. However, with prompt forensic documentation, an e-FIR, and immediate communication of the security event, providers often consider goodwill credits or partial billing adjustments.
4. What electronic evidence is required to build a valid cyber case in court?
Under the Bharatiya Sakshya Adhiniyam, 2023 (BSA), electronic evidence must be backed by appropriate certification validating its authenticity and unbroken custody. System logs, packet captures, and memory snapshots must be imaged following forensically sound methods.
Legal Advisory & Incident Support
Navigating unauthorized AI infrastructure compromises requires rapid technical mitigation and decisive legal strategy. APS Law assists corporate clients across Mumbai, Thane, and Mira Road with cybersecurity compliance, CERT-In reporting, IT Act adjudication proceedings, and criminal representation before Cyber Crime Cells.
If your organization has detected unauthorized access or faces compliance queries regarding cloud compromises, request a consultation with APS Law today.
Speak to a lawyer
Facing this situation right now? Get a same-day case assessment.
APS Law appears before the Bombay High Court, Sessions Courts at Mumbai and Thane, tribunals and magistrate courts across the Mumbai Metropolitan Region. Share your papers on WhatsApp and we will revert with the next legal step.
Related reading
Cyber Law
Akira Ransomware Exploits SonicWall VPNs: Threat Explainer, Legal Remedies, and Reporting for Mumbai Businesses
Akira ransomware targets SonicWall SSLVPNs. Learn the threat mechanics, CERT-In obligations, Indian legal remedies under IT Act & BNS, and reporting in Mumbai.
Cyber Law
6 Types of Application Security Testing Every Business Must Know in India
Discover the 6 essential types of application security testing and understand corporate compliance obligations under India's IT Act and DPDP Act 2023.
Cyber Law
AI-as-a-Service Providers Vulnerable to PrivEsc and Cross-Tenant Attacks: Cyber Risks and Legal Recourse in India
An explainer on privilege escalation and cross-tenant risks in AIaaS architectures, applicable Indian cyber laws, CERT-In rules, and legal remedies in Mumbai.
Cyber Law
The RubyCarp Botnet Resurgence: Understanding the Threat and Indian Legal Remedies
A deep dive into the RubyCarp Romanian hacker syndicate, botnet risks for Indian businesses, and reporting cyber incidents under the IT Act and BNS.
Cyber Law
FIN9 Hackers Indicted in $71M Cybercrime Spree: Lessons, Legal Remedies, and Incident Response for Indian Enterprises
Four FIN9-linked hackers indicted in a $71M US cybercrime spree. Understand the threat, Indian legal recourse under IT Act and BNS, and how Mumbai victims can report.
Cyber Law
159 CVEs Exploited in Q1 2025: Threat Analysis, IT Act Liabilities, and Legal Recourse in India
Over 28% of Q1 2025 CVEs were exploited within 24 hours. Learn the legal liabilities under the IT Act, CERT-In reporting, and cyber remedies in Mumbai & Thane.