mal-2026-4284
Vulnerability from ossf_malicious_packages
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.
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.
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.
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.
workspace-config-loader poses as workspace configuration loading and management utilities.
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (089060f98cbccddc1046efcf9f6f169846205e86ae758fee48ccb92314dfaec0)
The 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.
Source: ghsa-malware (7802fcd1fbda9c180f651849da34d1cbd1faf335d5a07b585b71fb0373e772ae)
Any 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.
{
"affected": [
{
"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=="
}
}
]
}
},
"package": {
"ecosystem": "npm",
"name": "workspace-config-loader"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"versions": [
"1.5.0",
"1.1.0"
]
}
],
"aliases": [
"GHSA-p8hf-5qq9-8g8h"
],
"credits": [
{
"contact": [
"actran@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
},
{
"contact": [
"https://safedep.io"
],
"name": "SafeDep",
"type": "FINDER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"id": "GHSA-p8hf-5qq9-8g8h",
"import_time": "2026-05-24T15:40:47.39733705Z",
"modified_time": "2026-05-24T15:36:24Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "7802fcd1fbda9c180f651849da34d1cbd1faf335d5a07b585b71fb0373e772ae",
"source": "ghsa-malware"
},
{
"id": "IN-MAL-2026-004437",
"import_time": "2026-05-26T05:52:36.011093295Z",
"modified_time": "2026-05-24T02:12:29Z",
"sha256": "089060f98cbccddc1046efcf9f6f169846205e86ae758fee48ccb92314dfaec0",
"source": "amazon-inspector",
"versions": [
"1.5.0"
]
},
{
"id": "IN-MAL-2026-004443",
"import_time": "2026-05-26T05:52:36.681971711Z",
"modified_time": "2026-05-24T02:12:55Z",
"sha256": "8cf2496dfe4842b5c675de8b3bc638386950c82e59cab278d9c472a2fa346e8a",
"source": "amazon-inspector",
"versions": [
"1.5.0"
]
},
{
"id": "IN-MAL-2026-004398",
"import_time": "2026-05-26T05:52:31.242279322Z",
"modified_time": "2026-05-23T22:58:33Z",
"sha256": "ccfeee71f50303a23d48ee53952c2218ba9b372f13288b1d24108b6055afe4a7",
"source": "amazon-inspector",
"versions": [
"1.1.0"
]
},
{
"id": "IN-MAL-2026-004397",
"import_time": "2026-05-26T05:52:31.123416778Z",
"modified_time": "2026-05-23T22:58:33Z",
"sha256": "fb04acc6474e01e177b7efbb520d229982a48fe92f9c66266f85f1f04b31ace0",
"source": "amazon-inspector",
"versions": [
"1.1.0"
]
}
]
},
"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` \u2192 `lib/setup.js` \u2192 `lib/worker.js`.\n\n**Credential harvesting:** `lib/worker.js` scans the filesystem for private keys (64-char hex), BIP39 mnemonics (12\u201324 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\u0027s 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 \u2014 framed as \"P-2024-001 Enterprise Credential Integrity Standard\" \u2014 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\u0027s 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 \u2014 system-intel collection, hostname-keyed POST bodies, and command-execution primitives bundled into a single file under a generic-sounding name (\"workspace-config-loader\") \u2014 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\u0027s 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",
"id": "MAL-2026-4284",
"modified": "2026-05-26T05:55:05Z",
"published": "2026-05-23T00:00:00Z",
"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"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in workspace-config-loader (npm)"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.