Privacy Ninja

10 Malicious PyPI Packages Found Stealing Developer’s Credentials

10 Malicious PyPI Packages Found Stealing Developer’s Credentials

Threat analysts have discovered ten malicious Python packages on the PyPI repository, used to infect developer’s systems with password-stealing malware.

The fake packages used typosquatting to impersonate popular software projects and trick PyPI users into downloading them.

PyPI (Python Package Index) is a repository of over 350,000 open-source software packages that millions of registered users can easily incorporate into their Python projects and build complex products with minimal effort.

Malware operators take advantage of the platform’s open nature and frequently upload malicious or fake packages to compromise developers’ systems.

From there, the threat actors target the developers and their assets for supply-chain attacks, steal proprietary source code, or look for potential pivoting points in the software development environment.

Also Read: 10 Principles On How To Build A Good Governance Model

Ten Pypi packages used to steal credentials

The malicious PyPi packages discovered by CheckPoint and outlined in a new report are:

  • Ascii2text – Mimicking “art,” a popular ASCII Art Library for Python, Ascii2text uses the same description minus the release details. Its code fetches a malicious script that searches for local passwords and exfiltrates them via a Discord webhook.
Fake and real package comparison
Fake and real package comparison (CheckPoint)
  • Pyg-utils, Pymocks, PyProto2 – All three packages target AWS credentials and appear very similar to another set of packages discovered by Sonatype in June. The first even connects to the same domain (“”), while the other two target “”.
  • Test-async – Package with a vague description that fetches malicious code from a remote resource and notifies a Discord channel that a new infection has been established.
  • Free-net-vpn and Free-net-vpn2 – User credential harvester published to a site mapped by a dynamic DNS mapping service.
Free-net-vpn installation script
Free-net-vpn installation script (CheckPoint)
  • Zlibsrc – Mimicking the zlib project, this package contains a script that downloads and runs a malicious file from an external source.
  • Browserdiv – Package targeting the credentials of web design programmers. Uses Discord webhooks for data exfiltration.
Browserdiv installation script
Browserdiv installation script (CheckPoint)
  • WINRPCexploit – A credential-stealing package that promises to automate the exploitation of the Windows RPC vulnerability. However, when executed, the package will upload the server’s environment variables, which commonly contain credentials, to a remote site under the attacker’s control.

Although the discovered packages were reported by CheckPoint and removed from PyPI, software developers that downloaded them on their systems could still be at risk.

Also Read: The Importance Of DPIA And Its 3 Types Of Processing

If you have downloaded and used any of the above packages, consider yourself compromised and take appropriate action.

In many cases, the malicious packages laid the ground for possible supply chain attacks, so the developer’s computer may just be the initial point of a widespread infection, and code should be audited for malicious code.

It is important to remember that no package in PyPI comes with security guarantees, and users are responsible for scrutinizing names, release histories, submission details, homepage links, and download numbers.

All these elements collectively can help determine if a Python package is trustworthy or potentially malicious.



Subscribe to our mailing list to get free tips on Data Protection and Data Privacy updates weekly!

Personal Data Protection


We have assisted numerous companies to prepare proper and accurate reports to PDPC to minimise financial penalties.


Click one of our contacts below to chat on WhatsApp

× Chat with us