On this page
- 01Introduction: The Modern Threat to the Open-Source Ecosystem
- 02Deconstructing the Attack: How 35 Malicious npm Packages Function
- 03The Indian Legal Framework: Addressing Supply-Chain Intrusions
- 04Corporate Liability and Compliance Risks for Tech Companies
- 05How Victims in Mumbai, Thane, and Mira Road Can Take Action
- 06Frequently Asked Questions (FAQs)
- 07Legal Advisory and Incident Response Support
Introduction: The Modern Threat to the Open-Source Ecosystem
Recent threat intelligence reports have uncovered an aggressive software supply-chain campaign attributed to state-sponsored actors linked to North Korea (often clustered under designations such as Lazarus Group, Famous Chollima, or related campaigns). Cybersecurity researchers discovered at least 35 malicious packages quietly uploaded to the npm (Node Package Manager) registry—the world's largest repository of JavaScript tools and libraries.
These packages were designed to compromise software engineers, web developers, and IT teams by impersonating legitimate modules through techniques like typosquatting or embedding obfuscated scripts in secondary dependencies. Once installed, the packages deploy multi-stage loaders capable of executing arbitrary code, exfiltrating developer credentials, accessing proprietary source code, and establishing persistence within internal networks.
For tech firms, fintech platforms, and IT consultancies across India—including the rapidly growing technical corridors in Mumbai, Thane, and the Mira-Bhayandar belt—this attack is an urgent wake-up call. Compromised developer endpoints do not remain isolated; they frequently serve as the initial point of entry for massive corporate data breaches, IP theft, and downstream enterprise compromise.
Deconstructing the Attack: How 35 Malicious npm Packages Function
Supply-chain attacks bypass traditional perimeter firewalls by exploiting developer trust. The mechanics of this recent 35-package campaign typically follow a coordinated pattern:
- Pre-install and Post-install Hooks: When a developer executes
npm install <package-name>, lifecycle hooks run automatically on the local machine before the developer writes a single line of code. The malicious payload executes in the background without raising runtime errors. - Information Harvesting: The initial stage sweeps the developer’s local environment for SSH keys, AWS access tokens, GitHub personal access tokens (PATs), browser cookies, and system environment variables containing database credentials.
- C2 Communication and Reconnaissance: The compromised endpoint beacons out to threat-actor-controlled command-and-control (C2) servers, transmitting basic system telemetry and awaiting secondary payloads, such as reverse shells or modular information stealers.
- Downstream Pollution: If the developer commits the compromised code into enterprise repositories or builds production Docker containers with these packages, the malware travels upstream into the firm's clients and consumer applications.
The Indian Legal Framework: Addressing Supply-Chain Intrusions
Victims of foreign cyber-espionage and data theft frequently assume that because the attackers operate from foreign jurisdictions, domestic Indian law offers no utility. In reality, establishing legal posture, statutory compliance, and reporting under Indian cyber law is essential for mitigating civil liability, insurance rejection, and regulatory penalties.
1. The Information Technology Act, 2000 (IT Act)
Several provisions of the IT Act apply directly to this form of malicious deployment:
- Section 43 (Penalty and Compensation for Damage to Computer System): Imposes civil liability for unauthorized access, downloading of data, introduction of computer contaminants or viruses, and disruption of computer networks without the owner’s consent.
- Section 66 (Computer-Related Offences): Criminalizes dishonest or fraudulent acts specified in Section 43, carrying imprisonment of up to three years or fines up to ₹5 lakh.
- Section 66F (Cyber Terrorism): Given that the attack is linked to state-sponsored actors targeting economic infrastructure and critical developer assets, Section 66F is triggered if the intrusion threatens the unity, integrity, security, or sovereignty of India, or attempts to strike terror in people. It provides for punishment extending up to life imprisonment.
- Section 70B and CERT-In Directions (2022): Mandates that organizations, intermediaries, and service providers report specified cybersecurity incidents—including supply-chain attacks, targeted scanning, and data breaches—to the Indian Computer Emergency Response Team (CERT-In) within 6 hours of noticing the incident.
2. Bharatiya Nyaya Sanhita, 2023 (BNS)
With the replacement of the Indian Penal Code, prosecutions initiated for malicious code insertion and intellectual property theft now fall under the Bharatiya Nyaya Sanhita, 2023 (BNS):
- Section 303 (Theft): Extends to the unauthorized extraction and dishonest misappropriation of proprietary electronic data and digital assets.
- Section 318 & 319 (Cheating and Cheating by Personation): Applies to the deployment of deceptive, typo-squatted software libraries designed to deceive developers into believing they are downloading trusted open-source packages.
- Section 61 (Criminal Conspiracy): Invoked against foreign and domestic actors working in concert to execute organized cyber intrusions.
3. Evidentiary Standards under the Bharatiya Sakshya Adhiniyam, 2023 (BSA)
Preserving digital evidence during a supply-chain attack requires strict adherence to legal standards. Under Section 63 of the Bharatiya Sakshya Adhiniyam, 2023 (BSA) (which replaces Section 65B of the repealed Indian Evidence Act), electronic records—such as package lockfiles (package-lock.json), firewall logs, network PCAPs, and shell history—must be accompanied by an electronic certificate verifying data integrity and device custody to be admissible in an Indian court.
Corporate Liability and Compliance Risks for Tech Companies
When an engineer accidentally pulls a malicious dependency into a software project, the employer company bears legal exposure under several frameworks:
- Digital Personal Data Protection Act, 2023 (DPDPA): If the compromised npm package results in an unauthorized exfiltration of end-user personal data, the company (as a Data Fiduciary) can face severe financial penalties (up to ₹250 crore) for failing to implement reasonable security safeguards.
- Contractual Breach and Non-Disclosure Agreements (NDAs): Technology service providers based in Mumbai or Thane that service foreign clients can face breach-of-contract claims if proprietary algorithms or client production credentials are leaked via developer workstations.
- Director Liability: Under general corporate law and regulatory mandates, directors may face liability for governance lapses if internal security baselines fell below recognized cybersecurity standards.
How Victims in Mumbai, Thane, and Mira Road Can Take Action
If your development team discovers that an engineer installed one of the 35 flagged npm packages, take these immediate legal and procedural steps:
1. Technical Containment and Evidence Preservation
- Isolate the affected workstation from the local network and cloud environments.
- Invalidate all secrets, API tokens, and SSH keys present on that machine immediately.
- Preserve unedited system logs, memory dumps, and the exact dependency tree under the supervision of a forensic expert, maintaining the chain of custody required by the BSA, 2023.
2. Statutory Reporting to CERT-In
- Prepare an incident dossier and notify CERT-In via their designated incident intake portal (
incident@cert-in.org.in) to satisfy the 6-hour requirement under Section 70B of the IT Act.
3. Lodging a Criminal Complaint in the Mumbai Metropolitan Region
- National Cyber Crime Reporting Portal: File an incident report online at cybercrime.gov.in or call the national cyber helpline at 1930.
- Mumbai Jurisdiction: Approach the BKC Cyber Police Station (Bandra-Kurla Complex) or the regional cyber police stations in the South, Central, Western, or Eastern regions under the Mumbai Police.
- Thane Jurisdiction: Report directly to the Thane Cyber Cell located at the Thane Police Commissionerate.
- Mira Road / Bhayandar Jurisdiction: Submit a formal complaint to the Mira-Bhayandar Vasai-Virar (MBVV) Police Commissionerate Cyber Crime Cell.
- Ensure the complaint requests registration of an FIR under relevant provisions of the IT Act (Sections 43, 66, 66F) read with the BNS, 2023 under the procedure laid out in the Bharatiya Nagarik Suraksha Sanhita, 2023 (BNSS).
Frequently Asked Questions (FAQs)
1. Can an individual software developer be held personally liable for running npm install on a malicious package?
Generally, an employee acting in good faith without criminal intent (mens rea) will not face criminal charges under the IT Act or BNS. However, if the employee acted with gross negligence, violated explicit company IT security policies, or intentionally stole data, they may face internal disciplinary action, civil recovery suits for damages under employment contracts, or investigation under Section 43 of the IT Act.
2. Since the threat actors are outside India, does registering a police complaint help?
Yes. A formal police complaint and FIR under BNSS, 2023 are critical for legal documentation. They establish that the company was a victim of an international cyber-espionage campaign rather than negligent in its duty of care. An official FIR is also a mandatory prerequisite for insurance claims under cyber-risk policies and shields against civil disputes from affected enterprise clients.
3. What steps must startups take under DPDPA 2023 if a developer’s credentials are leaked?
Under the DPDPA 2023, Data Fiduciaries must notify the Data Protection Board of India and affected data principals in the event of a personal data breach. Companies should immediately determine what systems the compromised credentials could access, conduct an audit to verify whether personal data was exfiltrated, and document all remediation steps.
4. What is the role of an electronic certificate under Section 63 of the BSA, 2023?
To present digital logs, terminal outputs, or network forensic reports as evidence before an Indian court or investigating officer, Section 63 of the BSA, 2023 mandates a certificate signed by the person in lawful control of the device or an authorized expert. Without this certificate, digital evidence risks being declared inadmissible.
Legal Advisory and Incident Response Support
Navigating a supply-chain cyber attack requires an integrated response that unites technical incident containment with regulatory reporting, criminal complaint filing, and corporate liability mitigation.
APS Law assists software companies, startups, and IT enterprises across Mumbai, Thane, and Mira Road with cyber-incident legal response, statutory CERT-In filings, compliance audits under the DPDPA 2023, and representation before law enforcement and regulatory authorities. Contact APS Law today to schedule a confidential 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.