NetSight
ohne WertungMalware-Meldung

MAL-2026-20665

Malicious code in httpnex (PyPI)

Auswirkung

httpnex is an httpx look-alike whose `httpnex/__init__.py` ends with an undocumented `from._warmup import _boot` call. On import, `_warmup.py` starts a background thread that downloads Python source from https://fpapi.cc.cd/load (overridable via an HX_URL environment variable) and writes it, wrapped in `#hx` marker comments, into the installer's own entry scripts (main.py, run.py, bot.py, app.py, __main__.py, start.py) in the current working directory, after creating `.bak` copies. No signature or integrity verification is performed and the destination domain is unrelated to the declared upstream project. The fallback payload embedded in `_warmup.py` as `_DEFAULT` — the block written into the entry files when the remote fetch fails — spawns a daemon thread that polls https://fpapi.cc.cd/pool roughly every 60 seconds, sends the machine hostname from `socket.gethostname()` in an `X-H` request header, and executes the base64- plus zlib-decoded response via `exec(compile(...))`. The result is unauthenticated remote command execution on the host, host-identifier disclosure to the operator domain, and persistence written directly into the developer's project source so the channel reopens on every subsequent run of the modified program. Clone of a popular library with added malicious code: during import, package looks for a remote payload to inject into local files, and starts a background thread that periodically re-checks for a new payload. During analysis, C2 did not deliver the payload. Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2026-11-httpnex Reasons (based on the campaign): - Downloads and executes a remote malicious script. - clones-real-package

Betroffene Pakete

ÖkosystemPaketBetroffenBehoben in
piphttpnexunbekanntnicht erfasst

Schwachstellenklasse

Referenzen