MAL-2026-17728Malicious code in @galicia-toolkit-nestjs-20-lite/archetype (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | @galicia-toolkit-nestjs-20-lite/archetype | * |
| npm | @galicia-toolkit-nestjs-20-lite/archetype | 999.0.1 |
| npm | @galicia-toolkit-nestjs-20-lite/archetype | 999.0.2 |
| npm | @galicia-toolkit-nestjs-20-lite/archetype | 999.0.3 |
| npm | @galicia-toolkit-nestjs-20-lite/archetype | 999.0.5 |
{"schema_version":"1.7.4","id":"MAL-2026-17728","published":"2026-10-09T00:00:00Z","modified":"2026-10-12T05:15:54.080926132Z","summary":"Malicious code in @galicia-toolkit-nestjs-20-lite/archetype (npm)","details":"@galicia-toolkit-nestjs-20-lite/archetype 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 (524c80bfea6a1b22cb0a4784d2763ccf83099faab3816c9fcb1ce39bb8813152)\nOn `npm install`, this package runs `node index.js || true` as a `preinstall` script. `index.js` loads a platform-specific native addon from `prebuilds/<platform>-<arch>/metrics.node`. The Linux and Windows binaries contain the hardcoded host `oob.s4yhii.com` and a `POST /native HTTP/1.0` request line with a JSON template carrying `src`, `pkg`, `h` (hostname), `u` (username), `os`, `arch`, `rel`, `cwd`, and `e` (an environment-variable dictionary). The native code reads a hardcoded set of credential-bearing environment variables including AWS access keys, `GITHUB_TOKEN`, `NPM_TOKEN`, `NODE_AUTH_TOKEN`, Azure DevOps PAT, and GitHub Actions runtime/ID tokens, and ships them to that host over a raw socket (getaddrinfo/connect/send; WS2_32 on Windows). The Linux variant uses fork+setsid to detach the exfiltration process from the install. The shipped JavaScript is a stub exporting empty `forRoot`/`createLogger`, with no real functionality beyond loading the addon. The package name uses a scoped namespace that resembles an internal toolkit and is published at version 999.0.3, a version-overshoot pattern consistent with dependency-confusion targeting private registries.\n","affected":[{"package":{"name":"@galicia-toolkit-nestjs-20-lite/archetype","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["999.0.5","999.0.2","999.0.1","999.0.3"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"cb-minimal.js","sha256":"16e7b1448727da6e3a8ed3c5df27925bf481b6941a4934a9f297882b8ade58eb","tlsh":"2df0acc0b2d0b1a132beb65498b6110213f2d4b674c37dd4599c84993bacaa200779ff"}],"package_integrity":[{"filename":"archetype-999.0.5.tgz","hashes":{"sha1":"9b376273df21352fa5f6674d89022c64c3e1de7f","sha512_sri":"sha512-Y3D2D3IaTErXC1AoMb0SwJL24F5r6bbSaGm3RBgKRlAQmXbHZEEqFGq150pFAsrx+pNaPsJONriGDVyOV49uGQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@galicia-toolkit-nestjs-20-lite/archetype/v/999.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@galicia-toolkit-nestjs-20-lite/archetype/v/999.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@galicia-toolkit-nestjs-20-lite/archetype/v/999.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@galicia-toolkit-nestjs-20-lite/archetype/v/999.0.3"},{"type":"WEB","url":"https://www.npmjs.com/package/@galicia-toolkit-nestjs-20-lite/archetype"}],"database_specific":{"iocs":{"domains":["oob.s4yhii.com"],"files":[{"note":"Loader: DNS hostname beacon to *.dc.oob.s4yhii.com, or loads the native exfiltration addon (run via preinstall).","paths":["index.js"],"source":"PACKAGE_ARCHIVE"},{"note":"Native addon that exfiltrates host info and CI/cloud secret env vars to oob.s4yhii.com:9999.","paths":["prebuilds/linux-x64/metrics.node","prebuilds/win32-x64/metrics.node"],"source":"PACKAGE_ARCHIVE"}],"urls":["http://oob.s4yhii.com:9999/native"]},"malicious-packages-origins":[{"id":"IN-MAL-2026-021333","import_time":"2026-10-09T13:46:20.653804737Z","modified_time":"2026-10-09T13:42:43Z","sha256":"1d1a25f90c7a853514f2a5c1e87796552feb4f2fb49d9b5c45e48663460fb39e","source":"amazon-inspector","versions":["999.0.5"]},{"id":"IN-MAL-2026-021305","import_time":"2026-10-09T13:46:18.517998654Z","modified_time":"2026-10-09T13:38:30Z","sha256":"ca2bb9e88ac3e21ede8e26df45e0611e198da1b4e8878e7ea5b34cea607c54f2","source":"amazon-inspector","versions":["999.0.2"]},{"id":"IN-MAL-2026-021314","import_time":"2026-10-09T13:46:19.223528541Z","modified_time":"2026-10-09T13:39:44Z","sha256":"2bd0caaff4a987206b203555ef41da62e723aafc55ca767a9f0c1a0face68ec1","source":"amazon-inspector","versions":["999.0.1"]},{"id":"IN-MAL-2026-021292","import_time":"2026-10-09T13:46:17.434243358Z","modified_time":"2026-10-09T13:36:26Z","sha256":"524c80bfea6a1b22cb0a4784d2763ccf83099faab3816c9fcb1ce39bb8813152","source":"amazon-inspector","versions":["999.0.3"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0