cvelo
P2 · HighMalware

Malicious code in reuquests (PyPI)

  • MAL-2026-20955

Description

reuquests is a typosquat of requests that copies requests 2.28.2 and installs a top-level 'requests' module, so the payload runs whenever 'requests' is imported (including by other libraries), not at install time. requests/__init__.py adds dwarfvoice(), called at module level: unless ~/.nope exists (a run-once marker created after a successful upload), it silences stdout/stderr for the rest of the process, collects ~/.ssh/id_rsa, ~/.ssh/known_hosts, ~/.bash_history, the login name, directory listings of the working and home directories and the contents of every file in the working directory, gzips them to res.gz (left in the working directory) and POSTs the data to hxxp://azazell[.]pythonanywhere[.]com/log. The package has been removed from PyPI; this analysis is based on the archived source distribution of 2.28.2 (DataDog malicious-software-packages-dataset). It is part of a small 'Albert Xor' campaign from 2023-03-20 with the flask typosquat flsak, which uses the same PythonAnywhere host.

Text from the OSV record.

Affected

  • reuquestsPyPI

    • No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.