# MAL-2026-16345: Malicious code in starbucks-sdk (npm)


- **Type:** Malicious package
- **Package:** `starbucks-sdk` (npm)
- **Published:** 20 Sep 2026

## What is MAL-2026-16345?

MAL-2026-16345 is a malicious package in starbucks-sdk, published on 20 Sep 2026. 

### Official description

The package's package.json declares a preinstall script that runs callback.js on npm install. callback.js collects os.hostname(), os.userInfo(), os.platform(), the current working directory, and a timestamp, then enumerates process.env and selects keys matching /token|secret|key|pass|auth|api|aws/i (up to 10 entries). The collected data is POSTed via https.request to https://api.telegram.org/bot<BOT_TOKEN>/sendMessage using a hardcoded Telegram bot token and chat_id (bot 8636277735, chat_id 1064260758). The name mimics a legitimate vendor SDK but the package's only behavior is install-time reconnaissance and exfiltration of installer/build-host identity and credential-shaped environment variable names to an attacker-controlled Telegram channel — a dependency-confusion recon payload.

The OpenSSF Package Analysis project identified 'starbucks-sdk' @ 1.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-16345?

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

## Sources

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

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