A weaponized version of the PyPI package mrbios was published on June 5, 2026, completing a two-stage attack by adding an obfuscated JavaScript credential stealer to the persistence hook deployed in v0.1.1. Armando found that mrbios v0.1.2 ships _index.js alongside the .pth startup hook, with the payload's C2 endpoints concealed in a runtime-decoded obfuscated string array. The package has 3,061 total downloads.
Key Findings
- Malicious version: v0.1.2, published 2026-06-05; earlier versions are clean
- Entry point: Python
.pth startup hook (mrbios-setup.pth) fires automatically on every Python interpreter launch
- Targets: Developer workstations and CI/CD pipelines -- targets secrets in the developer environment
- Evasion:
_index.js C2 endpoints are runtime-decoded from an obfuscated string array; IP addresses referenced in the loader bypass DNS detection
- Detection: Script-Python.Downloader.SupplyChain, Script-JS.Worm.Miasma, Archive-ZIP.Downloader.SupplyChain
Package Background
mrbios is a PyPI package first published on June 3, 2023, with 3,061 total downloads and no direct dependents. It declares no source code repository. The package remained quiet for nearly three years before the attacker published both v0.1.1 and v0.1.2 within the same hour on June 5, 2026 -- a two-version attack sequence consistent with a staged deployment: a loader first, then the payload.
Attack Analysis
Armando's analysis of v0.1.2 shows the wheel archive mrbios-0.1.2-py3-none-any.whl containing three malicious files: mrbios-setup.pth, _index.js, and a METADATA file.
The .pth hook mechanism is unchanged from v0.1.1: it fires on every Python startup, downloads the Bun JS runtime from a GitHub release page, and executes _index.js. The key addition in v0.1.2 is the payload itself arriving bundled in the wheel, eliminating any additional download step for the stealer.
Behavioral analysis of v0.1.2 shows a richer profile than v0.1.1: obfuscated byte sequences (consistent with runtime-decoded endpoint arrays), dynamic code evaluation, IP address references (direct C2 without DNS), process creation, file manipulation, and environment variable enumeration. The obfuscated string array in _index.js contains the actual C2 endpoints and exfiltration targets; these are decoded at runtime and are not recoverable from static analysis.
Malicious Files
mrbios-0.1.2-py3-none-any.whl is the delivery archive, classified as Archive-ZIP.Downloader.SupplyChain. It contains the persistence hook, the credential-stealing payload, and the malicious METADATA file.
mrbios-setup.pth is the Python startup hook, classified as Script-Python.Downloader.SupplyChain. It executes on every Python interpreter start, downloads the Bun runtime, and invokes _index.js.
_index.js is the obfuscated credential-stealing payload, classified as Script-JS.Worm.Miasma. It targets developer and CI environment secrets. C2 endpoints and exfiltration targets are stored as a runtime-decoded obfuscated string array and are not present as plaintext in the file.
Recommendations
Developers and security teams should take the following steps:
- Identify exposure: Check whether mrbios v0.1.2 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: Remove mrbios v0.1.2 from your environment. Audit site-packages for
mrbios-setup.pth, delete it, and remove any Bun runtime binaries installed by the hook.
- Inspect affected systems: Rotate all credentials in environment variables accessible to Python. Review outbound connections to IP addresses from Python processes at startup. Remove any
_index.js files found alongside Python packages.
- 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 |
|---|
| mrbios-0.1.2-py3-none-any.whl | b4e2aefb9c5f6d5a8d04ad76ca723657972331fd09661bae3b5b25f34c308c22 | Archive-ZIP.Worm.Miasma |
| mrbios-setup.pth | c539766062555d47716f8432e73adbe3a0c0c954a0b6c4005017a668975e275c | Script-Python.Downloader.SupplyChain |
| _index.js | dc48b09b2a5954f7ff79ab8a2fd80202bd3b59c08c7cdbc6025aa923cb4c0efe | Script-JS.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 |
|---|
| mrbios-0.1.2-py3-none-any.whl | b4e2aefb9c5f6d5a8d04ad76ca723657972331fd09661bae3b5b25f34c308c22 |