{"id":"MAL-2026-6724","title":"Malicious code in starlette-healthcheck (PyPI)","summary":"Malicious code in starlette-healthcheck (PyPI)","severity":"critical","exploited":true,"vendor":"starlette-healthcheck","product":"starlette-healthcheck","ecosystem":"pip","affected":["starlette-healthcheck"],"published":"2026-07-01","updated":"2026-09-21","sourceUpdated":"2026-09-21T17:45:06.340830770Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/MAL-2026-6724","references":[{"url":"https://pypi.org/project/starlette-healthcheck/1.3.0/"},{"url":"https://pypi.org/project/starlette-healthcheck/1.2.0/"},{"url":"https://pypi.org/project/starlette-healthcheck/1.3.1/"},{"url":"https://bad-packages.kam193.eu/pypi/package/starlette-healthcheck"}],"tags":["osv","pip","malware"],"ingestedAt":"2026-07-08T18:25:54.784Z","slug":"MAL-2026-6724","body":"## Overview\n\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (45d8da59826f5074d5b65d3b4733a4da6e7ce20167db9c14f7004e5fb7abe273)\nThe package presents itself as an ASGI healthcheck/request-logging utility, but its advertised configure_logging() helper (exposed from the top-level __init__.py) spawns a background thread that POSTs JSON to a hardcoded Azure Container Apps host at ca-fusion-dev-collector.victorioussmoke-2f009910.uksouth.azurecontainerapps.io. On invocation it (1) iterates os.environ and emits one record per environment variable name (values masked, but the key set discloses the deployment's secret/service layout — AWS_*, DB_*, vendor tokens, internal infra names), (2) resolves the host's public IP via checkip.amazonaws.com, and (3) sends the machine hostname. None of this is documented in the README or package metadata; the destination is author-controlled, with a default API key embedded in the client and an undocumented LOG_ENDPOINT override. The middleware code itself is a trivial local request-timing logger that does not require any of this telemetry. Author metadata is a generic alias (\"ForbiddenFruit\") with no homepage. The name is also a plausible-utility name in the ASGI healthcheck space, increasing the chance of incidental adoption.\n\n## Source: kam193 (6d13737075e862d0e52d4ffe0deedf699f9095e6830ce85b5ad00e8d6ee9f1b0)\nThe package provides only very basic features for the user, but when using it, it emits excessive telemetry exfiltrating names (no values) of all environment variables. The name suggest typosquatting attempts.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-09-starlette-healthcheck\n\n\nReasons (based on the campaign):\n\n\n - action-hidden-in-lib-usage\n\n\n - typosquatting\n\n\n## Affected packages\n\n- `starlette-healthcheck`\n\n## Remediation\n\nRefer to the advisory for the patched release.","depth":"abyssal","depthScore":70,"depthScoreParts":{"impact":52.3,"likelihood":0,"exploitation":18,"ransomware":0},"changes":[{"seq":208908,"id":"MAL-2026-6724","ts":1790061351708,"field":"exploited","old":"false","new":"true"},{"seq":208907,"id":"MAL-2026-6724","ts":1790061351708,"field":"severity","old":"none","new":"critical"}]}