VYPR
researchPublished Jun 5, 2026· 1 source

Malicious Python Package 'parsimonius' Deploys Telegram Backdoor via Typosquatting

A malicious Python package named 'parsimonius' was discovered on PyPI, impersonating the legitimate 'parsimonious' library and deploying a Telegram-based backdoor to harvest sensitive data.

A deceptive Python package, masquerading as the legitimate 'parsimonius' library, was recently discovered on the Python Package Index (PyPI), posing a significant threat to developers. The malicious package, named 'parsimonius' with a single missing 'i', employed a common typosquatting technique to trick unsuspecting users into installing it. This tactic, combined with the attacker assigning a seemingly newer version number than the legitimate library, increased the likelihood of developers, especially those using automated dependency management, downloading the compromised version.

Security researchers at Zscaler ThreatLabz identified the malicious package and reported that it had garnered 2,474 downloads before its removal from PyPI. This rapid adoption highlights the pervasive risk of supply chain attacks within the open-source ecosystem. The attackers' strategy was particularly insidious because the malicious package contained the actual parsing functionality of the legitimate 'parsimonious' library. This meant that developers integrating the package would not notice any immediate functional issues, masking the underlying threat.

Beneath the surface of legitimate functionality, the 'parsimonius' package deployed a sophisticated Telegram-based backdoor. This backdoor provided attackers with remote access to compromised systems, enabling them to exfiltrate sensitive data. The primary targets for data harvesting were .env files and bot authentication tokens, both of which are critical repositories of credentials, API keys, and secrets essential for accessing broader infrastructure.

The use of Telegram as a command and control (C2) channel is a growing trend among threat actors. Telegram's widespread adoption and the often-overlooked nature of its traffic make it an attractive platform for attackers seeking to exfiltrate data and receive instructions without triggering standard network security monitoring tools. This stealthy approach allows for persistent access and data theft with a reduced risk of detection.

Once established, the backdoor granted attackers persistent remote access, allowing them to operate undetected within victim environments. The strategic choice of a version number that appeared more current than the legitimate package further amplified the attack's effectiveness, as it could bypass checks for the latest available versions.

The specific data targeted – .env files and bot tokens – indicates a focused effort to gain access to wider cloud infrastructure and connected services. Compromised .env files can expose database credentials, cloud service access keys, and other secrets, facilitating lateral movement within an organization's network. Similarly, stolen bot tokens can grant attackers control over automated workflows, business processes, or customer-facing services, leading to significant downstream damage.

To mitigate such risks, developers are strongly advised to meticulously verify the exact spelling of package names before installation. Employing dependency auditing tools that can flag suspicious or newly registered packages adds a crucial layer of defense. Organizations should also implement immediate credential rotation if a supply chain compromise is suspected and minimize the amount of sensitive data stored in .env files.

Synthesized by Vypr AI