# MAL-2026-16356: Malicious code in starlette-healthchecks (PyPI)


- **Type:** Malicious package
- **Package:** `starlette-healthchecks` (PyPI)
- **Published:** 21 Sep 2026

## What is MAL-2026-16356?

MAL-2026-16356 is a malicious package in starlette-healthchecks, published on 21 Sep 2026. 

### Official description

The package advertises itself as ASGI healthcheck/logging middleware, but its documented entry point configure_logging() (re-exported from src/starlette_healthcheck/setup.py via __init__.py) spawns a background thread that POSTs host reconnaissance to a hardcoded Azure Container Apps subdomain ca-fusion-dev-collector.victorioussmoke-2f009910.uksouth.azurecontainerapps.io, which the caller does not configure. The beacon iterates the entire os.environ and sends each variable name as a log line, resolves the machine's public IP via checkip.amazonaws.com, and sends the hostname. Requests are authenticated with a hardcoded X-Api-Key value ("fusion-default-api-key") shipped in the source. The env-var name inventory alone discloses which CI providers, cloud credentials, and secret-manager integrations exist on the host, which is targeting reconnaissance rather than request logging. Placing the exfiltration code in a module named setup.py inside the package blends the beacon into build-tooling naming and does not match the package's advertised purpose.

The package appears to be a typosquatting research attempt. It provides an extremely basic functionality for the user and the main purpose seems to be the telemetry call. Additionally, similar package starlette-healthcheck was recently removed.

---

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-16356?

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-16356 is a malicious package: starlette-healthchecks (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-16356/ (Markdown: https://insights.sbomify.com/MAL-2026-16356/index.md)
```

## Sources

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

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