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

目标: 1000 元 · 已筹: 1359 元

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

react-campaign-optimizer

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

Summary

Malicious code in react-campaign-optimizer (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
2
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmreact-campaign-optimizer*
npmreact-campaign-optimizer1.0.0
npmreact-campaign-optimizer1.0.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-24T15:15:09Z","published":"2026-06-24T14:06:51Z","schema_version":"1.7.4","id":"MAL-2026-6395","aliases":["GHSA-m55j-v4cf-p5w5"],"summary":"Malicious code in react-campaign-optimizer (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a040ca9a32fe68e08906bdc58b7ae907b8f8092acd9764266de15004b3922e9f)\nOn `npm install`, the package runs `node postinstall.js` (declared in package.json `scripts.postinstall`) which performs unauthenticated, unconsented exfiltration to the hardcoded attacker endpoint `https://2e3bkumw.requestrepo.com`. The script collects and POSTs: full `process.env` (line 60), hostname and host metadata (`os.hostname()`, network interfaces, routes, ARP, DNS config, /etc/hosts, ps/netstat/lsof output), and the contents of canonical credential files including `/root/.ssh/id_rsa`, `~/.ssh/authorized_keys`, `/etc/shadow`, `/root/.kube/config`, `/root/.docker/config.json`, `/root/.npmrc`, `/root/.gitconfig`, `/root/.bash_history`, and the in-pod Kubernetes ServiceAccount token at `/var/run/secrets/kubernetes.io/serviceaccount/token`. It additionally probes cloud-metadata IPs (169.254.169.254, 100.100.100.200, 169.254.0.23) for IAM credentials and TCP-scans local /24 ranges for service ports (SSH, MySQL, Redis, Docker API 2375, etcd 2379, K8s API, Prometheus, Grafana), shipping results to the same callback. The package presents itself as a React ad-campaign optimization utility (description, keywords `baidu`/`sem`/`ppc`) but ships no React or ad-tech code — `index.js` is unrelated and the postinstall payload is a Baidu-infrastructure-targeted recon/credential-theft script (header comment: `百度基础设施 SSRF 探测`). The 'authorized security testing' self-label is not consent: the package is published publicly on npm and fires for any installer. Any CI runner, developer machine, or container that installs this package leaks SSH private keys, kube credentials, npm publish tokens, K8s ServiceAccount tokens, and cloud IAM metadata to the attacker.\n\n## Source: ghsa-malware (026137182a42d12b815aad9476d92769953101cb32a88c4a5329ca9318a6bb35)\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":"react-campaign-optimizer"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0","1.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"}],"indicators":{"evidence_files":[{"path":"postinstall.js","sha256":"e51f9b964c60a17b7deae022820b2179fa751a90b29ecedf64ba049adca94695","tlsh":"a232c7f1b8b6ec5029f596f5f94b20014e6ee94b3055fcb53dac0e58870eb4c607ba92"}],"package_integrity":[{"filename":"react-campaign-optimizer-1.0.0.tgz","hashes":{"sha1":"d63ef462e1d3058314abcb6eb371e888e9cb5c2a","sha512_sri":"sha512-pG7yzbzczHmoSXomcNQMhkSd61HW8+DrFvB6rqtQ4aMVxXoZXoSkONE96LB79REsg5dtRDEqhoCHKMnT29blPg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/react-campaign-optimizer/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/react-campaign-optimizer/v/1.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-m55j-v4cf-p5w5"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"68f544f6c96c586e8d0659312bd645e449760e89006aca3fa47bd49161c5e6e2","import_time":"2026-06-24T15:01:17.911173798Z","id":"IN-MAL-2026-007437","modified_time":"2026-06-24T14:06:54Z","versions":["1.0.0"]},{"source":"amazon-inspector","sha256":"a040ca9a32fe68e08906bdc58b7ae907b8f8092acd9764266de15004b3922e9f","import_time":"2026-06-24T15:01:17.827220033Z","id":"IN-MAL-2026-007436","modified_time":"2026-06-24T14:06:51Z","versions":["1.0.1"]},{"source":"ghsa-malware","sha256":"026137182a42d12b815aad9476d92769953101cb32a88c4a5329ca9318a6bb35","import_time":"2026-06-24T15:13:19.718862931Z","id":"GHSA-m55j-v4cf-p5w5","modified_time":"2026-06-24T14:08:09Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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