TL;DR: A malicious npm package, cms-store-ren, exfiltrates host data to Telegram, downloads a second-stage payload, and leaks the attacker’s own bot API token, exposing how weakly controlled package publishing and runtime telemetry can aid both intrusion and attribution, according to OXSecurity. The broader lesson is that package scanning, secret detection, and egress control need to work together because malware can betray itself as easily as it infects systems.
NHIMG editorial — based on content published by OXSecurity: malicious npm infostealer cms-store-ren and its leaked Telegram bot token
Questions worth separating out
Q: What breaks when malicious npm packages are allowed to run on developer endpoints?
A: They can turn install-time trust into code execution, then harvest browser-stored secrets, cloud tokens, and local credentials before defenders detect the compromise.
Q: Why do developer machines create extra risk for NHI and secrets governance?
A: Developer machines often hold tokens, API keys, certificates, and browser sessions that can access source control, cloud consoles, and build systems.
Q: How do security teams know whether package-installed malware is actually active?
A: Look for execution behaviour, not just package reputation.
Practitioner guidance
- Quarantine suspicious package installs immediately Block or alert on unapproved npm package execution in developer workstations and build runners, especially when the package spawns PowerShell, reaches out to Telegram, or downloads remote scripts from raw IP addresses.
- Scan every artifact for embedded secrets Run secret detection on source, lockfiles, package tarballs, and build outputs before release so hardcoded API keys, bot tokens, and other credentials are removed before they can be reused by attackers or defenders.
- Assume developer credentials may be exposed Rotate tokens and certificates that were present on machines where the malicious package ran, and validate whether those secrets were scoped narrowly enough to limit lateral access.
What's in the full analysis
OXSecurity's full analysis covers the operational detail this post intentionally leaves for the source:
- The malicious package behaviour chain, including host telemetry collection and Telegram exfiltration, as observed during analysis.
- The code and execution indicators that distinguish the loader from a normal dependency and help incident responders validate compromise.
- The attacker infrastructure details, including the leaked bot token, exfiltration channel, and associated account intelligence.
- The package name and affected version scope needed for blocklists, hunting, and internal software inventory checks.
👉 Read OXSecurity's analysis of the malicious npm package cms-store-ren and leaked Telegram token →
Malicious npm packages and leaked bot tokens: what teams need to know?
Explore further
Malicious package distribution is now a secrets-exposure problem, not only a malware problem. The cms-store-ren case shows how package abuse can surface both victim telemetry and attacker infrastructure in one incident. That combination matters because the same workflow that lets an organisation consume code quickly can also expose credentials, bot tokens, and build-time secrets. For identity teams, the implication is that software supply chain governance and secrets governance now overlap in the same control plane.
A few things that frame the scale:
- The average estimated time to remediate a leaked secret is 27 days, despite 75% of organisations expressing strong confidence in their secrets management capabilities, according to The State of Secrets in AppSec.
- 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: Who is accountable when a malicious dependency enters a build pipeline?
A: Accountability is shared across engineering, security, and platform teams, but the control owner should be clear. Dependency intake, script execution, and publishing credentials are all governance points. In practice, the teams responsible for CI/CD, package policy, and non-human credential lifecycle must define who can approve, who can execute, and who can revoke.
👉 Read our full editorial: Malicious npm infostealer leaks its own Telegram bot token