denowrapPyPI
Advisory published Updated
denowrap is a confirmed malicious PyPI package (MAL-2026-20653) that steals credentials and exfiltrates sensitive data (malicious version 1.0.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in denowrap (PyPI)
What this malware does
The package, advertised as Deno helper utilities exposing only trivial greet/clamp functions, ships a 41 MB _loader.py containing a chunked base64/lzma-compressed blob together with extraction and launch configuration for a Windows executable named runtimecore.exe (_TARGET = r"runtimecore.exe", _MODE = "exe", _SPAWN = "direct", with lzma/zlib/tempfile/subprocess imports). __init__.py calls _loader_run_hook(wait=False) unconditionally at import, and setup.py fires the same hook from custom install/bdist_wheel commands on Windows, so both pip install denowrap and any import denowrap decode and execute the embedded binary. _loader.py also carries _ANTIVM = 1 and _PERSIST = 1 alongside a base64 JSON configuration enumerating analysis-environment hostnames (sandbox, malware, cuckoo, virustotal), analyst and VM process names (vboxservice, vmtoolsd, wireshark, procmon, ida, x64dbg), VirtualBox/VMware registry keys and hypervisor MAC prefixes, plus persistence settings "run_key": "Software\\Microsoft\\Windows\\CurrentVersion\\Run", "persist_sub": "Microsoft\\CoreRuntime" and marker srv_rt.cfg. The combination of an opaque multi-megabyte executable launched automatically, deliberate evasion of analysis environments, and autorun registry persistence under a name mimicking a Microsoft runtime component constitutes attacker-controlled code execution and durable persistence on the installing host, with the declared package purpose serving as cover.
During import or installation, package starts as an embedded executable. It is identified as a RAT from the Quasar/PulsarRAT family.
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2026-11-denowrap
Reasons (based on the campaign):
-
obfuscation
-
The package contains code to detect if it is running in a sandbox environment.
-
malware
-
rat
-
The package overrides the install command in setup.py to execute malicious code during installation.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for denowrap (version 1.0.0).
If you installed it — respond
denowrap is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.
Did it already run?
If denowrap was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
- Kamil Mańkowski (kam193) · reporter
Detect & block this
O3 blocks denowrap-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.