# MAL-2026-15692: Malicious code in unifi-credential-server (npm)


- **Type:** Malicious package
- **Package:** `unifi-credential-server` (npm)
- **Published:** 24 Aug 2026

## What is MAL-2026-15692?

MAL-2026-15692 is a malicious package in unifi-credential-server, published on 24 Aug 2026. 

### Official description

package.json declares a preinstall hook that runs index.js on npm install. index.js collects hostname, username, working directory, internal IPv4 addresses from os.networkInterfaces(), and CI/build environment variables (GITHUB_REPOSITORY, GITHUB_RUN_ID, GITLAB_CI, npm_config_registry, npm_package_name, AWS_REGION, JENKINS_URL, and others), hex-encodes the payload into <=60-character DNS labels appended to the hardcoded base domain d8hjn6ap4rntta9vj5ve0jkl1seb4k3kci.oast.me, and exfiltrates via dns.resolve() of the constructed FQDN plus an https.get() to the same host. A secondary DNS query using the package name as a subdomain is also emitted. The name unifi-credential-server and version 99.0.0 are consistent with a dependency-confusion lure targeting internal builds that resolve the name against the public registry.

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

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-15692 is a malicious package: unifi-credential-server (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-15692/ (Markdown: https://insights.sbomify.com/MAL-2026-15692/index.md)
```

## Sources

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

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