# MAL-2026-4860: Malicious code in @qlab/ui (npm)


- **Type:** Malicious package
- **Package:** `@qlab/ui` (npm)
- **Published:** 28 May 2026

## What is MAL-2026-4860?

MAL-2026-4860 is a malicious package in @qlab/ui, published on 28 May 2026. 

### Official description

package.json declares `scripts.preinstall: node index.js`, causing index.js to run automatically during `npm install`. index.js collects `os.hostname()`, `os.userInfo().username`, `os.homedir()`, `dns.getServers()`, the current working directory, and the contents of package.json, then POSTs the payload over HTTPS to https://eo1e4fhn1i67p8r.m.pipedream.net. The same beacon is duplicated in ai/index.js, which is exposed through the package's `exports` map as `./ai`, so `require('@qlab/ui/ai')` re-fires the POST at import time. The combination of preinstall lifecycle execution, an attacker-controlled webhook endpoint, and harvesting of installer host/user/DNS/package metadata is a dependency-confusion reconnaissance beacon targeting the @qlab scope. Installers are the direct victims: simply running `npm install` ships their machine identity to the attacker.

The OpenSSF Package Analysis project identified '@qlab/ui' @ 2.0.6 (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-4860?

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-4860 is a malicious package: @qlab/ui (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-4860/ (Markdown: https://insights.sbomify.com/MAL-2026-4860/index.md)
```

## Sources

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

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