Malicious package · npm
Malicious code in @vsxid/furina-baileys (npm)
1.0.0No safe version. Remove it.What it does
Version 1.0.0, a fork of the Baileys WhatsApp Web library: the default socket options in lib/Defaults/index.js set autoFollowChannels to ['120363429320696419@newsletter'] (kept whenever the application passes no value of its own), and lib/Socket/index.js binds lib/Utils/newsletter-auto-follow.js to every socket. On every connection open it sends a newsletter FOLLOW for that channel from the user's authenticated WhatsApp session (3 seconds after the pending-notification sync, or after 15 seconds), retrying up to 8 times per connection; the file's own comments say the requests and retries are "deliberately silent". The README describes channel follow and unfollow only as calls the application makes, and never mentions the default channel. In addition, lib/index.js runs a self-updater (lib/Utils/self-updater.js) every time the package is imported: when the registry's latest version is newer than the installed one, it replaces the package's own installed directory with that version and restarts the process (or exits for a process manager to restart it), whatever version the application pinned, and it accepts only a new version that keeps the same startup updater; it is off only when FURINA_BAILEYS_DISABLE_SELF_UPDATE=1, which the README does not mention. Version 0.0.0-stage is a placeholder without this code.
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.
No fix · Remove and contain
npm uninstall @vsxid/furina-baileysSources