Skip to content

An editorial team and a community building with AI

← All articles

News · GitHub Security Advisories / npm · 2 min read

Event date: · Published:

GitHub flags npm package brandkit/theme for stealing Anthropic and Gemini API keys

GitHub disclosed that npm package @brandkit/theme runs a malicious postinstall script that steals Anthropic, Gemini, and AI Gateway API keys from developer machines.

GitHub Security Advisories disclosed on November 17, 2026 that the npm package @brandkit/theme, disguised as a design-token library, runs a postinstall script that downloads an executable to steal Anthropic and Gemini API keys from developer machines, according to GitHub's advisory on the malicious package.

The concrete details

  • Advisory GHSA-vcm3-3h6p-h62v was published on November 17, 2026 at 06:31:51 UTC, with a Critical severity rating under CWE-506 (Embedded Malicious Code).
  • The malicious package is @brandkit/theme on npm, presented as a design-token or Tailwind-preset library.
  • Affected versions are 2.4.1 and 2.4.2, both published on November 15, 2026.
  • The postinstall script downloads a platform-specific Go binary from an attacker-controlled Gitea repository, makes it executable, and runs it silently.
  • The binary harvests the ANTHROPIC_API_KEY, GEMINI_API_KEY, and AI_GATEWAY_KEY environment variables and sends them to an external request-recording service.

What it means for AI builders

The malware targets the exact Anthropic and Gemini API keys that developers of AI coding tools keep in their environment variables, rather than generic secrets. That pattern shows attackers are now writing payloads specifically tuned to steal LLM provider credentials, a sign that keys for AI Gateway services have become a direct target for anyone building with AI.

What to do now

The advisory, which credits researcher Bitbison with discovering the package through static source review and binary analysis, recommends removing @brandkit/theme from any project and rotating Anthropic, Gemini, and AI Gateway credentials from a machine that was not compromised. The package is also tracked as OSV MAL-2026-20041.


Sources

Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.

GitHub flags npm package brandkit/theme for stealing Anthropic and Gemini API keys | vibecoding.inc