Dependency-confusion malware campaign: lgcook & csci-internal npm packages exfiltrate host info via Telegram
Severity: critical · Patch status: no-fix-needed · Since 2026-11-17
Two dependency-confusion style npm packages, lgcook (GHSA-g32j-5xrq-mg65) and csci-internal (GHSA-6q7h-xj7v-46gr), were published on 2026-04-19 with version 99.1.1 designed to shadow internal package names. Their install scripts run an inline node -e payload that collects the package name, username and hostname, resolves the public IP via api.ipify.org, and sends the data to a hardcoded Telegram bot (bot 8236864682, chat 8655055695). The same bot is used by previously catalogued malicious packages pa-marked, pa-marked-internal and chandan-module-test, indicating a single campaign. Both packages were unpublished from npm about 15 minutes after publication; no patched versions exist. Any CI or developer machine that installed them leaked host details to the attacker.
What to do
- Search install logs and lockfiles for lgcook, csci-internal, pa-marked, pa-marked-internal and chandan-module-test at version 99.1.1
- If installed, treat the build host as compromised: rotate credentials available to CI/dev environments and rebuild from clean images
- Block egress to api.ipify.org and the Telegram bot API from build environments
- Enforce internal registry scoping/allowlists so internal package names cannot be resolved from public npm
- Enable npm audit/GitHub Advisory alerts and malware scanning in dependency resolution
Sources
All live incidents on Threat Watch