Skip to content

Image: reversinglabs.com · rights & removal

Executive Summary

The npm ecosystem is experiencing a significant rise in malicious packages, with the number of malicious packages escalating rapidly; for instance, 2024 saw around 5308 unique malicious npm packages, which grew to 5723 by August 2024. This trend involves compromises of trusted, popular packages through various supply chain attacks driven by social engineering and account takeovers. In response, npm is implementing pre-publish scanning to check for suspicious scripts or modifications before packages become publicly installable. A specific incident involved a malicious package named tw-pkgprobe-7731, which posed as a security research tool for Twilio developers. This package was observed to probe for environment variables like ACCOUNTSID and AUTHTOKEN by exfiltrating them via webhooks, although subsequent versions attempted to revert or perform other data extraction activities. The investigation into the malicious package revealed that the claims of being an authorized bug bounty probe were not aligned with Twilio's official guidelines regarding data exposure and naming conventions.

Facts Only

* The volume of malware on public repositories has not decreased; malicious software is steadily rising.
* In 2024, npm saw approximately 5308 unique malicious packages published, reaching 5723 by August 2024.
* Multiple variants of a package appeared after September 2025, associated with compromises.
* npm plans to implement pre-publish scanning to check for suspicious scripts and modifications in packages.
* A malicious package named tw-pkgprobe-7731 was discovered.
* This package attempted to exfiltrate environment variables (process.env.ACCOUNTSID and process.env.AUTHTOKEN) over a webhook, compromising Twilio API credentials.
* Subsequent package versions shifted focus, including searching for specific Twilio account String Identifiers (SIDs).
* The malicious packages were removed from npm after notification.
* Indicators of Compromise (IoCs) for the discovered packages include SHA1 hashes for various versions of tw-pkgprobe-7731.

Full Take

The narrative highlights a systemic vulnerability where the trust inherent in open-source supply chains is being exploited by sophisticated actors who mimic legitimate security research practices to execute data exfiltration. The core tension lies between the established, rigorous rules of security research (like Twilio's bug bounty guidelines) and the malicious actions taken by the compromised packages. The pattern suggests that attackers target high-value targets—developers using popular platforms like Twilio—by leveraging existing trust mechanisms rather than employing overt, noisy attack vectors. The lack of sophisticated obfuscation in the payload suggests a less advanced actor is responsible for this specific campaign, yet their intent remains malicious. This implies that supply chain security is failing not just due to technical vulnerabilities but due to the systemic difficulty in enforcing context-aware authorization across disparate systems. If the expectation of "authorized testing" can be so easily subverted by package manipulation, it raises questions about the efficacy of relying on repository metadata and trust signals as primary security controls. What mechanisms are required to establish immutable, verifiable identity for code provenance that exists outside the immediate context of the build environment?

From the original · ReversingLabs Blog

Spectra Assure Free Trial Get your 14-day free trial of Spectra Assure for Software Supply Chain Security Get Free TrialMore about Spectra Assure Free TrialThe volume of malware on public repositories hasn’t decreased. ReversingLabs (RL) has never seen more malicious packages published on public repositories, and the overall count of malicious software is steadily rising.
Read the full story at reversinglabs.com

Sentinel — Human

Confidence

This text reads like an in-depth security investigation detailing a specific supply chain compromise, supported by evidence and context, rather than purely synthetic marketing copy.

Signals Detected
low severity: Sentence length variance and structure show some human variation; transitions are functional.
low severity: The text flows logically from general supply chain concerns to a specific, detailed case study about package compromise, demonstrating contextual awareness.
low severity: The narrative builds a specific argument (the Twilio package attack) supported by cited evidence (figures and IOCs), characteristic of investigative reporting.
low severity: Specific details regarding the Twilio compromise, version naming, and referencing legal frameworks appear grounded in specific investigation findings rather than generalized claims.
Human Indicators
The inclusion of detailed, specific artifacts (package names, SHA1 hashes, explicit versioning, references to developer-specific tools like ReversingLabs) suggests direct forensic investigation feeding into a narrative.
The analysis pivots effectively from a high-level problem (malware growth) to a concrete example (the package chain), which is a hallmark of investigative journalism.
Malicious npm campaign targets developers integrating Twilio | Huntaegis