Malicious code in httpnex
OpenSSF/OSV advisory MAL-2026-20665 for a malicious PyPI package release.
EXECUTIVE SUMMARY & OBSERVED BEHAVIOR
Malicious code in httpnex (PyPI)
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. - 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
SOURCE CLASSIFICATIONSource: kam193Category: Malicious
AFFECTED PACKAGE & VERSIONS
| PACKAGE | ECOSYSTEM | INTRODUCED | FIXED / LAST AFFECTED |
|---|---|---|---|
httpnex | PyPI | 0.1.0 | 0.1.0 |
httpnex | PyPI | 0.1.1 | 0.1.1 |
IMMEDIATE CONTAINMENT & REMEDIATION
- Uninstall the package with `pip uninstall -y httpnex` and purge the wheel cache (`pip cache purge`).
- Rebuild the virtualenv from hash-pinned requirements so the malicious wheel cannot be re-resolved.
- Run `pip-audit` (or `pip check`) after the rebuild to confirm the environment is clean.
- Treat any process that loaded this package under the malicious versions as compromised and isolate it.
- Rotate every credential, token and publishing secret that was reachable from the build or runtime environment.
- Audit outbound network telemetry for the period the package was installed.
OFFICIAL SOURCE PROVENANCE
Stay ahead of verified threats.
Curated CVE advisories, threat actor dossiers, and live KQL/SPL hunting updates — delivered cleanly to your inbox. Zero spam.
This is a published advisory, not a sandbox detonation. No package is downloaded or executed by ZAYRON-X.