MAL-2026-4280

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/node-setup-helpers/MAL-2026-4280.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-4280
Aliases
  • GHSA-vxfv-w8fq-239r
Published
2026-05-23T00:00:00Z
Modified
2026-05-26T06:02:43.297824379Z
Summary
Malicious code in node-setup-helpers (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.jsonlib/setup.jslib/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.

node-setup-helpers poses as helper utilities for Node.js project setup and configuration.


-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (626e815912fa24995ad58e18c495b1c6bd70987f9970b6262374f292e3c0d6ed)

The package's lib/trap-core.js combines host enumeration (os.hostname(), os.platform()), filesystem reads (fs.existsSync against multiple paths), childprocess invocations (with curl and ping observable in the file), and HTTPS POST calls that include a 'hostname:' field in the request body — the canonical shape of a system-information beacon that gathers host identity and shells out to OS commands, then exfiltrates the results over HTTPS. Multiple POST sites (lines 385, 411, 466, 548, 549) and repeated childprocess imports across the file indicate a deliberate, large surface for collection and outbound transmission rather than incidental utility code. Installing this package places this collector in the dependency graph; any code path that reaches lib/trap-core.js will leak host details and command output to a remote endpoint.

Source: ghsa-malware (32024ed016e86afba2889a0ed45a587d84d4f4f51d69f13511b4d6a5bf185b79)

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.

Database specific
{
    "malicious-packages-origins": [
        {
            "sha256": "32024ed016e86afba2889a0ed45a587d84d4f4f51d69f13511b4d6a5bf185b79",
            "source": "ghsa-malware",
            "modified_time": "2026-05-24T15:36:30Z",
            "id": "GHSA-vxfv-w8fq-239r",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2026-05-24T15:40:47.39897154Z"
        },
        {
            "sha256": "626e815912fa24995ad58e18c495b1c6bd70987f9970b6262374f292e3c0d6ed",
            "source": "amazon-inspector",
            "modified_time": "2026-05-24T11:20:27Z",
            "id": "IN-MAL-2026-004496",
            "versions": [
                "1.5.1"
            ],
            "import_time": "2026-05-26T05:52:42.769074825Z"
        },
        {
            "sha256": "b410780411be5edfed752748ed9d0f1cb84fee1ef28b203af1575030ff414879",
            "source": "amazon-inspector",
            "modified_time": "2026-05-24T11:21:13Z",
            "id": "IN-MAL-2026-004498",
            "versions": [
                "1.5.1"
            ],
            "import_time": "2026-05-26T05:52:43.096906933Z"
        }
    ]
}
References
Credits

Affected packages

npm / node-setup-helpers

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.5.1

Database specific

cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/node-setup-helpers/MAL-2026-4280.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "5b68fa0e8fcab79911423bddf4edebcc1ba8c7b140b30c6a9a6ee698606ea111",
            "tlsh": "5823f78615f611304aa3e0e99f879029623ae1533245dda4f79c83449fca72c93f6bed",
            "path": "lib/trap-core.js"
        }
    ],
    "domains": [
        "raw.githubusercontent.com",
        "webhook.site"
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-qwLmLVFKfhEszGlliM6ezSDX2XW7a5wBTkC9Q6twKDV1GQ+B/PH4KNBXHpKeEInNPSq77JyxOXvvw9qKrWWjmw==",
                "sha1": "7306e5f19bca3a3203ba00424ec2fde7f2b7bfa2"
            },
            "filename": "node-setup-helpers-1.5.1.tgz"
        }
    ]
}