-= Per source details. Do not edit below this line.=-
bramin ships a bramin-setup.pth file that Python auto-executes at every interpreter startup (system-wide, not only when bramin is imported). The.pth contains a single-line obfuscated payload using single-letter aliases (_O, _T, _G, _o, _s, _u, _p, _y, _b, _z, _zf) that, on first run, downloads the Bun JavaScript runtime from https://github.com/oven-sh/bun/releases/download/bun-v1.3.13/bun-<platform>-<arch>.zip, stages the binary to /tmp/b/bun, chmods it executable, and invokes bun run against a sibling _index.js discovered via dirname(__file__) with a glob fallback. A guard file /tmp/.bun_ran ensures the dropper fires only once per machine to evade observation. Several signals confirm malicious intent: (1) the package advertises itself only as a 'pipe operator syntax' Python library and has no legitimate need for a JavaScript runtime; (2) _index.js is not listed in the wheel's RECORD manifest, meaning the executed JS payload is smuggled in or supplied by a later/sibling drop and is not covered by the distribution's integrity metadata; (3) __init__.py declares __version__ = '0.0.1' while the dist-info is 0.0.3, a version-drift fingerprint consistent with an additive-only republish bolting the dropper onto a previously legitimate release; (4) the obfuscation shape (chained exec() of a one-line string with aliased imports) has no benign explanation for a.pth file, whose legitimate purpose is sys.path mutation. Installer impact: arbitrary attacker-controlled JavaScript execution on the installer's machine on the very next Python invocation after pip install bramin, with the executed bytes (_index.js) outside the wheel's signed manifest and therefore mutable by the attacker at any time.
Versions 0.0.2, 0.0.3, 0.0.4 were compromised.
Compromised packages start an obfuscated infostealer. The infostealer is a heavily obfuscated JavaScript code executed using Bun runtime on Python startup. It collectes all kinds of sensitive data, including API keys, credentials to package repositories, cryptocurrency assets, password manager data. Infostealer actively queries online services to collect additional secrets as well as attempts to gain persistence and spread further by publishing infected packages using collected credentials. Data are exfiltrated likely using Github. The code seems to threaten to wipe the user's data if it detects invalid GitHub tokens. Cleanup should be done with caution.
It seems to be related to the recent Mini Shai Hulud campaign.
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2026-06-compr-woodpecker
Reasons (based on the campaign):
compromised-package
exfiltration-env-variables
exfiltration-cloud-tokens
exfiltration-credentials
abuses-pth
obfuscation
infostealer
The package contains code to detect if it is running in a sandbox environment.
exfiltration-crypto
files-exfiltration
destructive-actions
{
"malicious-packages-origins": [
{
"modified_time": "2026-06-06T06:13:57Z",
"source": "kam193",
"sha256": "28d9bf945559e6c3defecd55f9f3af3bb8b6dc073ad2b039f7c4e1eb6947c0f5",
"id": "pypi/2026-06-compr-woodpecker/bramin",
"import_time": "2026-06-06T07:59:00.745547052Z",
"versions": [
"0.0.3",
"0.0.4"
]
},
{
"modified_time": "2026-06-06T06:13:57Z",
"source": "kam193",
"sha256": "5f6116f7e533ec9477c087aa51a01a51f12bbcb362723a100b9779752d55697f",
"id": "pypi/2026-06-compr-woodpecker/bramin",
"versions": [
"0.0.3",
"0.0.4"
],
"import_time": "2026-06-08T11:41:02.515076135Z"
},
{
"modified_time": "2026-06-06T06:32:20Z",
"source": "kam193",
"sha256": "8d6946e4eefd247489fdfc7129175201ff9048eef20090da047e7c786a77d1da",
"id": "pypi/2026-06-compr-woodpecker/bramin",
"versions": [
"0.0.3",
"0.0.4"
],
"import_time": "2026-06-08T19:19:19.171305189Z"
},
{
"modified_time": "2026-06-06T06:32:20Z",
"source": "kam193",
"sha256": "3c3f7bc91d1fdf4046c296cb923cdbc52953de258f33424a0966ac60146134a3",
"id": "pypi/2026-06-compr-woodpecker/bramin",
"versions": [
"0.0.3",
"0.0.4"
],
"import_time": "2026-06-09T07:48:29.631905461Z"
},
{
"modified_time": "2026-06-10T06:29:45.923386Z",
"source": "kam193",
"sha256": "5933ebb330070d47683cbb0b04b4a8805db94d845d0efde3a592e178a0092769",
"id": "pypi/2026-06-compr-woodpecker/bramin",
"versions": [
"0.0.2",
"0.0.3",
"0.0.4"
],
"import_time": "2026-06-10T07:37:18.748039283Z"
},
{
"modified_time": "2026-06-12T19:02:38Z",
"source": "amazon-inspector",
"sha256": "1fb2ac40fcb4626c5e7dea5e26951bc0965b39a1eb721c1a8f23846f421a5827",
"id": "IN-MAL-2026-005820",
"import_time": "2026-06-12T19:43:36.737039764Z",
"versions": [
"0.0.3"
]
}
]
}"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/bramin/MAL-2026-5280.json"
[
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
}
]
{
"package_integrity": [
{
"filename": "bramin-0.0.3-py3-none-any.whl",
"hashes": {
"md5": "74323f092ca504e78981970652460336",
"sha256": "d38651d6aaf018b612175ca1ecc0f588b77bef009858427c7028f0bf4e04ee8e",
"blake2b_256": "1064d72770ed10e593fb0159f8ee2c58d101487e5687269445acf9e324de10fc"
}
}
],
"evidence_files": [
{
"sha256": "c539766062555d47716f8432e73adbe3a0c0c954a0b6c4005017a668975e275c",
"tlsh": "4911c02e429385b0d975d646830b19f4afdb8ce28fc79506c8d8d4c1a7b2e50e3b7684",
"path": "bramin-setup.pth"
},
{
"sha256": "e0de33c87c1a3713ea3a7b3c794eff1f8d71913e104b6616823eca037ce1f52a",
"tlsh": "8821bebc6b85a24f71ff40e5a36947b8fc022223744bf92c9b05143596ae4d584357e8",
"path": "bramin-0.0.3.dist-info/RECORD"
}
]
}