Malicious code in bfox-build-utils (PyPI)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (cae53348f8261653938b39ae3cb79101baff666c4216ecaeb635e34b42ba8293) At install time, setup.py harvests the installer's GitHub credential and uses it to modify the installer's own repository. The script reads `$GITHUB_WORKSPACE/.git/config`, regexes the `extraheader = AUTHORIZATION: basic ` line that actions/checkout injects for the running job, base64-decodes it to recover the token, and also reads `GITHUB_TOKEN` from the environment. Using that token as `x-access-token`, it clones the installer's repository, creates branch `feature/ci-health-check`, writes `.github/workflows/ci-health-check.yml`, commits as `github-actions[bot]` with message `Add CI health check`, and pushes via git (with a REST-API fallback), explicitly bypassing the API restriction that protects workflow files. This plants a persistent, attacker-controlled GitHub Actions workflow in the installer's repository that will execute on future pushes to the planted branch. The shipped Python module `bfox_build_utils.py` is a two-line stub containing only `VERSION = "1.0.997"`; the package's advertised purpose (`Build utilities.`) and the innocuous naming of the branch, commit, and bot identity are cover for the credential theft and workflow-injection payload in setup.py.
MAL-2026-17319
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:MAL-2026-17319
bfox-build-utils
Source reference: /affected/0/package/name
- Affected versions
- 1.0.997
Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"package": {
"name": "bfox-build-utils",
"purl": "pkg:pypi/bfox-build-utils",
"ecosystem": "PyPI"
},
"versions": [
"1.0.997"
],
"database_specific": {
"cwes": [
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
}
],
"source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/bfox-build-utils/MAL-2026-17319.json",
"indicators": {
"evidence_files": [
{
"path": "setup.py",
"tlsh": "8fc15496da062ca283a7cc2cd5c6c0a0a675784f56095c347eec81797fcc579c2e32dd",
"sha256": "67b03e3a2aa4c3f091dea8af0f2754bdd6948f8330eb8460ae12e19c0c8f2c80"
}
],
"package_integrity": [
{
"hashes": {
"md5": "29c31bf4da6b36c708b2b133cb23e1ca",
"sha256": "b43d470d00faeffe486d550271e4096ab57b28b98d5af1624a8c0e39e62dbbb3",
"blake2b_256": "1d3b4905e852ca5a65902f26f3cecc7ed8f5082dae5fa01cdb4ec5b0fd903a0e"
},
"filename": "bfox_build_utils-1.0.997.tar.gz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #33456 · Revision 1
- Added to Heist Feed
- Publisher date