Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

@modss/baileysnpm

Advisory published Updated

@modss/baileys is a confirmed malicious npm package (MAL-2026-15918) that steals credentials and exfiltrates sensitive data (malicious versions 1.0.0, 1.0.1, 1.0.2…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in @modss/baileys (npm)

MAL-2026-15918
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall @modss/baileys

What this malware does

@modss/baileys is a renamed fork of the Baileys WhatsApp Web library published 2026-09-01 and 2026-09-02 under a scope created the same day. lib/Socket/newsletter.js sets NEWSLETTER_LIST_URL to https://raw.githubusercontent.com/Dayyy-19/Anu/main/Newsletter.json. On every connection.update with connection === 'open', autoFollowConfiguredNewsletters() fetches that list and issues an executeWMexQuery FOLLOW for each id on the user's own authenticated WhatsApp session, caching followed ids in session/followed-newsletters.json. An Indonesian comment in the file explains that the list lives on GitHub so channels can be added or removed without redeploying the code, i.e. the follow targets are publisher-controlled at runtime. All three published versions carry the identical handler. The package also aliases its libsignal dependency to @modss/libsignal, which pkgwarden read as a plain rename with no malicious content. No credential or session-key theft was observed, and the dead-drop URL was not requested by pkgwarden. All versions were fetched from the npm registry and read by hand on 2026-09-03. Same remote-dead-drop shape as MAL-2026-15819 (@mrlegendbot/baileys) and MAL-2026-13932 (my-auto-follow).

package.json declares a runtime dependency libsignal whose source is github:RILLYZY/libsignal-node — a GitHub reference with no commit SHA, tag, or version pin. On npm install, npm fetches whatever HEAD of that personal repository currently returns and runs any lifecycle scripts it contains on the installer's machine, with no integrity check. Whoever controls that GitHub account controls code that executes on any machine installing @modss/baileys, and the fetched content can change silently between installs. The named dependency also shadows the legitimate libsignal cryptographic library, meaning callers of the package's signal-protocol paths load code from the unpinned third-party fork rather than a registry-audited artifact.

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Malicious versions

4 flagged
1.0.01.0.11.0.22.0.0

Indicators of compromise (SHA-256)

f380df417118802ce37118bae231cadcd5f41d20c60ac6ad830d9f62a53c8601
0b6522f1f967259853346030f220d40ef098fc3d54116a23161fb4ccf97f9bd3

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for @modss/baileys (4 malicious versions).

  2. If you installed it — respond

    @modss/baileys is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If @modss/baileys was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. @modss/baileys on npm has been identified as a malicious package (versions 1.0.0, 1.0.1, 1.0.2, 2.0.0 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-4c9v-m7qm-2mprIN-MAL-2026-021494

References

Credits

  • Amazon Inspector · finder
  • pkgwarden · finder

Detect & block this

O3 blocks @modss/baileys-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

@modss/baileys (npm) malicious package — MAL-2026-15918 | O3 Security