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

baileys-mbuildernpm

Advisory published Updated

baileys-mbuilder is a confirmed malicious npm package (MAL-2026-14529) that executes malicious code on install (malicious versions 4.5.0, 4.5.0-beta, 4.5.0-cjs…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in baileys-mbuilder (npm)

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

What this malware does

package.json declares "postinstall": "node lib/index.js --install", and lib/index.js is a single ~6.3 MB JSFuck-style eval() expression that reconstructs its source character-by-character from boolean/array coercions and %-unescape. The same file is the package's main, and lib/index.mjs re-requires it, so both npm install and any subsequent require/import of the package execute the obfuscated payload. The README documents that the postinstall step downloads MessageBuilder.js from a remote repository and that MB.enableAutoUpdate(ms, cb) periodically re-fetches remote JavaScript, hash-compares it, and on mismatch dynamic-import()s the new module, rebinding the default export via a Proxy so consumers transparently run the newly fetched code. The fetch destination, pinning, and any integrity checks are hidden inside the JSFuck blob and are not visible to static review. The obfuscation scale (6 MB of JSFuck for a message-builder library) has no legitimate purpose and defeats scanner and reviewer inspection of what actually executes on installer machines.

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

10 flagged
4.5.04.5.0-beta4.5.0-cjs4.5.0-custom4.5.0-lts4.5.1-cjs4.5.2-cjs4.5.3-cjs4.6.0-lts4.7.0-lts

Indicators of compromise (SHA-256)

396af19b57be005328e2697ade736320c214b8f997f5deca03911df68b4c7e63
508ded2b926100712d9abf255683432d44a917c067f9d69b14b4c678918ce8bb
0482ab1041416a7438e0a59eb218712e08f43a0faf49c297abb6fe517b8a6447
586f29d5123c4e1fb9367bca59e66788aeed1d749ad41952b6d545c387f21de8
6bfacc98b6a177f3dabce11699973e8b3d655d1e49ef7ae19b91960ee91fa880
b714c5ee6acfc9936837a38ac794a18ebc5dbc6d6294f256698f854036d3134f
d04dfbb9f9863d21d21e32e6ffbb730cd2fd7ed70569ebefe8965e951aaab3f8
02fe10f3dddf4d6318db9e769ce1820f210f5aa4ba7dd0ca946e12a8e2fe3435
3a71c5dcade76b8631b1385c1d5316a9dadca99698a3642b6f6dcc5839dae7a6
ad37d53c0ae13d15d8623521d7182bb4357d765e6bc7b54692b42ef601db148c
fb71fc1017aa16645b4eeee91c2cd69a35f424f754ff42e79bd77317921ed7b4

Detection & response playbook

Malicious package
  1. Find it

    Search your lockfiles and build artifacts for baileys-mbuilder (10 malicious versions).

  2. If you installed it — respond

    Remove baileys-mbuilder 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 baileys-mbuilder 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. baileys-mbuilder on npm has been identified as a malicious package (versions 4.5.0, 4.5.0-beta, 4.5.0-cjs, 4.5.0-custom, 4.5.0-lts, 4.5.1-cjs, 4.5.2-cjs, 4.5.3-cjs, and 2 more flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-8m87-xx52-4rjwIN-MAL-2026-018792IN-MAL-2026-019434IN-MAL-2026-019431IN-MAL-2026-019428IN-MAL-2026-019433IN-MAL-2026-019432IN-MAL-2026-019436IN-MAL-2026-019438IN-MAL-2026-019437IN-MAL-2026-019435

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks baileys-mbuilder-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

baileys-mbuilder (npm) malicious package — MAL-2026-14529 | O3 Security