spencer-braincore (npm): malicious Baileys fork silently joins WhatsApp groups/channels via hardcoded remote list (no CVE)
Severity: critical · Patch status: no-fix-needed · Since 2026-11-20
The npm package spencer-braincore, a Baileys-derived WhatsApp library, was published with embedded malicious code. Its makeNewsletterSocket schedules an unconditional timer (90s after connect, repeating every 3 hours) that fetches a JSON list from a hardcoded endpoint (https://savage-prox.onrender.com/api/v1/links) and uses the consumer's authenticated WhatsApp session to accept group invites and follow newsletter channels chosen by the author on a remotely mutable list. A .bak file in the tarball contains the same loop with a base64-encoded alternate endpoint, indicating prior concealment. Any normal use of the advertised makeWASocket entrypoint triggers the behavior. No credential theft, persistence, RCE, or destruction is involved. Affected version is 1.0.0; no patched version exists, so the package should be removed.
What to do
- Remove spencer-braincore from all projects and lockfiles; do not install any version
- Audit WhatsApp sessions/accounts that used the package for unauthorized group joins and channel follows, and leave them
- Rotate/revoke WhatsApp linked-device sessions used with the package
- Review dependency trees for other Baileys-derived forks with similar auto-follow behavior
- Block the hardcoded endpoints (savage-prox.onrender.com, files.gifted.co.ke) at network egress
Sources
All live incidents on Threat Watch