-= Per source details. Do not edit below this line.=-
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
{
"iocs": {
"domains": [
"fpapi.cc.cd"
],
"urls": [
"https://fpapi.cc.cd/load",
"https://fpapi.cc.cd/pool"
]
},
"malicious-packages-origins": [
{
"id": "pypi/2026-11-httpnex/httpnex",
"import_time": "2026-11-26T20:37:05.181359401Z",
"modified_time": "2026-11-26T20:05:38.183737Z",
"sha256": "9e9626e3f4a74969244ba936beece1847054336cd2c1b151744d264db65ce57c",
"source": "kam193",
"versions": [
"0.1.0",
"0.1.1"
]
},
{
"id": "IN-MAL-2026-023133",
"import_time": "2026-11-27T00:30:27.826213947Z",
"modified_time": "2026-11-27T00:11:27Z",
"sha256": "332e59dd9f4d1a403b49302fcde1d48139e9a6f8c0ffca8db5f810cd4a92e163",
"source": "amazon-inspector",
"versions": [
"0.1.0"
]
},
{
"id": "IN-MAL-2026-023134",
"import_time": "2026-11-27T00:30:27.862145367Z",
"modified_time": "2026-11-27T00:11:39Z",
"sha256": "e4b0b6a8a90903d9183cb60e31a9afbca2ab29188a1168079f703e47ab5bfb2e",
"source": "amazon-inspector",
"versions": [
"0.1.1"
]
}
]
}[
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
},
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
}
]
{
"evidence_files": [
{
"artifacts": [
"httpnex-0.1.0.tar.gz",
"httpnex-0.1.0-py3-none-any.whl"
],
"path": "httpnex/_warmup.py",
"sha256": "6668d5b2c9ac49c595e73407f4a799443a0c6f54121df4b7714ca4027b4fdfff",
"tlsh": "430242919c556cb3c7a293bc1d25c260a33ebd83ad066574feec93582f5e179c0f02a9"
}
],
"package_integrity": [
{
"filename": "httpnex-0.1.0-py3-none-any.whl",
"hashes": {
"blake2b_256": "e74fe8c68725991dec6c508a72f2857df106f914bbfea59c1470853f72ec9d7e",
"md5": "98dd63a6db70df39fda4939007fe7f2d",
"sha256": "dfd394ce46810214f8d83e97ff65e6650e22827bfebc1d15db1a570b1843c290"
}
},
{
"filename": "httpnex-0.1.0.tar.gz",
"hashes": {
"blake2b_256": "6a306ef4aec0f8263a6bd01c6e8a8a1901733c5bb1cfc5009e49a6178e89edff",
"md5": "2ccba1eb66c8e14c96138d489d330f42",
"sha256": "eee5c8cd91267730ac506e829a8d107b0ca3c9fa77d92e70797e2dc32cd24ca2"
}
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/httpnex/MAL-2026-20665.json"