[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f_oRvPemJY--UtMmVVixKGuYq0pGVfbXuqzkxnm-aiuQ":3},{"lesson":4},{"id":5,"slug":6,"article_id":7,"title":8,"body":9,"prevention":10,"framework_refs":11,"framework_notes":17,"status":23,"created_at":24,"published_at":25,"article":26,"tags":30,"podcasts":43,"controls":44},"5e42e214-5787-40e5-a2c5-159eb23bee8a","malicious-npm-releases-hijack-trusted-pipeline-to-steal-whatsapp-sessions-and-secrets","aaf71952-af6d-4083-a1a5-b7ec8c0948ee","Malicious npm Releases Hijack Trusted Pipeline to Steal WhatsApp Sessions and Secrets","Attackers compromised the WPPConnect project's own publishing pipeline to inject malicious code into two npm releases, meaning downstream users received trojanized packages through a channel they had every reason to trust. The malicious module exfiltrated environment variables, .env files, and WhatsApp session tokens to a Telegram bot the moment the library was imported, giving attackers immediate access to sensitive credentials. Release tags were later rewritten to hide the malicious commits, actively obstructing forensic investigation. This incident illustrates how a compromised CI\u002FCD or publishing credential can turn a project's own trusted infrastructure into an attack vector against every consumer of that package. Organizations relying on open-source libraries without integrity verification or dependency pinning are especially exposed to this class of supply chain attack.","**Immediate actions:**\n- Audit all npm packages currently in use against known-good checksums and pin dependencies to verified, immutable versions (e.g., exact SHAs rather than version ranges)\n- Rotate all environment variables, secrets, and session tokens that may have been loaded in environments where versions 2.4.1 or 2.10.82 were imported\n- Remove or block the compromised package versions in your artifact repository or private registry\n\n**Long-term improvements:**\n- Enforce cryptographic signing of all published packages and verify signatures in your build pipeline before consuming any dependency\n- Protect publishing credentials with MFA and restrict pipeline tokens to the minimum permissions needed to publish, using short-lived OIDC tokens where possible\n- Implement immutable artifact storage and Git tag protection so that release tags and published versions cannot be silently rewritten after the fact\n\n**Detection measures:**\n- Deploy software composition analysis (SCA) tools that alert on new or unexpected outbound network connections initiated during package import or build steps\n- Monitor CI\u002FCD pipeline logs and npm audit feeds for unexpected new releases from trusted packages, and require human approval before automatically consuming updated versions in production",[12,13,14,15,16],"MITRE ATT&CK T1195.002: Compromise Software Supply Chain","CIS Control 2: Inventory and Control of Software Assets (v8)","NIST SP 800-53 SA-12: Supply Chain Protection","NIS2 Article 21(2)(d)","OWASP A08:2021 Software and Data Integrity Failures",{"NIS2 Article 21(2)(d)":18,"NIST SP 800-53 SA-12: Supply Chain Protection":19,"OWASP A08:2021 Software and Data Integrity Failures":20,"MITRE ATT&CK T1195.002: Compromise Software Supply Chain":21,"CIS Control 2: Inventory and Control of Software Assets (v8)":22},"NIS2's supply chain security point requires entities to address risks arising from supplier and third-party software relationships, directly applicable to trusting an upstream npm package's publishing pipeline without integrity verification.","This control requires organizations to protect against supply chain threats by validating the integrity of software acquired from external sources, which would have caught the tampered npm releases.","The incident is a textbook example of this OWASP category: pipeline and package releases were consumed without verifying their integrity, allowing malicious code to reach production environments undetected.","Attackers inserted malicious code into legitimate package releases distributed through the project's own trusted publishing pipeline, which is precisely the technique this ATT&CK sub-technique describes.","Maintaining an inventory of approved software versions and their verified hashes would have flagged the unexpected, unsigned releases before they were consumed by downstream builds.","published","2026-11-17T00:20:25.790857+00:00","2026-11-17T00:20:25.759+00:00",{"id":7,"url":27,"slug":28,"title":29},"https:\u002F\u002Fwww.stepsecurity.io\u002Fblog\u002Fwppconnect-compromised-malicious-releases-steal-secrets-and-whatsapp-sessions","wppconnect-compromised-malicious-releases-steal-secrets-and-whatsapp-sessions-th-44ee5a","WPPConnect Compromised: Malicious Releases Steal Secrets and WhatsApp Sessions Through the Project's Own Pipeline",[31,37],{"id":32,"name":33,"slug":34,"description":35,"color":36},"1ec88fde-2d0f-4ed8-932a-33f5ccc0fdc7","Access Control","access-control","Excessive privileges, missing MFA, weak auth","#f97316",{"id":38,"name":39,"slug":40,"description":41,"color":42},"f0c2a0af-58aa-4128-87c9-6acd30f2dc48","Supply Chain","supply-chain","Third-party risk, compromised dependencies","#8b5cf6",[],[45,49,53],{"slug":46,"name":47,"problem":48},"secrets-management","Secrets management","API keys, tokens and passwords stop leaking from code, chat and configuration files.",{"slug":50,"name":51,"problem":52},"endpoint-detection-response","Endpoint detection and response (EDR and XDR)","Malware and hands-on-keyboard attackers on laptops and servers get spotted and stopped.",{"slug":54,"name":55,"problem":56},"software-supply-chain","Software supply chain security","Malicious and vulnerable open-source packages are caught before they ship."]