# MAL-2026-12478: Malicious code in test22221 (npm)


- **Type:** Malicious package
- **Package:** `test22221` (npm)
- **Published:** 5 Aug 2026

## What is MAL-2026-12478?

MAL-2026-12478 is a malicious package in test22221, published on 5 Aug 2026. 

### Official description

package.json declares preinstall and postinstall lifecycle hooks that run on `npm install`. Both hooks curl a hardcoded bare-IP endpoint over plain HTTP at 54.37.234.136, sending the installer's username (`whoami`), hostname, current working directory, and a timestamp as query-string parameters to `http://54.37.234.136/voicemail`. The same lifecycle scripts also embed an unbounded `for((i=1;;i++))` loop that repeatedly curls incrementing paths on the same host with a 10-second sleep, functioning as a long-poll channel to the attacker-controlled endpoint during install. The destination is a bare IP with no relationship to any package publisher domain, and the collected fields are host-identification data with no legitimate purpose in an install hook.

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

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

## Sources

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

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