{"id":"MAL-2026-20281","summary":"Malicious code in spencer-braincore (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4ec1d797117854b43cd4c33034a339b7590515ddebf4b1aabaa3b11b9a693814)\nspencer-braincore is a Baileys-derived WhatsApp library whose `makeNewsletterSocket` schedules an unconditional timer (90s after connect, repeating every 3 hours) that fetches a JSON list from the hardcoded endpoint https://savage-prox.onrender.com/api/v1/links and uses the consumer's authenticated WhatsApp session to invoke `groupAcceptInvite` for each returned invite code and the newsletter-follow IQ for each returned channel id. The destination is not caller-configurable and the behavior fires on any normal use of the advertised `makeWASocket` entrypoint, so the installer's WhatsApp identity is silently used to join groups and follow channels chosen by the author on a remotely mutable list. The published tarball also ships a `.bak` sibling containing the same auto-follow loop with the endpoint base64-encoded (decoding to https://files.gifted.co.ke/file/chJids.json), indicating the destination was previously concealed. The covert action uses the installer's authenticated identity, but there is no credential theft, filesystem persistence, remote code execution, or destruction.\n","modified":"2026-11-20T03:30:13.872769792Z","published":"2026-11-20T02:54:13Z","database_specific":{"malicious-packages-origins":[{"sha256":"4ec1d797117854b43cd4c33034a339b7590515ddebf4b1aabaa3b11b9a693814","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-022927","import_time":"2026-11-20T03:14:05.913260744Z","modified_time":"2026-11-20T02:54:13Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/spencer-braincore/v/1.0.0"}],"affected":[{"package":{"name":"spencer-braincore","ecosystem":"npm","purl":"pkg:npm/spencer-braincore"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/spencer-braincore/MAL-2026-20281.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"package_integrity":[{"hashes":{"sha512_sri":"sha512-mp3EVIfu7tCU+HuD7N2S/U9cD3hOSl2KmKe+cht24DMLUjBjS792u2nUUjL12jzhgob7rrIczQ1g8rxPzYcrpA==","sha1":"4c52096bb36451ed329af69257a715dbfe89584c"},"filename":"spencer-braincore-1.0.0.tgz"}],"evidence_files":[{"path":"lib/Socket/newsletter.js","sha256":"16a6846293726b7ae1ac2628cfecbaf9bba1ede006dc1f7429d7ae916f883379","tlsh":"993223a699f6866107b77468922fb0e1b225f1033919dc56bf8cd1120f4e1acedb27c8"},{"path":"lib/Socket/newsletter.js.bak.1790234479","sha256":"c5fd93d838a136067d6bc89d5df6e2433cfa693ff13fe5fe44dc8bcd3a3c5180","tlsh":"5e12d1a59db6966007a77468962f70e1b225f1433d29ac52ff8cc0120f4e19cedb27c9"}]}}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}