# PYSEC-2026-1068: Malicious code in dreamgen (PyPI)

- Database: PyPA
- Also known as: MAL-2026-5313
- Published: 2026-07-07
- Modified: 2026-07-07

## Affected versions

- dreamgen (PyPI): 1.8.1

## Description

Part of the "Hades" wave of the Shai-Hulud supply-chain campaign. On 2026-06-08,
malicious phantom releases of dreamgen were published to PyPI using stolen
credentials. The package executes a bundled JavaScript payload (via the Bun
runtime) on import that harvests and exfiltrates credentials and attempts
self-propagation. This entry is a summary; behavior may not be fully
characterized here. See the linked references for detailed analysis and
indicators of compromise.

## References

- https://inspector.pypi.io/project/dreamgen/1.8.1/packages/17/5b/d156503d17b45fad8acce719202870a7652915141b02ec365f8df88a5b4f/dreamgen-1.8.1-py3-none-any.whl/dreamgen-setup.pth
- https://www.endorlabs.com/learn/shai-hulud-hades-wave-hits-six-pypi-bioinformatics-packages
- https://www.stepsecurity.io/blog/the-hades-campaign-pypi-packages

Page: https://cve.now/PYSEC-2026-1068

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
