Malicious PyPI Packages Secretly Spread New “ZiChatBot” Malware Across Windows and Linux

Listen to this Post

Featured ImageA Sophisticated Supply Chain Attack Raises New Fears in the Open-Source Community

Cybersecurity researchers have uncovered a dangerous new malware campaign hidden inside seemingly harmless Python packages uploaded to the Python Package Index (PyPI). The operation, described by security experts as a highly coordinated software supply chain attack, introduced a previously unknown malware strain called “ZiChatBot” capable of infecting both Windows and Linux systems.

The discovery highlights a growing trend in cybercrime where attackers exploit trusted open-source repositories to compromise developers, businesses, and security researchers. Unlike traditional malware operations that rely on dedicated command-and-control infrastructure, ZiChatBot uses public communication platforms to quietly manage infected machines, making detection significantly harder.

According to researchers from Kaspersky

, the malicious packages were disguised as useful utilities but secretly installed hidden payloads designed to establish persistence, execute remote commands, and communicate through Zulip’s public REST APIs. This unconventional communication method allowed the malware to blend in with legitimate traffic while avoiding many conventional security monitoring systems.

The malicious packages identified in the campaign included “uuid32-utils,” “colorinal,” and “termncolor.” Together, they accumulated thousands of downloads before eventually being removed from PyPI. Investigators believe the operation was carefully planned, with the packages uploaded within a narrow timeframe between July 16 and July 22, 2025.

Researchers found that two of the packages carried nearly identical malware payloads, while the third package appeared harmless but secretly depended on one of the infected libraries. This tactic increased the attack surface and improved the chances of unsuspecting developers installing the malicious code indirectly through dependency chains.

On Windows systems, the malware deployment process begins once the infected package is installed and imported into a project. At that point, a malicious DLL file named “terminate.dll” is written to disk and executed. The DLL acts as a dropper, silently installing ZiChatBot onto the compromised machine. The malware then creates auto-run registry entries to maintain persistence and even deletes traces of the original dropper to reduce forensic evidence.

Linux systems were targeted through a similar mechanism using a shared object file called “terminate.so.” The malware installs itself under the “/tmp/obsHub/obs-check-update” directory and creates scheduled tasks using cron jobs to ensure the infection survives reboots. Regardless of the operating system, ZiChatBot is capable of receiving and executing shellcode instructions remotely.

One of the campaign’s strangest technical details is how the malware confirms successful execution of commands. Instead of using complex encrypted responses, ZiChatBot sends a simple heart emoji back through Zulip’s API infrastructure. This minimalist communication method demonstrates how attackers are increasingly abusing legitimate online services to mask malicious operations.

Attribution remains uncertain, but Kaspersky researchers discovered that the malware dropper shares approximately 64% code similarity with tools previously associated with OceanLotus, also known as APT32, a Vietnam-linked cyber espionage group with a long history of sophisticated operations.

OceanLotus has previously targeted governments, journalists, activists, and cybersecurity professionals using advanced malware campaigns. In late 2024, the group reportedly distributed malicious Visual Studio Code projects disguised as Cobalt Strike plugins. Those infected projects delivered trojans that executed automatically during compilation and used the productivity platform Notion as command-and-control infrastructure.

The potential connection between ZiChatBot and OceanLotus suggests an evolution in the group’s tactics. Instead of relying solely on phishing emails and targeted intrusions, threat actors may now be aggressively expanding into open-source ecosystem attacks to reach a broader pool of victims.

The incident also exposes the growing risks within software dependency chains. Developers often trust packages hosted on official repositories without conducting deep security inspections. Attackers understand this trust model and increasingly weaponize it by embedding malicious functionality inside libraries that appear legitimate or useful.

Security experts warn that package repositories like PyPI, npm, and RubyGems have become prime targets because compromising a single package can potentially infect thousands of downstream applications and systems. As organizations accelerate software development cycles, many teams rely heavily on automated dependency management tools that may inadvertently introduce compromised components into production environments.

The abuse of Zulip APIs in this campaign also reflects a wider trend where cybercriminals avoid traditional malicious infrastructure in favor of legitimate cloud services and collaboration platforms. Similar tactics have previously involved Discord, Telegram, Slack, GitHub, Dropbox, Google Drive, and Notion.

By using trusted online platforms, attackers gain multiple advantages. Their traffic becomes harder to distinguish from normal user behavior, takedowns become slower, and network defenses are less likely to flag connections as suspicious. This “living off trusted services” strategy is rapidly becoming one of the most effective methods for stealthy cyber operations.

The discovery of ZiChatBot serves as another warning that software supply chain attacks are no longer isolated incidents targeting major corporations. They are becoming widespread, automated, and increasingly sophisticated, with open-source ecosystems now sitting at the center of modern cybersecurity battles.

What Undercode Says:

The Open-Source Trust Crisis Is Getting Worse

The ZiChatBot incident reveals a deeper problem inside modern software development: developers trust package ecosystems far more than they should. Open-source repositories were originally built around collaboration and transparency, but attackers now exploit that trust at industrial scale.

A decade ago, malware campaigns mainly focused on phishing emails, infected attachments, and malicious websites. Today, attackers realize that compromising developers gives them indirect access to entire organizations. One poisoned dependency can silently spread across thousands of servers, developer workstations, and production environments.

Supply Chain Attacks Have Become the New Battlefield

Software supply chain attacks are now one of the most dangerous forms of cyber warfare because they weaponize legitimate infrastructure. Attackers no longer need to break into networks directly if they can simply wait for victims to install compromised software voluntarily.

This attack demonstrates how cybercriminals increasingly think like software engineers. The malicious packages were not random uploads. They were carefully named, structured, and timed to appear authentic. Even the dependency relationship between the packages suggests deliberate planning.

Zulip as C2 Infrastructure Changes the Detection Game

Using Zulip APIs as command-and-control infrastructure is particularly significant. Traditional malware detection systems often focus on suspicious IP addresses, unusual domains, or encrypted outbound traffic. But when malware communicates through legitimate collaboration platforms, defenders face a much harder challenge.

This trend mirrors previous attacks abusing Discord webhooks, Telegram bots, Slack APIs, and GitHub repositories. Attackers are hiding malicious activity inside platforms businesses already trust every day.

The cybersecurity industry may need to rethink how network monitoring works entirely. Blocking suspicious traffic is easy. Blocking legitimate cloud platforms used by employees is not.

Linux Malware Is No Longer a Secondary Concern

Another important detail is the malware’s cross-platform capability. Historically, Linux users often considered themselves less exposed to malware threats compared to Windows users. That perception is becoming outdated.

Cloud infrastructure, DevOps environments, CI/CD pipelines, and containerized applications rely heavily on Linux systems. Attackers understand this shift. Infecting Linux machines today can provide access to highly valuable enterprise infrastructure and sensitive development pipelines.

The inclusion of Linux persistence mechanisms through cron jobs shows the attackers specifically designed this malware with professional operational environments in mind.

OceanLotus Connection Raises Geopolitical Questions

Although attribution remains unconfirmed, any connection to OceanLotus introduces geopolitical implications. APT groups linked to nation-state interests are increasingly using open-source ecosystems as intelligence collection opportunities.

If state-aligned actors are actively poisoning developer repositories, this changes the threat landscape dramatically. It means developers themselves are becoming strategic targets in cyber espionage campaigns.

That possibility could push governments and enterprises toward stricter software verification standards, dependency auditing, and internal package mirroring systems.

Developers Must Treat Dependencies Like Untrusted Code

One major lesson from this campaign is that dependencies should never be blindly trusted. Modern applications often rely on hundreds or thousands of third-party packages. Very few organizations audit all of them properly.

The convenience of package managers has created a dangerous security tradeoff. Development speed increased, but dependency visibility collapsed.

Organizations should begin implementing stronger controls such as:

Dependency reputation analysis

Software bill of materials (SBOM) tracking

Package signature verification

Runtime behavior monitoring

Internal dependency approval workflows

Without these protections, supply chain attacks will continue to scale.

Malware Operators Are Becoming More Patient and Professional

The operation also demonstrates growing professionalism among malware operators. Instead of deploying noisy ransomware or obvious payloads, attackers increasingly focus on stealth, persistence, and long-term access.

The self-deleting droppers, legitimate API abuse, and minimalist communication methods all indicate operational maturity. This is not amateur malware experimentation. It reflects calculated threat actor behavior designed to evade modern detection systems.

The Future of Open-Source Security Will Depend on Automation

Manual review of open-source packages is becoming impossible at scale. The number of new packages uploaded daily across ecosystems is simply too large.

Future defense strategies will likely rely heavily on AI-driven behavioral analysis capable of detecting suspicious installation patterns, hidden persistence mechanisms, and unusual outbound communications automatically.

Ironically, the same automation revolution accelerating software development may also become the only viable defense against increasingly automated cyber threats.

🔍 Fact Checker Results

✅ PyPI Packages Were Confirmed Malicious

Security researchers verified that the packages “uuid32-utils” and “colorinal” contained hidden malware payloads capable of infecting Windows and Linux systems.

✅ Zulip APIs Were Used for Command-and-Control Activity

Researchers confirmed ZiChatBot abused Zulip’s REST APIs instead of relying on traditional attacker-controlled infrastructure.

⚠️ OceanLotus Attribution Remains Unconfirmed

Although code similarities were identified, there is currently no definitive public proof linking the campaign directly to OceanLotus/APT32.

📊 Prediction

Cybercriminals Will Intensify Open-Source Ecosystem Attacks

The success of software supply chain compromises will likely encourage more attackers to target developer ecosystems rather than individual users. Open-source repositories remain highly attractive because they provide scalable infection opportunities with relatively low operational cost.

AI-Assisted Malware Campaigns May Become Common

Future malicious packages may use AI-generated code obfuscation, automated dependency poisoning, and adaptive payload delivery techniques to evade detection systems even more effectively.

Enterprises Will Push Toward Private Dependency Ecosystems

Large organizations may increasingly abandon unrestricted public dependency usage in favor of internally verified repositories and tightly controlled software supply chains to reduce exposure to poisoned packages.

🕵️‍📝Let’s dive deep and fact‑check.

References:

Reported By: thehackernews.com
Extra Source Hub (Possible Sources for article):
https://www.quora.com
Wikipedia
OpenAi & Undercode AI

Image Source:

Unsplash
Undercode AI DI v2
Bing

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow UndercodeNews & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin | 🦋BlueSky | 🐘Mastodon