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

目标: 1000 元 · 已筹: 1359 元

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

webservices.rest-utils

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

Summary

Malicious code in webservices.rest-utils (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
1
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmwebservices.rest-utils*
npmwebservices.rest-utils1.0.5
npmwebservices.rest-utils1.0.7
npmwebservices.rest-utils1.0.8
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-09T09:19:10Z","published":"2026-05-21T08:12:18Z","schema_version":"1.7.4","id":"MAL-2026-4336","aliases":["GHSA-v62r-4vqp-f32g"],"summary":"Malicious code in webservices.rest-utils (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5c9c78a4d0c87def69bbc5337e41a730e7ca6ae898426759915f053dc584581c)\npackage.json declares both `preinstall` and `postinstall` hooks that execute `index.js`, which exfiltrates installer data to a base64-encoded Cloudflare Worker destination (`openmrs-sol-dev-v2.lapxa354.workers.dev`). The payload includes hostname, username, network interfaces, /etc/resolv.conf,.git/HEAD, ~40 CI/CD environment variables (GITHUB_*, GITLAB_*, AWS_*, CIRCLE_*, BUILDKITE_*, VERCEL_*, etc.), recursively walked package.json metadata,.npmrc registry/scope hints, and presence indicators for ~/.ssh, ~/.aws/credentials, ~/.kube/config, ~/.docker, ~/.npmrc, ~/.gitconfig, shell histories. When cloud env-var probes match, the script contacts the cloud metadata IP (encoded as decimal `2852039166` == 169.254.169.254) to harvest live AWS IMDSv2 IAM tokens, GCP service-account access tokens, and Azure managed-identity tokens — first 40 characters of each are appended to the exfil. It additionally performs DNS reconnaissance against ~25 internal hostnames (kubernetes.default.svc.cluster.local, vault.internal, consul.service.consul, gitlab.local, jenkins.local, ec2.internal, rancher.internal, etc.) for lateral-movement targeting. `package.json` declares 11 `bin` aliases — `webpack`, `vite`, `tsc`, `eslint`, `jest`, `gulp`, `next`, `turbo`, `prettier`, `tsnode` — all pointing at the same malicious `index.js`, so every subsequent invocation of those common dev commands re-triggers the exfiltrator while forwarding to the real tool to mask the hijack. Obfuscation (base64 destination, decimal-encoded metadata IP, `MalekAbuLialaResearch/1.0` cover User-Agent, `[Webpack-Debug-MAB-v1]` log label) confirms intent.\n\n## Source: ghsa-malware (0b73e8e4e7f0f01d1e611280e8922e8d3caa66ca7bcfb47a95a3d94a0d56080d)\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.\n","affected":[{"package":{"ecosystem":"npm","name":"webservices.rest-utils"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.7","1.0.8","1.0.5"],"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"}],"indicators":{"domains":["mongodb.internal","openmrs-sol-dev-v2.lapxa354.workers.dev","ec2.internal","active-directory.local","internal.jira.local","kubernetes.default.svc","redis.internal","intranet.local","kubernetes.default.svc.cluster.local","vault.internal","consul.service.consul","kubernetes.default","compute.internal","gitlab.internal","jenkins.local","jenkins.internal","azure.internal","istio-ingressgateway.istio-system.svc.cluster.local","redis.local","db.local","postgres.local","lan","home","internal","gitlab.local","rancher.internal","google.internal","corp.local"],"evidence_files":[{"path":"index.js","sha256":"6574ee5f3717a0c3611c4ceb060b3a67ef034452a5584faafc21db905bdfca3f","tlsh":"a513a6195136261586b1f7fb9a435825fb376263224286c83eec4b446fb316891e2ffc"},{"path":"package.json","sha256":"d89c20c7ad09d41bf5d73a148fcd0f8195a3cc0e42fb679999dcd5939cf9ebb1","tlsh":"7a11c433daf06f631078d952b92b0a15f0f3473f2060881bb1bd211e8bf299745dda58"}],"package_integrity":[{"filename":"webservices.rest-utils-1.0.7.tgz","hashes":{"sha1":"671ca5757a65f4c88b848b40a0d36bd7e5d0b655","sha512_sri":"sha512-tY3rL5x1GCjyvLGckXlTtUJCsp9n7Ng9RP3TqWvdPxG77bIMtolv5i5tFshR/KajhQqeSSXmLH59GHaFA4y1Lw=="}}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-v62r-4vqp-f32g"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/webservices.rest-utils/v/1.0.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/webservices.rest-utils/v/1.0.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/webservices.rest-utils/v/1.0.5"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com"]},{"name":"ReversingLabs","type":"FINDER","contact":["https://www.reversinglabs.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"0b73e8e4e7f0f01d1e611280e8922e8d3caa66ca7bcfb47a95a3d94a0d56080d","import_time":"2026-05-25T09:37:28.990855593Z","id":"GHSA-v62r-4vqp-f32g","modified_time":"2026-05-25T08:55:04Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"0d25f7c8217b81bf2828e77cef685d9eee97525bc2167a0a1a2a119175c6758b","import_time":"2026-05-26T05:52:22.022557423Z","id":"IN-MAL-2026-004318","modified_time":"2026-05-23T12:26:02Z","versions":["1.0.7"]},{"source":"amazon-inspector","sha256":"2f8ef56f73ada635926e20b0ebf86b75f70c1ec9bf2d286215fda07b97fc1ac4","import_time":"2026-05-26T05:52:21.80088416Z","id":"IN-MAL-2026-004316","modified_time":"2026-05-23T12:24:08Z","versions":["1.0.7"]},{"source":"amazon-inspector","sha256":"5c9c78a4d0c87def69bbc5337e41a730e7ca6ae898426759915f053dc584581c","import_time":"2026-05-26T05:52:22.793320537Z","id":"IN-MAL-2026-004324","modified_time":"2026-05-23T12:48:09Z","versions":["1.0.8"]},{"source":"amazon-inspector","sha256":"a2b3da3aed8465edc2b6c2623096d4016bd40ee97924e18b6dea55217a779dad","import_time":"2026-05-26T05:51:17.352341354Z","id":"IN-MAL-2026-003774","modified_time":"2026-05-21T08:12:18Z","versions":["1.0.5"]},{"source":"amazon-inspector","sha256":"a9020c5c218d700533f51d34ebe5a362406f52ea266dce586773eff853174e42","import_time":"2026-05-26T05:51:17.477483587Z","id":"IN-MAL-2026-003775","modified_time":"2026-05-21T08:13:49Z","versions":["1.0.5"]},{"source":"amazon-inspector","sha256":"c4f05896466268d5527bbd39c4fda96220baec1f82fab67727545f0fb528018f","import_time":"2026-05-26T05:52:23.043539724Z","id":"IN-MAL-2026-004326","modified_time":"2026-05-23T12:49:53Z","versions":["1.0.8"]},{"source":"reversing-labs","sha256":"a974f40c017f23ad6e546e5d52e75aa1ba218e1d4bbbd8e9471e614f7e29b4ba","import_time":"2026-07-09T09:16:58.459486632Z","id":"RLMA-2026-05363","modified_time":"2026-07-07T13:16:40Z","versions":["1.0.5"]}]}}

数据来源:OpenSSF Malicious Packages · Apache-2.0