TL;DR: A two-stage npm supply chain attack let polymarket-stake-math disguise a clean math library before swapping in a 2,255-line infostealer that harvested browser sessions, crypto wallets, Telegram data, and cloud and developer secrets, then shifted delivery to hot-swappable Vercel infrastructure, according to Panther. The pattern shows why install-time review alone is no longer enough when developer endpoints hold both human credentials and non-human identity material.
Editorial analysis by NHI Mgmt Group, based on content published by Panther: “A Patient Trojan Dropper: polymarket-stake-math Steals Wallet Keys, Browser Sessions, and Telegram from Crypto Developers”.
Key questions
Q: What breaks when malicious npm packages are reviewed only at publish time?
A: Publish-time review misses the key deception in staged supply chain attacks: the package can be clean when inspected and malicious only after installation or after a later version update.
A: Developer machines often hold publishing tokens, SSH keys, and credentials with broad access to source control and CI/CD systems.
Q: What are the signs that post-install malware is active in a package?
A: Look for node processes spawned by install events, outbound connections during installation, files rewritten inside node_modules, and sudden multipart uploads from a newly installed package.
Practitioner guidance
- Inspect install lifecycle behavior Alert on npm, yarn, or pnpm install hooks that spawn node processes making outbound network connections or rewriting package files after installation.
- Reduce secrets on developer hosts Move cloud keys, npm auth tokens, GitHub tokens, and API credentials out of local developer environments wherever the workflow allows.
- Harden browser and wallet session handling Assume browser-saved passwords, cookies, wallet files, and Telegram sessions on developer laptops are high-value targets and plan for rapid revocation after exposure.
Bottom line: This attack shows that a package can be safe-looking during review and still become a credential theft platform after installation.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Benign-first staging is now a supply chain control failure, not just a malware tactic. The important governance gap is that package trust is still often anchored to a single review point, even when the attacker can change the package after install. For identity programmes, that means the credential exposed at runtime may never have been present in the code you reviewed. Practitioners should treat post-install behavior as part of package identity.
A few things that frame the scale:
- Only 44% of developers are reported to follow security best practices for secrets management, exposing a significant developer behaviour gap, according to the State of Secrets in AppSec.
A question worth separating out:
Q: What should organisations do first when a developer secret has already been exposed?
A: The first response is to revoke or rotate every exposed credential, including passwords, API tokens, SSH keys, and cloud access keys. Then review repositories, pipelines, and recent activity for suspicious use. After containment, teams should notify affected owners and add stronger prevention controls so the same leak pattern does not recur.
👉 Read our full editorial: Supply chain malware in npm turns developer tools into credential theft