Armando found that ppkt2synergy, a Python package for synergy and correlation analysis of HPO annotations in GA4GH phenopacket cohorts, was poisoned with a credential stealer on June 8, 2026. Version 0.1.1 delivers a Python startup hook and an obfuscated JavaScript payload that fire automatically on every Python interpreter invocation after installation. The package, first published in October 2025, was targeted as part of a coordinated account takeover affecting six packages in the Monarch Initiative / HPO / P2GX bioinformatics ecosystem.
Key Findings
- Malicious version: v0.1.1, published 2026-06-08; prior version is clean
- Entry point:
ppkt2synergy-setup.pth Python path configuration file fires automatically on every Python startup after install
- Targets: Developer machines and CI/CD pipelines running Python -- downloads and executes the Bun JavaScript runtime, then runs a bundled obfuscated
_index.js credential stealer
- Evasion: C2 endpoints and exfiltration targets are runtime-decoded from an obfuscated string array in
_index.js; no plaintext malicious indicators appear in the package
- Detection: Archive-ZIP.Downloader.SupplyChain, Script-Python.Downloader.SupplyChain, Script-JS.Worm.Miasma, Text.Worm.Miasma
Package Background
ppkt2synergy provides synergy and correlation analysis of Human Phenotype Ontology (HPO) annotations in GA4GH phenopacket cohorts -- tooling used in rare disease research to identify statistical relationships between clinical phenotype observations. First published in October 2025, the package has 1,424 lifetime downloads. While its download count is lower than companion packages in this attack, it was included in the same coordinated compromise, which targeted the entire P2GX / HPO analysis ecosystem rather than individual high-volume packages.
Attack Analysis
ppkt2synergy was one of six packages published with near-identical poisoned payloads in a tight cluster on June 8, 2026. The attacker controlled the PyPI account and uploaded a modified wheel containing both the legitimate package content and two injected files: a .pth startup hook and an obfuscated JavaScript credential stealer.
The .pth file -- ppkt2synergy-setup.pth -- is processed by Python's site module on every interpreter startup. This bypasses the one-time execution of install hooks and gives the attacker code that runs persistently: on developer workstations, in CI/CD runners, and in any other Python process started in the affected environment.
On activation, the hook downloads the Bun JavaScript runtime and executes the bundled _index.js. The JavaScript payload uses a string array obfuscation pattern to hide all attacker-controlled network addresses. The payload then harvests credentials from the victim machine and exfiltrates them to the runtime-decoded endpoints. The METADATA file was also modified -- flagged with the same worm classification as the JavaScript file.
A distinctive signal for this package: the metadata indicates the publisher account used an anonymous email address, an additional indicator consistent with a compromised or attacker-controlled account.
Malicious Files
ppkt2synergy-0.1.1-py3-none-any.whl is the poisoned wheel archive, detected as Archive-ZIP.Downloader.SupplyChain. It delivers the malicious startup hook and the JavaScript credential stealer.
ppkt2synergy-setup.pth is a Python path configuration file detected as Script-Python.Downloader.SupplyChain. Python's site module evaluates it on every interpreter startup after install, downloading the Bun runtime and launching _index.js.
_index.js is a heavily obfuscated JavaScript credential stealer detected as Script-JS.Worm.Miasma. All C2 endpoints and exfiltration targets are runtime-decoded from an obfuscated string array; static analysis cannot recover them.
METADATA is the wheel's package metadata file, flagged as Text.Worm.Miasma. The attacker modified it as part of the infection.
Recommendations
Developers and security teams should take the following steps:
- Identify exposure: Check whether ppkt2synergy v0.1.1 appears in your dependency tree, including transitive dependencies. Any pipeline that ran
pip install while this version was current should be considered potentially affected.
- Update immediately: Downgrade to a prior clean release of ppkt2synergy. Verify the installed version does not include a
.pth file named ppkt2synergy-setup.pth.
- Inspect affected systems: On machines that installed the malicious version, check for unexpected Bun runtime binaries and rotate all stored credentials -- cloud API keys, SSH keys, and browser-stored passwords.
- Scan your software supply chain: Use Spectra Assure Community to check whether packages in your environment have been flagged.
Indicators of Compromise
Malicious Files
| Filename | SHA256 | Detection |
|---|
| ppkt2synergy-0.1.1-py3-none-any.whl | f5ff549ae857ab17551d5a6d5bee968ad773aaeaf4a5cbf9d023ff0c77fbd451 | Archive-ZIP.Worm.Miasma |
| ppkt2synergy-setup.pth | 3dfe328b814a9faf876a705770c747832fa5f398158d94fd9c923593061bcd94 | Script-Python.Downloader.SupplyChain |
| _index.js | 0c8a43e4f397fc1df1a40909eba1ff245546d6a51c9d31f7246f2aed76f0beec | Script-JS.Worm.Miasma |
| METADATA | c8a4f942446e100747ca6ab1ff20ac0d263ffe304e3a5983eca5a4aa17f78127 | Text.Worm.Miasma |
Network IOCs
| URL / IP | Purpose |
|---|
| None | Endpoints and attacker addresses are runtime-decoded from the obfuscated string array; not present as plaintext |
Archive Hashes
| File | SHA256 |
|---|
| ppkt2synergy-0.1.1-py3-none-any.whl | f5ff549ae857ab17551d5a6d5bee968ad773aaeaf4a5cbf9d023ff0c77fbd451 |