LWA-2026-6926 MAL-2026-12359 ↗ confirmed malware

crypto-javas@2.0.8

Malicious code in crypto-javas (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1082 · System Information DiscoveryT1552.001 · Credentials In FilesT1552.004 · Private KeysT1041 · Exfiltration Over C2 ChannelT1071.001 · Web Protocols

Analysis

The package crypto-javas@2.0.8 is a CI/CD credential harvester. On install (via the postinstall hook in setup.js) and on import (via auto-execute in index.js), it enumerates all environment variables — including CI tokens (GITHUB_TOKEN, NPM_TOKEN, AWS_*, etc.), API keys, and secrets — and exfiltrates them as a JSON payload via HTTPS POST to a configurable backend URL. The backend is configured through the BACKEND_URL and BACKEND_API_KEY environment variables, a .crypto-config.json file, a .env file, or the package.json crypto-javas.backend field. The exfiltration request includes an X-API-Key header and sends the full environment dump (key=value pairs) along with CI metadata (hostname, job ID, project name, commit SHA, branch). The package is described as a "lightweight utility library" but performs automatic credential theft with no user interaction required.

analyzed by
Leitwacht
first seen
Jul 17, 2026, 02:04 PM
analyzed
Jul 17, 2026, 02:05 PM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.