{"id":"MAL-2026-17727","revision":"f3ec6e0130bf42ca824259fc75af27ec","records":[{"revision":"f3ec6e0130bf42ca824259fc75af27ec","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-17727","aliases":[],"title":"Malicious code in @galicia-toolkit-nestjs-20/paas (npm)","description":"@galicia-toolkit-nestjs-20/paas is a dependency confusion package published to npm on 2026-10-09 by the account s4yhii__, targeting the internal @galicia-toolkit-* / @brick-v2 package namespaces with inflated versions (e.g. 999.0.x). Early versions resolve <hostname>.<tag>.dc.oob.s4yhii.com via DNS to beacon the victim's hostname. Later versions run `node index.js` from a preinstall hook, which loads a bundled native addon (prebuilds/<platform>-<arch>/metrics.node, Linux and Windows builds). The addon forks a detached process that collects hostname, username, OS/arch, cwd and the full values of CI/cloud secrets from environment variables (NPM_TOKEN, NODE_AUTH_TOKEN, GITHUB_TOKEN, ACTIONS_RUNTIME_TOKEN, ACTIONS_ID_TOKEN_REQUEST_TOKEN, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, SYSTEM_ACCESSTOKEN, AZURE_DEVOPS_EXT_PAT and others) and sends them as JSON via HTTP POST /native to oob.s4yhii.com:9999.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ffdc9c111498bf0f75d014ef58b811df488c9014addfb1ed64f7ab28cf9c11b1)\nOn require('@galicia-toolkit-nestjs-20/paas'), index.js unconditionally loads prebuilds/<platform>-<arch>/metrics.node at module top level inside a try/catch. The shipped ELF addon reads AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, GITHUB_TOKEN, NPM_TOKEN, NODE_AUTH_TOKEN, SYSTEM_ACCESSTOKEN, ACTIONS_RUNTIME_TOKEN, and ACTIONS_ID_TOKEN_REQUEST_TOKEN from the process environment, together with hostname, uid, and cwd, and POSTs them as JSON to oob.s4yhii.com over a raw socket (gethostbyname/connect/send, request line 'POST /native HTTP/1.0'). The addon uses fork+setsid to background the exfiltration. The package ships no C/C++ source and no binding.gyp, is self-labeled as a NestJS toolkit, and the only on-load effect of the stub is to execute this opaque native binary. Strings observed inside metrics.node include 'AWS_SECRET_ACCESS_KEY', 'GITHUB_TOKEN', 'NPM_TOKEN', 'ACTIONS_RUNTIME_TOKEN', 'oob.s4yhii.com', and the hardcoded HTTP request format. The scoped name under an organization-shaped '@galicia-toolkit-nestjs-20' namespace combined with the implausibly high 999.0.1 version is consistent with a dependency-confusion lure designed to win resolution against an internal package.\n","state":0,"publishedAt":"2026-10-09T00:00:00+00:00","modifiedAt":"2026-10-12T05:30:05.9415225+00:00","affected":[{"ecosystem":"npm","name":"@galicia-toolkit-nestjs-20/paas","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["3.0.3","3.0.5","3.0.7","3.0.6","999.0.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@galicia-toolkit-nestjs-20/paas/v/3.0.3","https://www.npmjs.com/package/@galicia-toolkit-nestjs-20/paas/v/3.0.5","https://www.npmjs.com/package/@galicia-toolkit-nestjs-20/paas/v/3.0.7","https://www.npmjs.com/package/@galicia-toolkit-nestjs-20/paas/v/3.0.6","https://www.npmjs.com/package/@galicia-toolkit-nestjs-20/paas/v/999.0.1","https://www.npmjs.com/package/@galicia-toolkit-nestjs-20/paas"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-17727","license":"OSV · upstream source license applies","key":"osv:MAL-2026-17727","identifiers":["MAL-2026-17727"]},"retained":false,"historicalAffected":[]}],"coverage":[]}