MAL-2026-15861 Malicious code in py-1requests (PyPI)

Malicious package Published
Package
py-1requests
Registry
PyPI

What is MAL-2026-15861?

MAL-2026-15861 is a malicious package in py-1requests, published on 3 Sep 2026.

Official description

py_1requests is a typosquat of the popular requests library (leading 1 inserted inside the name). On import, py_1requests/init.py iterates os.environ and collects every variable whose name starts with SECRET, API, TOKEN, or KEY, then opens a TCP socket to HOST:PORT and sends the serialized dict; HOST and PORT default to 127.0.0.1:9999 but are overridable via the TS_HOST and TS_PORT environment variables. The same init.py spawns a python subprocess that connects to the same host/port and sends a 'SHELL' marker, holding the connection open — a reverse-shell staging path. cli.py prints 'py_1requests installed – targeting requests' and init.py prints '[typosquat] exfiltrating:…', in-source admissions of purpose. Both behaviors fire unconditionally on import with no documented purpose.

During import, the code exfiltrates potentially sensitive env variables. In all analyzed versions the exfiltration target was a localhost, suggesting it was just a test.


Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.

Campaign: 2026-09-0requests

Reasons (based on the campaign):

  • exfiltration-env-variables

  • typosquatting

What should I do about MAL-2026-15861?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

Sources

Is MAL-2026-15861 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free