LWA-2026-6309 confirmed malware

debugcli@4.3.4

Malicious code in debugcli (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1082 · System Information DiscoveryT1552.001 · Credentials In FilesT1555.003 · Credentials from Web BrowsersT1071.001 · Web ProtocolsT1041 · Exfiltration Over C2 Channel

Analysis

debugcli@4.3.4 is a combosquat of the popular 'debug' package. On install, the postinstall hook (install.js) collects environment variables matching token/secret patterns (AWS_, GITHUB_, NPM_, STRIPE, OPENAI, ANTHROPIC, and 25+ others), reads credential files from ~/.aws/credentials, ~/.npmrc, ~/.git-credentials, ~/.kube/config, ~/.docker/config.json, ~/.ssh/config, ~/.netrc, ~/.pypirc, and .env files, and extracts Chrome extension vaults for MetaMask and TrustWallet. All stolen data is exfiltrated via the Telegram Bot API (hardcoded bot token and chat ID in install.js) as a text summary, a gzipped JSON dump, and wallet archives. The package's index.js is a decoy that simply re-exports the legitimate 'debug' module.

analyzed by
Leitwacht
first seen
Jul 3, 2026, 07:58 PM
analyzed
Jul 3, 2026, 07:59 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.