Skip to main content
MalwarePublished

py-2equests (PyPI) · Malicious Code

Affects py-2equestsSource GCVE Database

0

Malicious package : remove py-2equests and rotate any secrets on hosts that installed it.

Data as of 7 Sep 2026, 16:08 UTC

Classification

Malicious package

Published to PyPI · OSV MAL-2026-15862

What to do

Remove py-2equests from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
PyPIpy-2equestsAffected
  • =0.0.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The py-2equests package on PyPI is a malicious typosquatting package impersonating the popular 'requests' library. When imported, it collects environment variables with keys starting with SECRET, API, TOKEN, or KEY and sends them to a configurable remote host and port. It also opens a reverse shell connection to the same destination, allowing remote code execution. The package version 0.0.1 is affected. The exfiltration target in analyzed versions was localhost, indicating possible testing rather than active widespread exploitation.

References

Community reviews

Loading reviews…