{"id":"GHSA-h6v3-2957-9j3g","kind":"package","aliases":["GHSA-h6v3-2957-9j3g","MAL-2026-18316"],"related":[],"title":"Malicious code in @greenlake/auth (npm)","description":"@greenlake/auth is a dependency-confusion package: it is described as a \"Compatibility shim\", uses inflated version numbers, and its README calls it an \"authorized dependency-confusion test\". Each listed version (3.0.0) has a postinstall script that runs `node beacon.cjs` on npm install, and index.js calls the same code when the package is imported; it POSTs the hostname, install path and current working directory over plain HTTP to `http://185.158.107.175:8787/_ah/dc`, and index.js exports a Proxy that returns no-op functions so builds importing the real package keep running. The npm account wiseke published 14 such packages under the @greenlake, @sxm-web, @drone-js-ext and @ppa-web-components scopes between 2026-10-23 21:23 and 2026-10-25 14:28 UTC; index.js is byte-identical to that of ph-common (MAL-2026-1809), which sends to the same endpoint.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d51386d7bf7b3357a9ea920b99fa08f3c2d37532e877f33a5d8d0a78c12702b5)\nThe package declares `postinstall: node beacon.cjs` and additionally fires the same beacon from `index.js` on require(). The beacon POSTs a JSON payload containing `os.hostname()`, `__dirname` (install path), `process.cwd()`, and the Node version to the hardcoded plain-HTTP bare-IP endpoint `http://185.158.107.175:8787/_ah/dc`, which is unrelated to any `@greenlake` publisher infrastructure. The package otherwise ships no functional code: `index.js` self-describes as a 'Compatibility shim' and exports a Proxy whose `get` trap returns a no-op for every property access. The shape — a `@scope/<name>` no-op shim whose only behavior is identifying the installing host to an attacker-controlled IP on `npm install` — matches the dependency-confusion probe pattern, where a public package is published under an internal scope name to map which corporate installers resolve to the public registry.\n\n## Source: ghsa-malware (e39ad6eeb6fd18f5aeff7b616ce8bfeb8f75d50f2ac28bca24a594dfa83b1510)\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":"@greenlake/auth","fixed":[],"affected":"all versions","ecosystem":"npm"}],"ecosystems":["npm"],"tags":["malicious","package"],"not_affected_if":[],"how_to_check":null,"fix":null,"status":"open","published_at":"2026-10-23T21:26:30+00:00","first_seen_at":"2026-10-26T20:51:54+00:00","triaged_at":"2026-10-26T20:55:45+00:00","updated_at":"2026-10-26T21:05:48+00:00","category":"package","confidence":null,"triage":null,"analyst_status":null,"analyst_note":null,"search":"'-10':140C,146C '-1809':164C '-18316':14A '-2026':13A,163C '-23':141C '-25':147C '-9':10A,19A '14':119C,148C '185.158.107.175':93C,227C '2026':139C,145C '21':142C '23':143C '28':149C '2957':9A,18A '3.0.0':56C '8787/_ah/dc':94C,228C 'access':267C 'account':116C 'addit':192C 'amazon':182C 'amazon-inspector':181C 'attack':287C 'attacker-control':286C 'author':48C 'bare':224C 'bare-ip':223C 'beacon':196C,202C 'beacon.cjs':64C,190C 'behavior':278C 'build':107C 'byte':154C 'byte-ident':153C 'call':45C,70C 'code':2A,73C,243C 'common':161C 'compat':36C,250C 'compon':136C 'compromis':339C 'comput':327C,347C,355C,367C 'confus':29C,51C,297C 'consid':337C 'contain':207C 'control':288C,364C 'corpor':314C 'current':86C 'd51386d7bf7b3357a9ea920b99fa08f3c2d37532e877f33a5d8d0a78c12702b5':184C 'declar':187C 'depend':28C,50C,296C 'dependency-confus':27C,49C,295C 'describ':33C,247C 'detail':173C 'differ':354C 'directori':88C 'dirnam':209C 'drone':129C 'drone-js-ext':128C 'e39ad6eeb6fd18f5aeff7b616ce8bfeb8f75d50f2ac28bca24a594dfa83b1510':325C 'edit':176C 'endpoint':170C,226C 'entiti':375C 'everi':265C 'export':97C,253C 'ext':131C 'fire':193C 'full':363C 'fulli':338C 'function':105C,242C 'get':257C 'ghsa':7A,16A,323C 'ghsa-h6v3':6A,15A 'ghsa-malwar':322C 'given':371C 'greenlak':124C,234C 'greenlake/auth':4A,21A,24C 'guarante':379C 'h6v3':8A,17A 'hardcod':219C 'host':283C 'hostnam':82C 'http':91C,222C 'ident':155C 'identifi':280C 'immedi':351C 'import':78C,108C 'index.js':69C,96C,151C,198C,244C 'inflat':39C 'infrastructur':236C 'inspector':183C 'instal':67C,83C,210C,282C,292C,315C,332C,391C 'intern':308C 'ip':225C,289C 'j3g':11A,20A 'js':130C 'json':205C 'keep':112C 'key':343C 'line':179C 'list':54C 'mal':12A,162C 'malici':1A,22B,387C 'malwar':324C 'map':312C 'match':293C 'may':368C 'name':310C 'no-op':102C,261C,272C 'node':63C,189C,215C 'npm':5A,66C,115C,291C 'number':41C 'op':104C,263C,274C 'os.hostname':208C 'otherwis':239C 'outsid':374C 'packag':23B,30C,76C,111C,121C,186C,238C,303C,331C,357C,383C 'path':84C,211C 'pattern':299C 'payload':206C 'per':171C 'ph':160C 'ph-common':159C 'plain':90C,221C 'plain-http':220C 'post':80C,203C 'postinstal':59C,188C 'ppa':134C 'ppa-web-compon':133C 'probe':298C 'process.cwd':212C 'properti':266C 'proxi':99C,255C 'public':302C,319C 'publish':118C,235C,305C 'readm':44C 'real':110C 'registri':320C 'remov':360C,381C,385C 'requir':200C 'resolv':316C 'result':389C 'return':101C,259C 'rotat':350C 'run':62C,113C,334C 'scope':137C,271C,309C 'script':60C 'secret':341C 'self':246C 'self-describ':245C 'send':166C 'shape':269C 'shim':37C,251C,275C 'ship':240C 'softwar':388C 'sourc':172C,180C,321C 'store':344C 'sxm':126C 'sxm-web':125C 'test':52C 'trap':258C 'unrel':231C 'use':38C 'utc':150C 'version':40C,55C,216C 'web':127C,135C 'whose':256C,276C 'wisek':117C 'work':87C","nicknames":[],"mitigations":[],"who_affected":null,"tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-23T21:26:30+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"osv-malicious","external_id":"MAL-2026-18316","url":"https://osv.dev/vulnerability/MAL-2026-18316","severity":"critical","published_at":"2026-10-23T21:26:30+00:00","modified_at":"2026-10-26T16:45:06+00:00","first_seen_at":"2026-10-26T20:51:54+00:00","fetched_at":"2026-10-26T20:51:54+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}