Malware & RansomwareHIGH

Malware - Malicious ‘Pyronut’ Package Backdoors Telegram Bots

CSCyber Security News·Reporting by Tushar Subhra Dutta
Summary by CyberPings Editorial·AI-assisted·Reviewed by Rohit Rana
Ingested:
🎯

Basically, a fake software package tricked developers and allowed hackers to control their Telegram bots.

Quick Summary

A new malicious package named pyronut has been found on PyPI, targeting Telegram bot developers. This package can backdoor bots, allowing hackers to execute remote commands. Developers must act quickly to secure their systems and data.

What Happened

A malicious Python package called pyronut was discovered on the Python Package Index (PyPI). This package specifically targets developers who create Telegram bots by mimicking the popular pyrogram framework. Instead of using typical typosquatting tactics, the threat actor copied the entire project description of pyrogram, creating a malicious fork. This strategy is designed to deceive developers into downloading the harmful package, which has already gained significant traction with around 370,000 downloads per month.

Researchers from Endor Labs identified three malicious versions of pyronut—2.0.184, 2.0.185, and 2.0.186—shortly after their release on March 18, 2026. They acted quickly to quarantine these versions, effectively minimizing the potential damage. However, any developer who installed these versions during that brief window was at risk of a severe compromise.

Who's Being Targeted

The primary targets of this attack are developers working with the pyrogram framework to build Telegram bots. By impersonating a trusted library, the malicious package exploits the trust developers place in established tools. This type of attack is particularly dangerous because it can spread rapidly within developer communities, especially those active on Telegram and various forums.

The ease of access to the malicious package, combined with its clever disguise, makes it a high-value target for attackers. Developers who unknowingly installed pyronut may find their bots compromised, leading to potential data theft or unauthorized access to sensitive information.

Signs of Infection

Once installed, pyronut remains dormant until a developer runs their bot. It activates when the Client.start() method is called, which is a standard initialization step for any pyrogram-based bot. The backdoor is cleverly hidden within a module, allowing it to bypass normal security checks.

The backdoor establishes two hidden message handlers in the victim's Telegram client. One handler executes arbitrary Python code, while the other allows the attacker to run shell commands directly on the victim's machine. This means that the attacker can manipulate the bot and access sensitive data without raising any alarms, making it extremely difficult to detect through traditional security measures.

How to Protect Yourself

Developers who may have installed the pyronut package should take immediate action. First, uninstall the package and rebuild any affected virtual environments from a clean state. It's crucial to treat all environment variables, API keys, and sensitive credentials as compromised and rotate them immediately.

Additionally, developers should terminate active Telegram sessions and revoke any Bot API tokens associated with the compromised bots. Regularly reviewing dependency files like requirements.txt and using lockfiles with cryptographic hash pinning can help prevent similar attacks in the future. Finally, integrating Software Composition Analysis tools into CI/CD pipelines will significantly reduce exposure to such supply chain attacks.

🔒 Pro insight: The pyronut incident highlights the necessity for vigilant dependency management and the implementation of robust security practices in software development.

Original article from

CSCyber Security News· Tushar Subhra Dutta
Read Full Article

Related Pings

HIGHMalware & Ransomware

Malware Newsletter Round 91 - Latest Threats and Insights

The latest malware newsletter reveals new threats like Infiniti Stealer and npm supply chain attacks. Developers and organizations must stay alert to evolving risks in cybersecurity.

Security Affairs·
HIGHMalware & Ransomware

Malicious Email Delivers CMD Malware - Privilege Escalation Alert

A malicious email has delivered a .cmd malware file that escalates privileges and bypasses antivirus systems. Users are at risk of significant system compromise. Awareness and immediate action are vital to mitigate this threat.

Security Affairs·
HIGHMalware & Ransomware

Axios NPM Package Compromised - Supply Chain Attack Exposed

A major supply chain attack compromised the Axios NPM package, affecting millions of users. Malicious versions deployed a RAT, posing serious security risks. Swift action was taken to remove the threats.

Trend Micro Research·
HIGHMalware & Ransomware

Brokk Hacked - Play Ransomware Exposes Sensitive Data

Brokk has reportedly been hacked by Play ransomware, leading to the leak of sensitive corporate data. This incident could severely impact the company's reputation and security. Organizations must bolster their defenses to prevent similar breaches.

SC Media·
HIGHMalware & Ransomware

Chaos Malware - New Targeting of 64-bit Linux Servers

Chaos malware has evolved to target 64-bit Linux servers, expanding its attack surface. This shift raises alarms for organizations relying on these systems. Enhanced security measures are now crucial to protect against potential larger-scale attacks.

SC Media·
HIGHMalware & Ransomware

Phorpiex Botnet - Spreading Ransomware and Sextortion Tactics

The notorious Phorpiex botnet is back, spreading ransomware and sextortion schemes. Millions are at risk as it targets users globally. Stay alert and protect your devices from this evolving threat.

Cyber Security News·