DEV Community

SloaneWinterbourne
SloaneWinterbourne

Posted on

executor-engine's Phantom Releases Turn Import into Credential Exfiltration

executor-engine's Phantom Releases Turn Import into Credential Exfiltration

Malicious releases of the PyPI package executor-engine were published as versions 0.3.4 and 0.3.5 on June 8, 2026. GitHub reviewed advisory GHSA-jwjq-c2gw-w78m attributes them to the Hades wave of the Shai-Hulud supply-chain campaign. The advisory identifies stolen publishing credentials and a bundled JavaScript payload that runs when the package is imported.

The package uses a .pth file to execute code during Python startup. That means a developer does not need to import the package in application code. Installing it into the environment is enough to run the loader on the next Python process.

What the payload targets

The published summary says the JavaScript payload runs through Bun, harvests credentials and attempts self-propagation. Those actions fit the pattern of a package compromising developer and CI environments, then using the recovered identity to publish or spread further.

The advisory does not fully characterize every behavior. Incident scope should come from the package files, process tree, network records and affected secrets, not from a generic malware description.

Removal is not just pip uninstall

First isolate affected build hosts and CI runners. Preserve the event logs, shell history, package metadata and relevant files before cleanup. Remove executor-engine 0.3.4 and 0.3.5 from active environments, lock files, caches and container images.

Assume credentials available to the process may have been read. Prioritize cloud tokens, source-control tokens, package publishing tokens, SSH keys, environment secrets and browser or CLI profiles used on the host. Rotate from a clean system and invalidate sessions where the provider supports it.

Search repository and package history for unexpected versions, new tokens or publishing activity after the install date. A clean wheel on the endpoint does not prove a credential was unused elsewhere.

Prevent the next phantom release

Pin dependencies to hashes, separate CI publishing credentials from build jobs and require human or policy approval for new package versions. Keep package caches immutable after review. Agentic coding environments should not inherit production credentials merely because a package import might need them.

The malicious versions have no legitimate fixed release. The safe action is removal and incident review, not an upgrade to another untrusted version.

References

Top comments (0)