# MAL-2026-5287: Malicious code in uhd-setup (npm)


- **Type:** Malicious package
- **Package:** `uhd-setup` (npm)
- **Published:** 6 Jun 2026

## What is MAL-2026-5287?

MAL-2026-5287 is a malicious package in uhd-setup, published on 6 Jun 2026. 

### Official description

package.json declares `scripts.preinstall: node index.js`. On `npm install`, index.js (lines 4-5) performs `dns.resolve` and `https.get` against `<id>.d8hiivedv3ok8hrng5eghchyw4hwsioaz.oast.online`, an Interactsh OAST collector. The request fires unconditionally with no opt-out, leaking the installer's egress IP, internal DNS resolver identity, and fact-of-install (with the package id encoded in the subdomain and URL path) to a third-party-controlled endpoint. The README frames this as authorized dependency-confusion research targeting Ubiquiti, but the beacon does not gate on any organizational identifier — any installer that pulls this name (typo, internal-name collision, automated mirror) sends build-system metadata to the researcher. Trigger is the preinstall lifecycle hook, so the network call fires before any code review opportunity.

The OpenSSF Package Analysis project identified 'uhd-setup' @ 99.0.0 (npm) as malicious.

It is considered malicious because:

- The package communicates with a domain associated with malicious activity.

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

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

## Sources

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

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