{"id":"GHSA-xx8r-wq9m-xr4m","kind":"package","aliases":["GHSA-xx8r-wq9m-xr4m","MAL-2026-4442"],"related":[],"title":"Malicious code in @shadowmd/libsignal-node (npm)","description":"---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (51bcabb5263ecf1f1259bd5969a921866dbb808da4fda7b9d7708baeb60c21e6)\nPackage name and description impersonate the Open Whisper Systems libsignal-node library. On require(), index.js schedules install.js, which locates an installed @whiskeysockets/baileys package in node_modules and overwrites lib/Socket/newsletter.js with attacker-supplied source via fs.writeFileSync. The injected newsletter.js contains a setTimeout that, 120 seconds after socket startup, issues a newsletter FOLLOW query for the hardcoded WhatsApp channel ID '120363407277177688@newsletter', silently subscribing every WhatsApp account managed by the host application to an attacker-controlled channel. After tampering, install.js writes a sentinel file named '.cache' containing 'Iove' inside Baileys' node_modules so the patch only runs once, then schedules process.exit(0) 20 seconds later to terminate the host process and obscure the modification timing. Modifying another installed package's source on require is an unambiguous supply-chain attack: any downstream user of the consuming application is silently coerced into following attacker content, and the integrity of the legitimate Baileys install is destroyed install-side.\n\n## Source: ghsa-malware (647f85f1a1ba5ceb46bdebb29788f6d6032407243ca70110c1353aed7fc7cd3b)\nAny 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.","summary":null,"severity":"critical","cvss":null,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"@shadowmd/libsignal-node","note":"all versions","fixed":[],"affected":"","ecosystem":"npm"}],"ecosystems":["npm"],"tags":["malicious","package"],"not_affected_if":[],"how_to_check":null,"fix":null,"status":"withdrawn","published_at":"2026-05-21T09:36:47+00:00","first_seen_at":"2026-11-16T19:06:38+00:00","triaged_at":"2026-11-16T19:08:03+00:00","updated_at":"2026-11-16T19:08:03+00:00","category":"package","confidence":null,"triage":null,"analyst_status":null,"analyst_note":null,"search":"'-2026':12A '-4442':13A '0':138C '120':80C '120363407277177688':96C '20':139C '51bcabb5263ecf1f1259bd5969a921866dbb808da4fda7b9d7708baeb60c21e6':35C '647f85f1a1ba5ceb46bdebb29788f6d6032407243ca70110c1353aed7fc7cd3b':198C 'account':102C 'amazon':33C 'amazon-inspector':32C 'anoth':153C 'applic':107C,173C 'attack':68C,111C,166C,179C 'attacker-control':110C 'attacker-suppli':67C 'bailey':126C,187C 'cach':122C 'chain':165C 'channel':94C,113C 'code':2A 'coerc':176C 'compromis':212C 'comput':200C,220C,228C,240C 'consid':210C 'consum':172C 'contain':76C,123C 'content':180C 'control':112C,237C 'descript':39C 'destroy':190C 'detail':24C 'differ':227C 'downstream':168C 'edit':27C 'entiti':248C 'everi':100C 'file':120C 'follow':88C,178C 'fs.writefilesync':72C 'full':236C 'fulli':211C 'ghsa':7A,15A,196C 'ghsa-malwar':195C 'ghsa-xx8r-wq9m-xr4m':6A,14A 'given':244C 'guarante':252C 'hardcod':92C 'host':106C,145C 'id':95C 'immedi':224C 'imperson':40C 'index.js':51C 'inject':74C 'insid':125C 'inspector':34C 'instal':57C,154C,188C,192C,205C,264C 'install-sid':191C 'install.js':53C,116C 'integr':183C 'iov':124C 'issu':85C 'key':216C 'later':141C 'legitim':186C 'lib/socket/newsletter.js':65C 'librari':48C 'libsign':46C 'libsignal-nod':45C 'line':30C 'locat':55C 'mal':11A 'malici':1A,20B,260C 'malwar':197C 'manag':103C 'may':241C 'modif':150C 'modifi':152C 'modul':62C,128C 'name':37C,121C 'newslett':87C,97C 'newsletter.js':75C 'node':47C,61C,127C 'npm':5A 'obscur':148C 'open':42C 'outsid':247C 'overwrit':64C 'packag':21B,36C,59C,155C,204C,230C,256C 'patch':131C 'per':22C 'process':146C 'process.exit':137C 'queri':89C 'remov':233C,254C,258C 'requir':50C,159C 'result':262C 'rotat':223C 'run':133C,207C 'schedul':52C,136C 'second':81C,140C 'secret':214C 'sentinel':119C 'settimeout':78C 'shadowmd/libsignal-node':4A,19A 'side':193C 'silent':98C,175C 'socket':83C 'softwar':261C 'sourc':23C,31C,70C,157C,194C 'startup':84C 'store':217C 'subscrib':99C 'suppli':69C,164C 'supply-chain':163C 'system':44C 'tamper':115C 'termin':143C 'time':151C 'unambigu':162C 'user':169C 'via':71C 'whatsapp':93C,101C 'whiskeysockets/baileys':58C 'whisper':43C 'wq9m':9A,17A 'write':117C 'xr4m':10A,18A 'xx8r':8A,16A","nicknames":[],"mitigations":[],"who_affected":null,"tier":null,"verified":{},"analyst_revisit_at":null,"fix_status":null,"audience":null,"plain_action":null,"pkeys":["libsignalnode"],"ptokens":["libsignal","node","shadowmd"],"labels":["critical","malicious","npm","package"],"campaign_type":null,"search_a":"'-2026':12A '-4442':13A 'code':2A 'ghsa':7A,15A 'ghsa-xx8r-wq9m-xr4m':6A,14A 'mal':11A 'malici':1A 'npm':5A 'shadowmd/libsignal-node':4A,19A 'wq9m':9A,17A 'xr4m':10A,18A 'xx8r':8A,16A","search_b":"'malici':20B 'packag':21B","search_c":"'0':138C '120':80C '120363407277177688':96C '20':139C '51bcabb5263ecf1f1259bd5969a921866dbb808da4fda7b9d7708baeb60c21e6':35C '647f85f1a1ba5ceb46bdebb29788f6d6032407243ca70110c1353aed7fc7cd3b':198C 'account':102C 'amazon':33C 'amazon-inspector':32C 'anoth':153C 'applic':107C,173C 'attack':68C,111C,166C,179C 'attacker-control':110C 'attacker-suppli':67C 'bailey':126C,187C 'cach':122C 'chain':165C 'channel':94C,113C 'coerc':176C 'compromis':212C 'comput':200C,220C,228C,240C 'consid':210C 'consum':172C 'contain':76C,123C 'content':180C 'control':112C,237C 'descript':39C 'destroy':190C 'detail':24C 'differ':227C 'downstream':168C 'edit':27C 'entiti':248C 'everi':100C 'file':120C 'follow':88C,178C 'fs.writefilesync':72C 'full':236C 'fulli':211C 'ghsa':196C 'ghsa-malwar':195C 'given':244C 'guarante':252C 'hardcod':92C 'host':106C,145C 'id':95C 'immedi':224C 'imperson':40C 'index.js':51C 'inject':74C 'insid':125C 'inspector':34C 'instal':57C,154C,188C,192C,205C,264C 'install-sid':191C 'install.js':53C,116C 'integr':183C 'iov':124C 'issu':85C 'key':216C 'later':141C 'legitim':186C 'lib/socket/newsletter.js':65C 'librari':48C 'libsign':46C 'libsignal-nod':45C 'line':30C 'locat':55C 'malici':260C 'malwar':197C 'manag':103C 'may':241C 'modif':150C 'modifi':152C 'modul':62C,128C 'name':37C,121C 'newslett':87C,97C 'newsletter.js':75C 'node':47C,61C,127C 'obscur':148C 'open':42C 'outsid':247C 'overwrit':64C 'packag':36C,59C,155C,204C,230C,256C 'patch':131C 'per':22C 'process':146C 'process.exit':137C 'queri':89C 'remov':233C,254C,258C 'requir':50C,159C 'result':262C 'rotat':223C 'run':133C,207C 'schedul':52C,136C 'second':81C,140C 'secret':214C 'sentinel':119C 'settimeout':78C 'side':193C 'silent':98C,175C 'socket':83C 'softwar':261C 'sourc':23C,31C,70C,157C,194C 'startup':84C 'store':217C 'subscrib':99C 'suppli':69C,164C 'supply-chain':163C 'system':44C 'tamper':115C 'termin':143C 'time':151C 'unambigu':162C 'user':169C 'via':71C 'whatsapp':93C,101C 'whiskeysockets/baileys':58C 'whisper':43C 'write':117C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-05-21T09:36:47+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"osv-malicious","external_id":"MAL-2026-4442","url":"https://osv.dev/vulnerability/MAL-2026-4442","severity":"critical","published_at":"2026-05-21T09:36:47+00:00","modified_at":"2026-11-16T18:30:04+00:00","first_seen_at":"2026-11-16T19:06:38+00:00","fetched_at":"2026-11-16T19:06:38+00:00","note":null}],"documents":[],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}