A package named rlask -- another near-miss typosquat targeting the Flask Python web framework -- was published to PyPI on June 7, 2026 and subsequently removed. Armando's analysis confirmed the wheel contains a Python path configuration hook that fires automatically on every Python startup and downloads the Bun JavaScript runtime to execute a bundled, heavily obfuscated credential-stealing script. The package recorded 1,004 downloads before removal, the highest count among this cluster of Flask typosquats.
Key Findings
- Malicious version: v3.1.7, published 2026-06-07; no clean predecessor exists (all-malicious package)
- Entry point: rlask-setup.pth Python path hook fires automatically on every Python interpreter startup after install
- Targets: Developer machines and CI/CD pipelines -- installs Bun JS runtime and executes an obfuscated credential stealer
- Evasion: C2 endpoints and exfiltration targets are runtime-decoded from an obfuscated string array inside _index.js; no plaintext network indicators appear in the package
- Detection: Archive-ZIP.Downloader.SupplyChain, Script-Python.Downloader.SupplyChain
Package Background
Flask is maintained by the Pallets project and is one of the most deployed Python web frameworks in production. rlask mimics the name with two changed characters -- the initial character replaced and the middle rearranged -- keeping it close enough to attract typo-driven installs. The package offers no legitimate web framework functionality. It was first published on June 1, 2026, and v3.1.7 was uploaded on June 7, 2026. With 1,004 downloads and no direct dependents, it attracted the most downloads of the three Flask typosquats discovered in this cluster. PyPI has since removed it.
Attack Analysis
The attack exploits the Python interpreter's .pth file evaluation behavior. Python reads all .pth files in site-packages at startup; any line beginning with import is executed as Python code. This gives any package that places a .pth file in site-packages persistent, automatic code execution on every future Python invocation on that machine -- no install-time scripts, no user interaction after the initial pip install.
rlask installs rlask-setup.pth into site-packages. The hook downloads the Bun JavaScript runtime from GitHub releases, then executes the bundled _index.js. Bun is fetched from a legitimate, public GitHub releases URL -- a deliberate choice that avoids direct contact with an attacker-controlled download server at the initial stage and makes the network traffic appear routine.
_index.js is the operational payload. It uses a rotating string-array obfuscation technique: all meaningful strings -- C2 hostnames, exfiltration endpoints, names of credential stores to target -- are stored as an encoded array and looked up by integer index at runtime. No live C2 address is present as plaintext anywhere in the package. This obfuscation approach matches the pattern the scanner associates with the Miasma credential-stealer family.
The METADATA file carries campaign-specific markers flagged by the scanner under the same Miasma classification, confirming this distribution is part of the same infrastructure as the co-released tlask and rsquests typosquats.
Malicious Files
rlask-3.1.7-py3-none-any.whl is the distribution archive and container of all malicious components. Detection: Archive-ZIP.Downloader.SupplyChain.
rlask-setup.pth is the Python path configuration hook written to site-packages at install. On every subsequent Python interpreter start on an affected system, this file is evaluated: it downloads the Bun runtime from GitHub and runs _index.js. Detection: Script-Python.Downloader.SupplyChain.
_index.js is the obfuscated JavaScript credential-stealing payload. Executed by Bun, it harvests developer and CI/CD secrets. C2 addresses and exfiltration targets are hidden entirely within a runtime-decoded string array; static analysis of the package cannot recover the live endpoints. Detection: Script-JS.Worm.Miasma (scanner).
METADATA is the distribution metadata file. The scanner flags it under the Miasma family, indicating campaign infrastructure markers embedded in the package metadata itself. Detection: Text.Worm.Miasma (scanner).
Recommendations
Developers and security teams should take the following steps:
- Identify exposure: Check whether rlask v3.1.7 appears in your dependency tree, including transitive dependencies. Any pipeline that ran
pip install while this version was current should be considered potentially affected. The .pth hook persists and fires on every Python invocation after install, not just at install time.
- Update immediately: Remove rlask entirely -- there is no clean version. The legitimate package is flask.
- Inspect affected systems: On machines that installed the malicious version, check for unexpected Bun runtime processes or binaries in temporary directories, and audit developer credentials and CI/CD secrets for signs of exfiltration.
- 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 |
|---|
| rlask-3.1.7-py3-none-any.whl | 7aa4c41c61865314ed183085455ad117c1f41f4f157f6e586362096736b225e4 | Archive-ZIP.Worm.Miasma |
| rlask-setup.pth | 6506d31707a39949f89534bf9705bcf889f1ecae3dbc6f4ff88d67a8be3d01b2 | Script-Python.Downloader.SupplyChain |
| METADATA | d92daacbf999cda42cb1f493d5f2d79377a91f4213c03ff4c72e06dd2dfff1cb | Text.Worm.Miasma |
| _index.js | debefe9b49f6984c77bd7e6b9203aef57e44da0daef68917c16dfeebfc2c19dd | 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 |
|---|
| rlask-3.1.7-py3-none-any.whl | 7aa4c41c61865314ed183085455ad117c1f41f4f157f6e586362096736b225e4 |