NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

@xz-bails/baileysnpm

Advisory published Updated

@xz-bails/baileys is a confirmed malicious npm package (MAL-2026-20340) that executes malicious code on install (malicious versions 6.0.10, 6.0.11). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in @xz-bails/baileys (npm)

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

What this malware does

package.json declares libsignal as github:tenka-san/libsignal-node with no commit SHA, tag, or integrity check. On npm install, this resolves to whatever the mutable HEAD of that personal GitHub account's branch currently returns, and any lifecycle scripts inside the fetched tarball execute on the installer's machine. The reference points to an individual personal account rather than the upstream signalapp organization or the WhiskeySockets parent of this Baileys fork, so whoever controls that GitHub repository controls code that runs on every installer of this package. This is an off-registry dependency source for a transitive that provides cryptographic/signal-protocol functionality.

Malicious versions

2 flagged
6.0.106.0.11

Indicators of compromise (SHA-256)

94ceda91294932acad7c9fd43ad1ca3032936682606a272a9ee6cc49ba9a1c50
ff217bd2a1260e646df994e1d5a14ad54c79b81083e90755647c7ee2ee3c6ad3

Detection & response playbook

Malicious package
  1. Find it

    Search your lockfiles and build artifacts for @xz-bails/baileys (2 malicious versions).

  2. If you installed it — respond

    Remove @xz-bails/baileys from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.

  3. Did it already run?

    If @xz-bails/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. @xz-bails/baileys on npm has been identified as a malicious package (versions 6.0.10, 6.0.11 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-023036IN-MAL-2026-023038

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks @xz-bails/baileys-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.

Explore

@xz-bails/baileys (npm) malicious package — MAL-2026-20340 | O3 Security