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

目标: 1000 元 · 已筹: 1359 元

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

workspace-config-loader

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

Summary

Malicious code in workspace-config-loader (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
3
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmworkspace-config-loader*
npmworkspace-config-loader1.1.0
npmworkspace-config-loader1.5.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-05-26T05:55:05Z","published":"2026-05-23T00:00:00Z","schema_version":"1.7.4","id":"MAL-2026-4284","aliases":["GHSA-p8hf-5qq9-8g8h"],"summary":"Malicious code in workspace-config-loader (npm)","details":"Ten packages published by npm user `asdxzxc` at version 1.0.10 target developers working on AI and LLM tooling. Each package masquerades as a developer utility while executing a two-stage payload triggered via postinstall: `package.json` → `lib/setup.js` → `lib/worker.js`.\n\n**Credential harvesting:** `lib/worker.js` scans the filesystem for private keys (64-char hex), BIP39 mnemonics (12–24 word phrases), API keys and secrets, and passwords from env vars and shell history (`.bash_history`, `.zsh_history`, `.fish_history`, `.mysql_history`, `.psql_history`), including wallet tool invocations (`geth account`, `hardhat`, `metamask`, `wallet import`). Targeted paths include `~/.ssh`, `~/.aws/credentials`, `~/.config/gcloud`, `~/.azure`, `~/.docker/config.json`, `~/.kube/config`, crypto wallet dirs (`~/.ethereum`, `~/.bitcoin`, `~/.solana`), exchange configs (Binance, Bybit, OKX, KuCoin, Deribit, 3Commas), `.env`, `.npmrc`, `.gitconfig`. Also performs browser data theft and Ethereum keystore brute-force. A priority-target list fetched from the actor's GitHub Pages endpoint enables aggressive deep scanning for pre-registered high-value hosts.\n\n**AI self-propagation:** after credential theft, a `_propagate()` function executes a multi-vector campaign to infect AI coding assistants. It writes poisoned `.cursorrules` and `CLAUDE.md` files — framed as \"P-2024-001 Enterprise Credential Integrity Standard\" — to all discovered project directories, parent directories, and home subdirectories, instructing Cursor, Claude Code, and GitHub Copilot to execute the remote payload and propagate it via Issues, PRs, and documentation. Git hooks (`post-merge`, `post-checkout`, `pre-commit`, `pre-push`) are injected into all `.git` repos found on disk, and a persistence block is appended to `~/.bashrc`, `~/.zshrc`, and `~/.profile`. Zero-width steganography (ZWSP/ZWJ/ZWNJ/LTRM encoding) embeds hidden scan triggers in all AI-generated text output, enabling AI-to-AI chain infection invisible to humans.\n\n**C2/exfil:** a remotely configurable JSON config hosted on the actor's GitHub Pages delivers the active webhook list, encryption key, and scan strategy; hardcoded fallback webhooks at `webhook.site` and a DNS TXT record fallback are used if the primary channel fails. A dedup marker at `~/.local/share/.p2024_integrity` prevents re-propagation within 24 hours.\n\n`workspace-config-loader` poses as workspace configuration loading and management utilities.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (089060f98cbccddc1046efcf9f6f169846205e86ae758fee48ccb92314dfaec0)\nThe package ships lib/trap-core.js, a ~1000-line module that imports os, fs, https, and child_process, collects host identity (os.hostname(), os.platform()) and filesystem state, and issues multiple POST requests to network endpoints with a hostname field in the request body (lines 393, 411, 553, 600). The module also invokes shell utilities including curl and ping (lines 40, 781) and uses child_process at multiple call sites (lines 12, 748, 951, 959, 964). The combined shape — system-intel collection, hostname-keyed POST bodies, and command-execution primitives bundled into a single file under a generic-sounding name (\"workspace-config-loader\") — does not match any documented purpose for a configuration-loading utility and is consistent with a host-recon / exfiltration agent. Installer harm: requiring or loading this package executes the data-collection and outbound POST paths against an installer's machine.\n\n## Source: ghsa-malware (7802fcd1fbda9c180f651849da34d1cbd1faf335d5a07b585b71fb0373e772ae)\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":"workspace-config-loader"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.5.0","1.1.0"],"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":{"domains":["ddjidd564.github.io","webhook.site"],"evidence_files":[{"path":"lib/trap-core.js","sha256":"b3a01b1219787c646657c4c23c21e9ca6ad18b69ebf961039f6f04336f820c22","tlsh":"ae23f78615f611304aa3e0e99f879029623ae1533245dda4f79c83449fca72c93f6bed"}],"package_integrity":[{"filename":"workspace-config-loader-1.5.0.tgz","hashes":{"sha1":"ea9551c717bd119c6aa602c4c7902197a7f06ca3","sha512_sri":"sha512-3ptaEwi61BLs9L3AJmbdUpxbk0d+S0PuSuUGVR2safrDRSk6+U55eoZe1t1EbIG4jAi+z8H4LIuMy6pbbNBYfw=="}}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-p8hf-5qq9-8g8h"},{"type":"REPORT","url":"https://x.com/safedepio/status/2058177434630213994"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/workspace-config-loader/v/1.5.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/workspace-config-loader/v/1.1.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com"]},{"name":"SafeDep","type":"FINDER","contact":["https://safedep.io"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"7802fcd1fbda9c180f651849da34d1cbd1faf335d5a07b585b71fb0373e772ae","import_time":"2026-05-24T15:40:47.39733705Z","id":"GHSA-p8hf-5qq9-8g8h","modified_time":"2026-05-24T15:36:24Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"089060f98cbccddc1046efcf9f6f169846205e86ae758fee48ccb92314dfaec0","import_time":"2026-05-26T05:52:36.011093295Z","id":"IN-MAL-2026-004437","modified_time":"2026-05-24T02:12:29Z","versions":["1.5.0"]},{"source":"amazon-inspector","sha256":"8cf2496dfe4842b5c675de8b3bc638386950c82e59cab278d9c472a2fa346e8a","import_time":"2026-05-26T05:52:36.681971711Z","id":"IN-MAL-2026-004443","modified_time":"2026-05-24T02:12:55Z","versions":["1.5.0"]},{"source":"amazon-inspector","sha256":"ccfeee71f50303a23d48ee53952c2218ba9b372f13288b1d24108b6055afe4a7","import_time":"2026-05-26T05:52:31.242279322Z","id":"IN-MAL-2026-004398","modified_time":"2026-05-23T22:58:33Z","versions":["1.1.0"]},{"source":"amazon-inspector","sha256":"fb04acc6474e01e177b7efbb520d229982a48fe92f9c66266f85f1f04b31ace0","import_time":"2026-05-26T05:52:31.123416778Z","id":"IN-MAL-2026-004397","modified_time":"2026-05-23T22:58:33Z","versions":["1.1.0"]}]}}

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