On this page
- 01Understanding the Threat: Software Supply Chain Weaponization
- 02Indian Legal Framework: Addressing Supply Chain Cybercrime
- 03Mandatory Compliance: CERT-In Cyber Incident Reporting
- 04How Victims in Mumbai, Thane, and Mira Road Can Report
- 05Frequently Asked Questions (FAQs)
- 06Safeguard Your Business with APS Law
The Python Package Index (PyPI), the official third-party software repository for the Python programming language, recently took the drastic step of temporarily halting new user registrations and project uploads. The reason? A massive, coordinated wave of malicious packages overwhelming PyPI administrators and automated detection systems. Threat actors flooded the platform with typosquatted and dependency-confusing packages designed to infect developer machines, harvest sensitive credentials, and compromise downstream production environments.
For technology companies, software developers, and IT startups operating across India—including the rapidly expanding tech corridors in Mumbai, Thane, and the Mira-Bhayandar region—this incident is a wake-up call. Open-source software dependencies are the backbone of modern enterprise software. When public registries are weaponized, software supply chain security ceases to be merely a technical challenge; it becomes a critical legal, operational, and regulatory liability.
In this article, APS Law explains how supply chain attacks through repositories like PyPI work, the legal remedies available under the Information Technology (IT) Act, 2000 and India's newly enacted criminal laws, and the exact steps affected companies in Maharashtra should take to report breaches and preserve electronic evidence.
Understanding the Threat: Software Supply Chain Weaponization
Unlike traditional cyberattacks that directly target network firewalls or public web applications, software supply chain attacks compromise trusted upstream components before they ever reach production. PyPI's recent crisis stemmed from several overlapping vectors:
- Typosquatting: Attackers upload packages with names intentionally similar to widely used libraries (e.g., uploading
reqeustsorcolorama-v2instead ofrequestsorcolorama). A simple typographical error by a developer pulls malicious code directly into the build pipeline. - Malicious Build Scripts: In Python, packages can run arbitrary scripts during installation via
setup.py. Attackers take advantage of this behavior to execute malicious payloads immediately upon running a standardpip installcommand, even before any package code is explicitly imported. - Information Stealers: The payloads dropped in these campaigns routinely scan the host machine for environment variables (
.env), AWS/GCP API credentials, GitHub personal access tokens, SSH keys, browser passwords, and cryptocurrency wallet keys.
Once an engineer's workstation is compromised, the attacker can move laterally into the company's internal network, poison proprietary repositories, or deploy ransomware.
Indian Legal Framework: Addressing Supply Chain Cybercrime
When a developer or an enterprise in India falls victim to a malicious package, the perpetrator has committed multiple cognizable offenses under Indian law. While identifying foreign threat actors presents jurisdictional hurdles, invoking domestic statutory remedies is crucial for insurance claims, CERT-In compliance, and corporate dispute containment.
1. The Information Technology Act, 2000 (IT Act)
- Section 43 read with Section 66 (Unauthorized Access and Damage): Injecting malicious code to extract data, alter software behavior, or compromise a computer system attracts criminal penalties under Section 66 (imprisonment up to three years or fine up to five lakh rupees) as well as civil liability to pay damages by way of compensation under Section 43.
- Section 66C (Identity Theft): If the malware steals API keys, digital signatures, passwords, or employee credentials, Section 66C applies, punishable with imprisonment up to three years and fines.
- Section 66D (Cheating by Personation Using Computer Resource): Typosquatting relies directly on masquerading as legitimate open-source maintainers to deceive users into downloading malware, squarely attracting Section 66D.
2. The Bharatiya Nyaya Sanhita, 2023 (BNS)
Under India's overhauled criminal penal code, cyber-enabled fraud and data theft trigger specific provisions:
- Section 318 of BNS (Cheating): Replacing Section 420 of the IPC, Section 318 penalizes dishonest inducement leading to delivery of property or unauthorized alteration of systems.
- Section 303 of BNS (Theft): Extends to the unauthorized abstraction of proprietary source code or confidential business data.
- Section 61 of BNS (Criminal Conspiracy): Applied where organized cyber syndicates systematically coordinate package deployments to infiltrate corporate systems.
3. Procedural Framework: BNSS, 2023 and BSA, 2023
- Zero FIR under Section 173(1) of the Bharatiya Nagarik Suraksha Sanhita, 2023 (BNSS): If your company discovers an ongoing breach, you are entitled to register a Zero FIR at any police station regardless of territorial jurisdiction, ensuring immediate police machinery is mobilized before the complaint is transferred to the competent Cyber Police Station.
- Electronic Evidence under the Bharatiya Sakshya Adhiniyam, 2023 (BSA): Evidentiary proof of cyber incidents has transitioned from Section 65B of the Indian Evidence Act to Section 63 of the BSA, 2023. Any package installation logs, terminal outputs, memory dumps, or network telemetry submitted to law enforcement or court must strictly comply with the certification norms laid down under Section 63 of the BSA to remain admissible.
Mandatory Compliance: CERT-In Cyber Incident Reporting
Indian entities cannot simply clean their machines and sweep a supply chain infection under the rug. Under the CERT-In Cyber Security Directions of April 28, 2022, organizations must report specified cyber security incidents to CERT-In (the Indian Computer Emergency Response Team) within six hours of noticing them or being brought to notice.
Incidents requiring mandatory reporting include:
- Targeted scanning/probing of critical networks.
- Compromise of critical systems or information.
- Unauthorized access of IT systems/data.
- Attacks on software supply chains and code repositories.
Failing to report within the mandated window can attract penal consequences under Section 70B(7) of the IT Act, which carries imprisonment of up to one year or fines up to one lakh rupees.
How Victims in Mumbai, Thane, and Mira Road Can Report
If your development team in the Mumbai Metropolitan Region (MMR) discovers that a developer downloaded a malicious package, follow these immediate legal and procedural steps:
Step 1: Isolate and Preserve Digital Evidence
Do not wipe or re-image the infected workstation immediately. Creating forensically sound copies is vital for both regulatory disclosure and criminal proceedings:
- Preserve shell history, terminal output, and Python virtual environment logs showing the command executed.
- Export proxy and firewall logs detailing outbound HTTP/TCP connections initiated by the package.
- Prepare an electronic evidence certificate under Section 63 of the Bharatiya Sakshya Adhiniyam, 2023 signed by the systems administrator or IT head.
Step 2: Lodge an Official Police Complaint
- National Cyber Crime Reporting Portal: File an incident report online at cybercrime.gov.in or call the national cyber helpline at 1930.
- Mumbai Jurisdiction: If your registered office is within Greater Mumbai, report to the Cyber Crime Police Station (Bandra-Kurla Complex - BKC) or the respective Regional Cyber Police Station (South, Central, Eastern, Western, or Northern Region).
- Thane Jurisdiction: Tech firms situated in Thane city or Wagle Estate should approach the Thane Cyber Cell, located at the Commissioner of Police Office, Thane.
- Mira Road & Bhayandar Jurisdiction: For entities in Mira Road, Bhayandar, or nearby segments of the Western Suburbs under the Mira-Bhayandar Vasai-Virar (MBVV) Police Commissionerate, formal complaints must be lodged with the MBVV Cyber Crime Police Station.
Step 3: Issue Disclosures and Revoke Credentials
Immediately rotate all cloud credentials, database connection strings, and third-party API tokens that were accessible to the affected developer. If consumer personal data was put at risk, evaluate potential notification obligations under the Digital Personal Data Protection Act, 2023 (DPDP Act).
Frequently Asked Questions (FAQs)
1. Is a developer legally liable if they unintentionally install a malicious PyPI package on a work laptop?
Under typical employment contracts and Indian labor laws, unintentional errors made in good faith do not constitute criminal misconduct. However, gross negligence, bypassing corporate security protocols (such as shadow IT), or violating acceptable use policies may expose an employee to disciplinary actions or contractual civil liability.
2. Can an Indian company sue PyPI or the Python Software Foundation for damages?
Generally, no. Open-source repositories like PyPI operate under disclaimers of warranty and limitations of liability (e.g., standard MIT, Apache, or PSFL terms) providing software "as is". PyPI acts as an intermediary, and seeking compensation from the repository is practically and legally unviable. Legal recourse must focus on the unidentified threat actor and insurance recovery.
3. What certificate is now required in court to present logs of the attack?
Following the implementation of the new criminal and evidentiary codes in July 2024, electronic records must be accompanied by an electronic certificate under Section 63 of the Bharatiya Sakshya Adhiniyam, 2023 (BSA), superseding the earlier Section 65B certificate of the Indian Evidence Act.
4. Do small startups with under 10 employees have to comply with the 6-hour CERT-In reporting rule?
The CERT-In guidelines apply broadly to all service providers, intermediaries, data centers, and corporate bodies in India. While enforcement varies, there is no blanket exemption for early-stage startups when critical corporate credentials or personal data are exposed.
Safeguard Your Business with APS Law
Software supply chain attacks can paralyze business operations and invite severe regulatory scrutiny. Whether your company is navigating an active cybersecurity incident, responding to statutory notices from law enforcement, or drafting robust developer IT policies compliant with Indian law, APS Law provides practical, clear, and strategic legal counsel.
Facing a cyber incident or looking to audit your corporate technology policies in Mumbai, Thane, or Mira Road? Contact APS Law today to schedule a focused legal consultation.
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.