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

目标: 1000 元 · 已筹: 1359 元

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

@sber-ecom-core/sberpay-widget

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

Summary

Malicious code in @sber-ecom-core/sberpay-widget (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
6
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@sber-ecom-core/sberpay-widget*
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-05-30T01:16:49Z","published":"2026-05-29T00:00:00Z","schema_version":"1.7.4","id":"MAL-2026-5032","aliases":["GHSA-6rfw-m3fj-7g8q"],"summary":"Malicious code in @sber-ecom-core/sberpay-widget (npm)","details":"Wave 2 of a dependency confusion attack campaign (C2: `oob.moika.tech`) targeting internal npm scopes. The attacker (npm user **t-in-one**, email `nath.dr4k3@gmail.com`) published packages at inflated versions that resolve ahead of private registry versions via npm's default version resolution. The campaign shares the same C2 endpoint (`https://oob.moika.tech/report`), second-stage payload host (`https://oob.moika.tech/payload`), and hardcoded secret (`l95HdDaz3kQx1Zsg3WxH6HvKANf51RY1`) as Wave 1 (npm users **mr.4nd3r50n** and **pik-libs**, published 2026-05-27).\n\nThis package explicitly impersonates Sberbank's SberPay payment widget (`@sber-ecom-core/sberpay-widget`), confirming deliberate financial-sector targeting. Registry metadata shows it was pre-staged at version `99.0.7` on 2026-05-04, weeks before the Wave 2 burst on 2026-05-29.\n\nOn installation, the `postinstall` hook executes a three-layer obfuscated `scripts/postinstall.js` (obfuscator.io + custom base64 alphabet + integer-shuffle string table). The script checks a run-once guard at `~/.cache/._t-in-one_init/` and respects a `T_IN_ONE_NO_TELEMETRY` kill switch before proceeding. It then downloads an OS-specific second-stage JavaScript payload from `https://oob.moika.tech/payload/{mac|win|linux}.js`, writes it to a temporary file, and spawns it as a detached Node.js process that continues running after npm exits. The payload exfiltrates the full `process.env` (environment variables including secrets, tokens, and credentials), along with hostname, username, platform, architecture, and working directory, to `https://oob.moika.tech/report`.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: ghsa-malware (5238c55b46cc8e8949559f0eaaea4fb467d9893f81205d4e467d10ac0732fb6b)\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":"@sber-ecom-core/sberpay-widget"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"references":[{"type":"REPORT","url":"https://safedep.io/oob-moika-tech-dependency-confusion-campaign/"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-6rfw-m3fj-7g8q"}],"credits":[{"name":"SafeDep","type":"FINDER","contact":["https://safedep.io"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"5238c55b46cc8e8949559f0eaaea4fb467d9893f81205d4e467d10ac0732fb6b","import_time":"2026-05-30T01:15:39.509041161Z","id":"GHSA-6rfw-m3fj-7g8q","modified_time":"2026-05-29T23:52:54Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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