Skip to main content
Mallory
← Back to News
package-repository-poisoningcredential-stealer-activitydata-exfiltration-methodpersistence-method

Malicious npm Package 'lotusbail' Steals WhatsApp Accounts and Messages

Supply Chain Risk · 8 sources · Updated 5mo ago · First seen Dec 22, 2025

Malicious npm Package 'lotusbail' Steals WhatsApp Accounts and Messages

A malicious package named lotusbail was discovered on the npm registry, masquerading as a legitimate WhatsApp Web API library. The package, a fork of the popular WhiskeySockets Baileys project, provides full WhatsApp API functionality while secretly stealing authentication tokens, session keys, messages, contact lists, media files, and documents from users. Researchers at Koi Security found that the package uses a malicious WebSocket wrapper to intercept all data passing through, encrypts the stolen information using multiple obfuscation techniques, and exfiltrates it to attacker-controlled servers.

In addition to data theft, lotusbail implements a covert device pairing process, linking the attacker's device to the victim's WhatsApp account and granting persistent access even after the malicious package is removed. The package has been available on npm for at least six months, accumulating over 56,000 downloads, and employs advanced anti-analysis techniques such as infinite loop traps to evade detection. Victims must manually remove unauthorized devices from their WhatsApp settings to revoke attacker access.

Why it matters

Impact assessment

Lotusbail is a high-impact software supply chain compromise affecting developers and organizations that integrated the npm package into WhatsApp-enabled applications or automation workflows. Exposure includes theft of WhatsApp authentication tokens, session keys, messages, contacts, media, and documents, plus persistent unauthorized account access through covert device pairing.

The scope is broad rather than narrowly targeted: the package reportedly remained on npm for at least six months and exceeded 56,000 downloads. There are clear indications of real-world exploitation because the malicious behavior executes during normal authentication and message exchange, and attacker access can persist after package removal until rogue linked devices are manually removed.

Affected populations

  • Developers using the npm package lotusbail
  • Organizations running applications built on WhatsApp Web API integrations
  • Users whose WhatsApp accounts were authenticated through affected applications
  • Development and CI/CD environments that installed the package from npm

Severity and business impact

  • Account takeover risk for WhatsApp accounts used by affected applications
  • Confidentiality loss involving messages, contact lists, media files, and documents
  • Operational disruption if compromised accounts are abused to send messages or impersonate staff
  • Reputational and legal risk if customer or business communications were exposed
  • Persistence risk because attacker-linked devices remain authorized after uninstall unless manually revoked

Scope and exploitation status

  • Package available for at least six months
  • More than 56,000 downloads reported across references
  • Active malicious behavior triggered in routine API use
  • Exploitation in the wild is strongly indicated by sustained availability, high download volume, and direct credential/data interception
Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

6 events · May 1, 2025 – Dec 23, 2025
  1. Dec 23, 202511mo ago

    lotusbail remains available on npm after disclosure

    As of the latest reporting, the malicious 'lotusbail' package was still available for download on npm despite public disclosure of its behavior. One report noted GitHub had not yet responded to inquiries about the package's status.

  2. Dec 22, 202511mo ago

    ReversingLabs reports 14 malicious NuGet packages

    ReversingLabs publicly reported a set of 14 malicious NuGet packages targeting the cryptocurrency ecosystem, expanding awareness of parallel software supply-chain activity beyond npm. The disclosure highlighted theft of crypto assets, private keys, and Google Ads OAuth credentials.

  3. Dec 22, 202511mo ago

    Technical analysis reveals obfuscation and anti-analysis features

    Public reporting disclosed that the package used multiple layers of obfuscation, custom RSA encryption, compression, AES, and 27 infinite-loop anti-debugging traps to hinder analysis and conceal exfiltration. Researchers emphasized that runtime behavioral monitoring was needed because static code review and reputation checks could miss the threat.

  4. Dec 22, 202511mo ago

    Researchers uncover lotusbail WhatsApp-stealing campaign

    Koi Security researchers identified that 'lotusbail' had been downloaded more than 56,000 times and was intercepting messages, authentication tokens, contacts, media, and documents from developer environments. They found the package also abused WhatsApp multi-device pairing to keep attacker access even after the package was removed.

  5. Jul 1, 20251y ago

    Malicious NuGet packages targeting crypto ecosystem become active

    A separate supply-chain campaign involving 14 malicious NuGet packages impersonating cryptocurrency-related libraries began operating in the wild. The packages were used to steal funds, private keys, and Google Ads OAuth credentials while inflating trust through fake popularity signals and rapid versioning.

  6. May 1, 20252y ago

    Malicious npm package 'lotusbail' appears on npm

    The trojanized npm package 'lotusbail,' masquerading as a WhatsApp Web API library based on the legitimate Baileys project, was available on npm starting around May 2025. It provided real functionality while secretly stealing WhatsApp data and enabling persistent account access.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Malware

1 linked

Affected products

1 linked
Whatsapp

Observables

2 linked

Indicator values are masked on this page. See the values in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.