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

目标: 1000 元 · 已筹: 1359 元

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

xapi-lib

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

Summary

Malicious code in xapi-lib (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
—
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmxapi-lib*
npmxapi-lib88.2.3
npmxapi-lib88.2.5
npmxapi-lib90.2.1
npmxapi-lib90.3.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-17896","published":"2026-10-15T13:07:26Z","modified":"2026-11-03T22:19:51.125081814Z","aliases":["GHSA-wm6w-9vgq-gw26"],"summary":"Malicious code in xapi-lib (npm)","details":"xapi-lib@88.2.3, 88.2.5, 90.2.1, and 90.3.1 describes itself as a package for getting IP location and metadata. Its preinstall hook runs `node index.js` on npm install and requests `https://realwbx.com/ip.php?ip=8.8.8.8` with the hardcoded Authorization value `fa79878bc2cfb48bd5127ae26fb661b1`, which is the same in all four versions and differs from the value in each of the account's other packages. The npm account conx3993 published xapi-lib on 2026-10-15, one of 9 packages from that account between 2026-09-30 and 2026-10-15 whose preinstall hook calls realwbx.com.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (beac62be73c115f383ea095cc364879294d6c105817d3c0eb6bfb30ce7bcf46c)\nxapi-lib@88.2.3 declares `preinstall: node index.js` in package.json, and index.js performs an unconditional top-level HTTPS GET to realwbx.com/ip.php (passing `8.8.8.8` and a hardcoded Authorization header) on load. The call fires automatically during `npm install`, sending the installer's source IP to a hardcoded non-publisher endpoint unrelated to any advertised functionality. The package itself is a one-file stub with no library content, so dependency resolution plus the preinstall beacon is the entire effect of installing it. The destination realwbx.com is not a publisher-aligned domain, the request is not caller-configurable, and no documentation discloses the outbound call.\n\n## Source: ghsa-malware (ef93f6ae14f72f3a4d0dfeb7f1e8b859147a54f5458694bc5fd126f7b8aa0592)\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":{"name":"xapi-lib","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["88.2.5","88.2.3","90.2.1","90.3.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":"index.js","sha256":"99a601e9bf8688f9f8650528f1da84b349de36f98444bcec2cf4a9012ea2339d","tlsh":"7821ebaa5bf9112107f3fa8d860790072023e05f240eee157a0d53a11f8223d93936f8"}],"package_integrity":[{"filename":"xapi-lib-88.2.5.tgz","hashes":{"sha1":"32ed607955bc6ec72e8bfcf2b27da5fcca103b09","sha512_sri":"sha512-Bf3uldyd5rjG5xrNBaz57wyjchQq9o0RUhkXN0IPIzW3AlG5/GQDMAoAWnDTubX7M6TO8Uyj9h0eG1+M0zsVEQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/xapi-lib"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/xapi-lib/v/88.2.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/xapi-lib/v/88.2.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/xapi-lib/v/90.3.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/xapi-lib/v/90.2.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-wm6w-9vgq-gw26"}],"database_specific":{"iocs":{"files":[{"digests":{"sha256":"6b2fcfa860c46ed88f188cc1fab187d43b8a0278691b1711822925f8245c8d19"},"note":"preinstall script: node index.js","paths":["package.json"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"99a601e9bf8688f9f8650528f1da84b349de36f98444bcec2cf4a9012ea2339d"},"note":"Executed by the preinstall script of xapi-lib@88.2.5.","paths":["index.js"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"f844ce26df73b3a8958ea7a1d06032a0092f714c3a50108b130989a986270682"},"note":"preinstall script: node index.js","paths":["package.json"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"defcc41c3e9e5d7047e9d57db37086833e9b65319a98fb324f69e87817c103f7"},"note":"Executed by the preinstall script of xapi-lib@88.2.3.","paths":["index.js"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"3a74e42c644363219b7e056a212aa44f80417e6112ec0c0172fb53aabefd2ce4"},"note":"preinstall script: node index.js","paths":["package.json"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"e571cff8c883aa4aed6b6319ff72bfc8401575126118df716b848052631383fe"},"note":"Executed by the preinstall script of xapi-lib@90.2.1.","paths":["index.js"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"f736035d37903edb04ff8f987ceb364e39d5a5de2897ba3e56e777b4e1eae332"},"note":"preinstall script: node index.js","paths":["package.json"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"58a9969194fd80f080da6082fab45e77fa348b3046ae923a4cb500e0df3b96b2"},"note":"Executed by the preinstall script of xapi-lib@90.3.1.","paths":["index.js"],"source":"PACKAGE_ARCHIVE"}],"urls":["https://realwbx.com/ip.php"]},"malicious-packages-origins":[{"id":"IN-MAL-2026-021504","import_time":"2026-10-16T07:22:52.427697019Z","modified_time":"2026-10-16T06:58:06Z","sha256":"08fefb7bcc7ef9e212432c91ec73a326965240fdbcb7782e3d2fb61155fe6d45","source":"amazon-inspector","versions":["88.2.5"]},{"id":"IN-MAL-2026-021505","import_time":"2026-10-16T07:22:52.475260459Z","modified_time":"2026-10-16T06:58:14Z","sha256":"beac62be73c115f383ea095cc364879294d6c105817d3c0eb6bfb30ce7bcf46c","source":"amazon-inspector","versions":["88.2.3"]},{"id":"IN-MAL-2026-021502","import_time":"2026-10-16T07:22:52.34017146Z","modified_time":"2026-10-16T06:57:48Z","sha256":"c2cad7956f6504f2fefff4ce1a2a3309660ebcc8dd6858f41085f478ad5909ef","source":"amazon-inspector","versions":["90.3.1"]},{"id":"IN-MAL-2026-021503","import_time":"2026-10-16T07:22:52.395931618Z","modified_time":"2026-10-16T06:57:59Z","sha256":"e82133a7b4558aea71dd4629832347ac615573b581ee941960ab4b0244781779","source":"amazon-inspector","versions":["90.2.1"]},{"id":"GHSA-wm6w-9vgq-gw26","import_time":"2026-11-03T22:17:46.492719948Z","modified_time":"2026-11-03T22:14:20Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"ef93f6ae14f72f3a4d0dfeb7f1e8b859147a54f5458694bc5fd126f7b8aa0592","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"InvisiRisk, Inc.","contact":["https://www.invisirisk.com","mailto:research@invisirisk.com"],"type":"FINDER"}]}

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