# MAL-2026-18376: Malicious code in black-spindle-2 (npm)


- **Type:** Malicious package
- **Package:** `black-spindle-2` (npm)
- **Published:** 29 Oct 2026

## What is MAL-2026-18376?

MAL-2026-18376 is a malicious package in black-spindle-2, published on 29 Oct 2026. 

### Official description

package.json declares a postinstall script that runs curl against the ephemeral host http://778e-181-63-25-28.ngrok-free.app over plain HTTP, embedding a shell command-substitution expression in the URL path. The script fires automatically on npm install, confirming installation on the installer's machine and providing a channel to exfiltrate host or environment values via the expanded shell expression. The shipped index.js is an empty stub, so the manifest's postinstall beacon is the package's entire effect. The destination is an anonymous ngrok-free.app tunnel with no relationship to any legitimate publisher, consistent with a dependency-confusion or install-confirmation probe.

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

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-18376 is a malicious package: black-spindle-2 (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-18376/ (Markdown: https://insights.sbomify.com/MAL-2026-18376/index.md)
```

## Sources

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

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