{"id":"GHSA-m26x-gv96-83jc","kind":"package","aliases":["GHSA-m26x-gv96-83jc","MAL-2026-5528"],"related":[],"title":"Malicious code in events-runtime (npm)","description":"---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (aac4806dc5c887c91db1f2570abcae5b98d62dfae36bea2ddb9e2449efd62eca)\nPackage name and description impersonate the popular `events` package (Node's event emitter for all engines). The vendored `events.js` adds an undocumented branch in `EventEmitter.prototype.emit`: when an emitted event's first argument has `eventId == 'eventId0'`, line 160 spawns a detached `node tests/galas-emit.min.js` with `stdio: 'ignore'` and `windowsHide: true`. tests/galas-emit.min.js is heavily obfuscated (obfuscator.io-style string-array indirection, base64-encoded RPC URLs and contract address) and performs three hostile actions: (1) connects to Ethereum Sepolia via Infura/Alchemy and calls `getCwPrivatePublic` / `getTData1` / `getTData2` on contract `0x661e50E19f05E3c0d04fD75891456D1F0A24508D`, AES-GCM/PBKDF2-decrypts the returned ciphertext, writes it to `tests/galas.min.js`, `chmodSync` 755 and executes it with `process.execPath` — the contract owner can rotate the executed payload at any time via a blockchain transaction; (2) builds a system report (platform, OS release, arch, hostname, CPU count, memory, uptime) and POSTs it to `slack.com/api/chat.postMessage` with hardcoded bot token `xoxb-11307403103236-...` and to `api.telegram.org/bot8961878831:.../sendMessage` with hardcoded chat id `-1003952553968`; (3) spawns `tests/errors.min.js`, which polls `conversations.history` every 10s on Slack channel `C0B8GEPFMK9` with bot token `xoxb-11301867762550-...`, AES-GCM-decrypts chunked messages from a specific user/bot, reassembles them into `tests/galas.min.js`, chmods 755 and executes it — a persistent post-install RCE channel. A magic `exitexitexit` message triggers anti-forensics: `fs.unlinkSync` of `events.js`, `galas-emit.min.js`, `errors.min.js`, `galas.min.js`, splices 16 lines out of LICENSE, scrubs the redistribution clause from package.json, and issues `taskkill /PID /T /F` (Windows) or SIGTERM (Unix). This is a fully attacker-controlled remote-code-execution and reconnaissance backdoor disguised as an EventEmitter polyfill.\n\n## Source: ghsa-malware (d257fbb98fdf46bd50097486a99ebbe024faf9838deaca46cdda9a67fd154aea)\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":"events-runtime","note":"all versions","fixed":[],"affected":"","ecosystem":"npm"}],"ecosystems":["npm"],"tags":["malicious","package"],"not_affected_if":[],"how_to_check":null,"fix":null,"status":"open","published_at":"2026-06-10T18:09:36+00:00","first_seen_at":"2026-11-16T19:06:41+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":"'-1003952553968':195C '-11301867762550':212C '-11307403103236':185C '-2026':14A '-5528':15A '/api/chat.postmessage':179C '/bot8961878831:.../sendmessage':190C '/f':270C '/pbkdf2-decrypts':129C '/pid':268C '/t':269C '0x661e50e19f05e3c0d04fd75891456d1f0a24508d':125C '1':111C '10s':203C '16':254C '160':76C '2':159C '3':196C '755':138C,228C '83jc':12A,20A 'aac4806dc5c887c91db1f2570abcae5b98d62dfae36bea2ddb9e2449efd62eca':39C 'action':110C 'add':59C 'address':105C 'ae':127C,214C 'aes-gcm':126C 'aes-gcm-decrypt':213C 'amazon':37C 'amazon-inspector':36C 'anti':245C 'anti-forens':244C 'api.telegram.org':189C 'api.telegram.org/bot8961878831:.../sendmessage':188C 'arch':167C 'argument':71C 'array':96C 'attack':280C 'attacker-control':279C 'backdoor':288C 'base64':99C 'base64-encoded':98C 'blockchain':157C 'bot':182C,209C 'branch':62C 'build':160C 'c0b8gepfmk9':207C 'call':119C 'channel':206C,238C 'chat':193C 'chmod':227C 'chmodsync':137C 'chunk':217C 'ciphertext':132C 'claus':262C 'code':2A,284C 'compromis':312C 'comput':300C,320C,328C,340C 'connect':112C 'consid':310C 'contract':104C,124C,145C 'control':281C,337C 'conversations.history':201C 'count':170C 'cpu':169C 'd257fbb98fdf46bd50097486a99ebbe024faf9838deaca46cdda9a67fd154aea':298C 'decrypt':216C 'descript':43C 'detach':79C 'detail':28C 'differ':327C 'disguis':289C 'edit':31C 'emit':67C 'emitt':52C 'encod':100C 'engin':55C 'entiti':348C 'errors.min.js':251C 'ethereum':114C 'event':5A,47C,51C,68C 'eventemitt':292C 'eventemitter.prototype.emit':64C 'eventid':73C 'eventid0':74C 'events':22A 'events-runtim':4A 'events-runtime':21A 'events.js':58C,249C 'everi':202C 'execut':140C,150C,230C,285C 'exitexitexit':241C 'first':70C 'forens':246C 'fs.unlinksync':247C 'full':336C 'fulli':278C,311C 'galas-emit.min.js':250C 'galas.min.js':252C 'gcm':128C,215C 'getcwprivatepubl':120C 'gettdata1':121C 'gettdata2':122C 'ghsa':9A,17A,296C 'ghsa-m26x-gv96-83jc':8A,16A 'ghsa-malwar':295C 'given':344C 'guarante':352C 'gv96':11A,19A 'hardcod':181C,192C 'heavili':90C 'hostil':109C 'hostnam':168C 'id':194C 'ignor':84C 'immedi':324C 'imperson':44C 'indirect':97C 'infura/alchemy':117C 'inspector':38C 'instal':236C,305C,364C 'issu':266C 'key':316C 'licens':258C 'line':34C,75C,255C 'm26x':10A,18A 'magic':240C 'mal':13A 'malici':1A,24B,360C 'malwar':297C 'may':341C 'memori':171C 'messag':218C,242C 'name':41C 'node':49C,80C 'npm':7A 'obfusc':91C 'obfuscator.io':92C 'os':165C 'outsid':347C 'owner':146C 'packag':25B,40C,48C,304C,330C,356C 'package.json':264C 'payload':151C 'per':26C 'perform':107C 'persist':233C 'platform':164C 'poll':200C 'polyfil':293C 'popular':46C 'post':174C,235C 'post-instal':234C 'process.execpath':143C 'rce':237C 'reassembl':223C 'reconnaiss':287C 'redistribut':261C 'releas':166C 'remot':283C 'remote-code-execut':282C 'remov':333C,354C,358C 'report':163C 'result':362C 'return':131C 'rotat':148C,323C 'rpc':101C 'run':307C 'runtim':6A 'runtime':23A 'scrub':259C 'secret':314C 'sepolia':115C 'sigterm':273C 'slack':205C 'slack.com':178C 'slack.com/api/chat.postmessage':177C 'softwar':361C 'sourc':27C,35C,294C 'spawn':77C,197C 'specif':221C 'splice':253C 'stdio':83C 'store':317C 'string':95C 'string-array':94C 'style':93C 'system':162C 'taskkil':267C 'tests/errors.min.js':198C 'tests/galas-emit.min.js':81C,88C 'tests/galas.min.js':136C,226C 'three':108C 'time':154C 'token':183C,210C 'transact':158C 'trigger':243C 'true':87C 'undocu':61C 'unix':274C 'uptim':172C 'url':102C 'user/bot':222C 'vendor':57C 'via':116C,155C 'window':271C 'windowshid':86C 'write':133C 'xoxb':184C,211C","nicknames":[],"mitigations":[],"who_affected":null,"tier":null,"verified":{},"analyst_revisit_at":null,"fix_status":null,"audience":null,"plain_action":null,"pkeys":["eventsruntime"],"ptokens":["events","runtime"],"labels":["critical","malicious","npm","package"],"campaign_type":null,"search_a":"'-2026':14A '-5528':15A '83jc':12A,20A 'code':2A 'event':5A 'events':22A 'events-runtim':4A 'events-runtime':21A 'ghsa':9A,17A 'ghsa-m26x-gv96-83jc':8A,16A 'gv96':11A,19A 'm26x':10A,18A 'mal':13A 'malici':1A 'npm':7A 'runtim':6A 'runtime':23A","search_b":"'malici':24B 'packag':25B","search_c":"'-1003952553968':195C '-11301867762550':212C '-11307403103236':185C '/api/chat.postmessage':179C '/bot8961878831:.../sendmessage':190C '/f':270C '/pbkdf2-decrypts':129C '/pid':268C '/t':269C '0x661e50e19f05e3c0d04fd75891456d1f0a24508d':125C '1':111C '10s':203C '16':254C '160':76C '2':159C '3':196C '755':138C,228C 'aac4806dc5c887c91db1f2570abcae5b98d62dfae36bea2ddb9e2449efd62eca':39C 'action':110C 'add':59C 'address':105C 'ae':127C,214C 'aes-gcm':126C 'aes-gcm-decrypt':213C 'amazon':37C 'amazon-inspector':36C 'anti':245C 'anti-forens':244C 'api.telegram.org':189C 'api.telegram.org/bot8961878831:.../sendmessage':188C 'arch':167C 'argument':71C 'array':96C 'attack':280C 'attacker-control':279C 'backdoor':288C 'base64':99C 'base64-encoded':98C 'blockchain':157C 'bot':182C,209C 'branch':62C 'build':160C 'c0b8gepfmk9':207C 'call':119C 'channel':206C,238C 'chat':193C 'chmod':227C 'chmodsync':137C 'chunk':217C 'ciphertext':132C 'claus':262C 'code':284C 'compromis':312C 'comput':300C,320C,328C,340C 'connect':112C 'consid':310C 'contract':104C,124C,145C 'control':281C,337C 'conversations.history':201C 'count':170C 'cpu':169C 'd257fbb98fdf46bd50097486a99ebbe024faf9838deaca46cdda9a67fd154aea':298C 'decrypt':216C 'descript':43C 'detach':79C 'detail':28C 'differ':327C 'disguis':289C 'edit':31C 'emit':67C 'emitt':52C 'encod':100C 'engin':55C 'entiti':348C 'errors.min.js':251C 'ethereum':114C 'event':47C,51C,68C 'eventemitt':292C 'eventemitter.prototype.emit':64C 'eventid':73C 'eventid0':74C 'events.js':58C,249C 'everi':202C 'execut':140C,150C,230C,285C 'exitexitexit':241C 'first':70C 'forens':246C 'fs.unlinksync':247C 'full':336C 'fulli':278C,311C 'galas-emit.min.js':250C 'galas.min.js':252C 'gcm':128C,215C 'getcwprivatepubl':120C 'gettdata1':121C 'gettdata2':122C 'ghsa':296C 'ghsa-malwar':295C 'given':344C 'guarante':352C 'hardcod':181C,192C 'heavili':90C 'hostil':109C 'hostnam':168C 'id':194C 'ignor':84C 'immedi':324C 'imperson':44C 'indirect':97C 'infura/alchemy':117C 'inspector':38C 'instal':236C,305C,364C 'issu':266C 'key':316C 'licens':258C 'line':34C,75C,255C 'magic':240C 'malici':360C 'malwar':297C 'may':341C 'memori':171C 'messag':218C,242C 'name':41C 'node':49C,80C 'obfusc':91C 'obfuscator.io':92C 'os':165C 'outsid':347C 'owner':146C 'packag':40C,48C,304C,330C,356C 'package.json':264C 'payload':151C 'per':26C 'perform':107C 'persist':233C 'platform':164C 'poll':200C 'polyfil':293C 'popular':46C 'post':174C,235C 'post-instal':234C 'process.execpath':143C 'rce':237C 'reassembl':223C 'reconnaiss':287C 'redistribut':261C 'releas':166C 'remot':283C 'remote-code-execut':282C 'remov':333C,354C,358C 'report':163C 'result':362C 'return':131C 'rotat':148C,323C 'rpc':101C 'run':307C 'scrub':259C 'secret':314C 'sepolia':115C 'sigterm':273C 'slack':205C 'slack.com':178C 'slack.com/api/chat.postmessage':177C 'softwar':361C 'sourc':27C,35C,294C 'spawn':77C,197C 'specif':221C 'splice':253C 'stdio':83C 'store':317C 'string':95C 'string-array':94C 'style':93C 'system':162C 'taskkil':267C 'tests/errors.min.js':198C 'tests/galas-emit.min.js':81C,88C 'tests/galas.min.js':136C,226C 'three':108C 'time':154C 'token':183C,210C 'transact':158C 'trigger':243C 'true':87C 'undocu':61C 'unix':274C 'uptim':172C 'url':102C 'user/bot':222C 'vendor':57C 'via':116C,155C 'window':271C 'windowshid':86C 'write':133C 'xoxb':184C,211C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-06-10T18:09:36+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"osv-malicious","external_id":"MAL-2026-5528","url":"https://osv.dev/vulnerability/MAL-2026-5528","severity":"critical","published_at":"2026-06-10T18:09:36+00:00","modified_at":"2026-11-16T18:30:06+00:00","first_seen_at":"2026-11-16T19:06:41+00:00","fetched_at":"2026-11-16T19:06:41+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"}