# MAL-2026-6370: Malicious code in hyperpure (npm)


- **Type:** Malicious package
- **Package:** `hyperpure` (npm)
- **Published:** 24 Jun 2026
- **Also known as:** GHSA-q5m5-95fv-6hgf

## What is MAL-2026-6370?

MAL-2026-6370 is a malicious package in hyperpure, published on 24 Jun 2026. 

### Official description

On `npm install`, the preinstall lifecycle script in package.json runs `curl` to POST the installer's hostname (`hostname -f`), current user (`whoami`), working directory (`pwd`), and a base64-encoded dump of the entire process environment (`env | base64 -w0`) over plain HTTP to `http://d8s0b82plbq3u5sb2vo0sb3a9obr4yjt7.oast.site`, an interactsh-style out-of-band collector domain. The dumped environment commonly includes CI tokens, cloud credentials (AWS_*, GCP, Azure), npm publish tokens, and other secrets present at install time, so any installer running `npm install hyperpure` discloses those secrets to an attacker-controlled listener. The package itself is otherwise hollow — index.js only exports `{ name: 'hyperpure', version: '1.0.0' }` — and the package metadata claims to be Zomato's internal `hyperpure` restaurant-supply-chain library, matching the shape of a dependency-confusion attack against an internal package name. The harm fires automatically on default install with no user opt-in.

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

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

## Sources

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

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