目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%
← 返回恶意软件包
npm active

@galicia-toolkit-nestjs/commons

MAL-2026-17722
2026-10-12 05:15:54
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in @galicia-toolkit-nestjs/commons (npm)

凭据/密钥窃取安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
—
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@galicia-toolkit-nestjs/commons*
npm@galicia-toolkit-nestjs/commons3.0.1
npm@galicia-toolkit-nestjs/commons999.0.1
npm@galicia-toolkit-nestjs/commons999.0.6
npm@galicia-toolkit-nestjs/commons999.0.7
npm@galicia-toolkit-nestjs/commons999.0.8
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-17722","published":"2026-10-09T00:00:00Z","modified":"2026-10-12T05:15:54.072076538Z","summary":"Malicious code in @galicia-toolkit-nestjs/commons (npm)","details":"@galicia-toolkit-nestjs/commons 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 (eae27acb3901d275439e482d51a1451df67c1a6b2011f35881253a3fa8d2456b)\nThe package ships a tiny index.js that require()s a bundled ELF at prebuilds/linux-x64/metrics.node inside a swallow-all try/catch on module load. No C/C++ source, binding.gyp, or node-gyp/prebuild tooling is present, so the native binary cannot be rebuilt from source and its behavior is opaque to consumers. Strings extracted from the binary show it reads CI and cloud credential environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, GITHUB_TOKEN, NPM_TOKEN, NODE_AUTH_TOKEN, SYSTEM_ACCESSTOKEN, ACTIONS_RUNTIME_TOKEN, ACTIONS_ID_TOKEN_REQUEST_TOKEN) along with hostname, username and cwd, then opens a raw socket to the hardcoded host oob.s4yhii.com and issues POST /native HTTP/1.0 with a JSON body of the collected values. The addon daemonizes via fork+setsid to persist beyond the parent process. The destination host is unrelated to NestJS or any plausible publisher of a 'commons' utility. The package name mimics an internal-looking org scope and is published at version 999.0.6 with no repository and an UNLICENSED field, matching the dependency-confusion lure shape intended to win resolution against a private internal package of a similarly-named scope.\n","affected":[{"package":{"name":"@galicia-toolkit-nestjs/commons","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["999.0.7","999.0.1","999.0.8","999.0.6","3.0.1"],"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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"prebuilds/linux-x64/metrics.node","sha256":"daedefd6a8a02449e29a163a1a92edc0859c0cdb814ec1024b6615fa78bdd375","tlsh":"8272641bb261ce3bc4dc4278015b5ab0b1b25474e77353231b10a1ba3e927485ebaf9a"},{"path":"package.json","sha256":"c667734240f4a5cd8743a5a958ba9bf356027e6c870187e5b7f6eae8abcbd8dd","tlsh":"10c09b78d5315c2b1a415f5dadd52c5955ef066641cdc51842315330c2aaabc41cd16b"}],"package_integrity":[{"filename":"commons-999.0.7.tgz","hashes":{"sha1":"1b449670ceb97171ec50f92588771d885aa9f990","sha512_sri":"sha512-eFfOTDiNLN8HiHdrsv5AIRSejzLSSFilaVuXC+gaUpzlcVluMck/l1jy7hHStsBrY9EFYtvXvHxb5dDDh0UYfw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@galicia-toolkit-nestjs/commons/v/999.0.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@galicia-toolkit-nestjs/commons/v/999.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@galicia-toolkit-nestjs/commons/v/999.0.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@galicia-toolkit-nestjs/commons/v/999.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@galicia-toolkit-nestjs/commons/v/3.0.1"},{"type":"WEB","url":"https://www.npmjs.com/package/@galicia-toolkit-nestjs/commons"}],"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-021302","import_time":"2026-10-09T13:46:18.294142771Z","modified_time":"2026-10-09T13:38:00Z","sha256":"37676e64576d3dc8fa07b541477894ba45dc0af760d06bb4630bb26f29be16f7","source":"amazon-inspector","versions":["999.0.7"]},{"id":"IN-MAL-2026-021329","import_time":"2026-10-09T13:46:20.353498672Z","modified_time":"2026-10-09T13:42:04Z","sha256":"6ac8bb5bf597abb810ef4fec7dd153b4c7403dc6fcaec9e6d1bb538aa6c6f396","source":"amazon-inspector","versions":["999.0.1"]},{"id":"IN-MAL-2026-021290","import_time":"2026-10-09T13:46:17.249958788Z","modified_time":"2026-10-09T13:36:09Z","sha256":"6b7cdcec1573755daec3eab422bec9fadf804064fb5c5ce97b908fed5e2ab831","source":"amazon-inspector","versions":["999.0.8"]},{"id":"IN-MAL-2026-021325","import_time":"2026-10-09T13:46:20.048867916Z","modified_time":"2026-10-09T13:41:28Z","sha256":"eae27acb3901d275439e482d51a1451df67c1a6b2011f35881253a3fa8d2456b","source":"amazon-inspector","versions":["999.0.6"]},{"id":"IN-MAL-2026-021338","import_time":"2026-10-09T17:16:16.835908736Z","modified_time":"2026-10-09T17:08:31Z","sha256":"e6473289d56c3d58e09f9c54a2a235341e884470a8b607c22ae8c078a744834a","source":"amazon-inspector","versions":["3.0.1"]}]},"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