# MAL-2026-6724: Malicious code in starlette-healthcheck (PyPI)


- **Type:** Malicious package
- **Package:** `starlette-healthcheck` (PyPI)
- **Published:** 1 Jul 2026

## What is MAL-2026-6724?

MAL-2026-6724 is a malicious package in starlette-healthcheck, published on 1 Jul 2026. 

### Official description

The 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.

The 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.

---

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2026-09-starlette-healthcheck

Reasons (based on the campaign):

 - action-hidden-in-lib-usage

 - typosquatting

## What should I do about MAL-2026-6724?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-6724 is a malicious package: starlette-healthcheck (PyPI). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-6724/ (Markdown: https://insights.sbomify.com/MAL-2026-6724/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-6724

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-6724/
Summaries are generated and may contain mistakes; the official description above is the record.
