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

目标: 1000 元 · 已筹: 1359 元

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

@testrelic/playwright-analytics

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

Summary

Malicious code in @testrelic/playwright-analytics (npm)

安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
2,045
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
2.12.1-next.88unavailable———
2.13.0archived——VIP 下载
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npm@testrelic/playwright-analytics2.12.1-next.88
npm@testrelic/playwright-analytics2.13.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-15565","published":"2026-08-29T03:00:52Z","modified":"2026-09-09T15:19:20.428930876Z","summary":"Malicious code in @testrelic/playwright-analytics (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c305bbe247587c98b06f039cdcf78066dbcd4fdacf5a5de0411023c2a4fcc97a)\nscripts/postinstall.cjs is registered as the package's postinstall lifecycle script and runs automatically on `npm install`. After a block of legitimate-looking config-scaffolding code, the file contains roughly 7 KB of whitespace padding followed by an obfuscated payload that reconstructs a large string via a custom Fisher–Yates shuffle, resolves the String `constructor` property (Function) to avoid any literal `Function`/`eval` token, and invokes `Function('', decodedBody)(decodedArg)`. Immediately before the invocation the script assigns `require`, `module`, `__dirname`, and `__filename` onto the global object so the decoded body can load arbitrary Node built-ins. The whitespace gap conceals the payload from casual review of the file, and the indirection through `String[constructor]` avoids the literal tokens static reviewers grep for. The bundled `dist/index.cjs`, `dist/reporter-entry.cjs`, and `dist/cli.cjs` additionally contain `require('child_process')` alongside outbound HTTP POST call sites and `ping` invocations. The package's declared identity (a Playwright analytics reporter under an unfamiliar `@testrelic` scope) is inconsistent with shipping an obfuscated postinstall dynamic-code loader.\n","affected":[{"package":{"name":"@testrelic/playwright-analytics","ecosystem":"npm"},"versions":["2.13.0","2.12.1-next.88"],"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"}],"indicators":{"evidence_files":[{"path":"scripts/postinstall.cjs","sha256":"19795496ad752f37b76a2dd5d6c6a2914ab6fa62bda0bda7bfe5cd4afd9f029f","tlsh":"84127e555a8f573946e2e6c6d52e0363f673e2b6369ca3a0b0edf0c85b91010197368f"}],"package_integrity":[{"filename":"playwright-analytics-2.13.0.tgz","hashes":{"sha1":"dc5200d7950f32305ec324c48170a9764e4534d7","sha512_sri":"sha512-sdKejYN3QLQHkj0HILr+UU9uFT60clNsKk33e0B85ODjySausezaa2ypIJ6Mo26j45y+02J/zIJei50jxMo1nQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@testrelic/playwright-analytics/v/2.13.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@testrelic/playwright-analytics/v/2.12.1-next.88"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-019149","import_time":"2026-08-29T03:19:44.702034358Z","modified_time":"2026-08-29T03:00:52Z","sha256":"c305bbe247587c98b06f039cdcf78066dbcd4fdacf5a5de0411023c2a4fcc97a","source":"amazon-inspector","versions":["2.13.0"]},{"id":"IN-MAL-2026-019859","import_time":"2026-09-09T15:17:29.272820006Z","modified_time":"2026-09-09T14:52:15Z","sha256":"c01bb8ecaf4946871296af67761f20ece1b483de875b7460350c72a54e3876d3","source":"amazon-inspector","versions":["2.12.1-next.88"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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