# MAL-2026-5785: Malicious code in ve-hemi-rewards (npm)


- **Type:** Malicious package
- **Package:** `ve-hemi-rewards` (npm)
- **Published:** 15 Jun 2026
- **Also known as:** GHSA-wx43-hfx3-xw46

## What is MAL-2026-5785?

MAL-2026-5785 is a malicious package in ve-hemi-rewards, published on 15 Jun 2026. 

### Official description

On `npm install`, the package's preinstall lifecycle invokes postinstall.js, which collects hostname, username, and current working directory, then iterates process.env and filters keys against the regex /key|secret|token|pass|private|ssh|deploy|auth|api|rpc|wallet|sentry|docker|graph|slack|host/i. The matching key/value pairs (CI tokens, cloud credentials, SSH/deploy keys, RPC and wallet secrets, etc.) are JSON-serialized and POSTed over HTTPS to a hardcoded bare IP, 185.130.46.35:8443/collect. The package name 've-hemi-rewards' at version 999.0.0 with description 'Internal package' is a classic dependency-confusion shape — a high-version stub published to the public registry to override resolution of an organization's private package of the same name. There is no legitimate functionality; the package exists to harvest installer secrets.

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

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-5785 is a malicious package: ve-hemi-rewards (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-5785/ (Markdown: https://insights.sbomify.com/MAL-2026-5785/index.md)
```

## Sources

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

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