py-1requests (PyPI) · Malicious Code
Affects py-1requestsSource GCVE Database
Malicious package : remove py-1requests and rotate any secrets on hosts that installed it.
Data as of 7 Sep 2026, 16:08 UTC
Malicious package
Published to PyPI · OSV MAL-2026-15861
What to do
Remove py-1requests 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
| Product | Affected | Fixed in |
|---|---|---|
| PyPIpy-1requests | Affected
| 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-1requests package is a malicious typosquat of the popular Python requests library. On import, it collects environment variables with names starting with SECRET, API, TOKEN, or KEY and exfiltrates them via a TCP connection to a configurable host and port, defaulting to localhost:9999. It also establishes a reverse-shell staging connection. These actions occur unconditionally upon import with no legitimate purpose. The exfiltration target being localhost suggests this may be a test or pentest tool rather than widespread malicious use.