{"id":"PYSEC-2026-579","summary":"Malicious code in cmd2func (PyPI)","details":"Part of the \"Hades\" wave of the Shai-Hulud supply-chain campaign. On 2026-06-08,\nmalicious phantom releases of cmd2func were published to PyPI using stolen\ncredentials. The package executes a bundled JavaScript payload (via the Bun\nruntime) on import that harvests and exfiltrates credentials and attempts\nself-propagation. This entry is a summary; behavior may not be fully\ncharacterized here. See the linked references for detailed analysis and\nindicators of compromise.\n","aliases":["MAL-2026-5290"],"modified":"2026-06-29T21:00:05.046842527Z","published":"2026-06-29T20:25:09Z","references":[{"type":"EVIDENCE","url":"https://inspector.pypi.io/project/cmd2func/0.2.3/packages/c4/3f/73499e767180eb8a29905f1d69a13642325c9724beabb84f425a8c622de7/cmd2func-0.2.3-py3-none-any.whl//cmd2func-setup.pth"},{"type":"ARTICLE","url":"https://www.endorlabs.com/learn/shai-hulud-hades-wave-hits-six-pypi-bioinformatics-packages"},{"type":"ARTICLE","url":"https://www.stepsecurity.io/blog/the-hades-campaign-pypi-packages"}],"affected":[{"package":{"name":"cmd2func","ecosystem":"PyPI","purl":"pkg:pypi/cmd2func"},"versions":["0.2.2","0.2.3"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/cmd2func/PYSEC-2026-579.yaml"}}],"schema_version":"1.7.5"}