Full Byte Developer.

Refuse fake Claude npm packages

Two malware package names to refuse, the official Claude Code path, and what to do if you already installed one.

Published here · 4 sources

Two Claude-looking npm packages are listed as malware in the GitHub Advisory Database. Refuse @claudecode/cli and @claudeorg/universal-code-generator, install only through Anthropic's recommended path, and if you already installed either name treat that host as compromised. [1][2][3][4]

Related reading: Check packages before trusting an AI suggestion (includes the 2026-12-03 @claude-ai/anima-flow wave), How the September 2025 npm worm spread, Remove instrumentation-undici malware (GHSA-xqrc-pjq4-v9m9), Scan GGUF models before you load them, Patch stimulus-bridge build RCE to 4.0.3 and Patch simple-git --exec injection (CVE-2026-134815). For more security posts, browse the Security topic.

Refuse the two malware package names

GitHub Advisory Database published malware for @claudecode/cli on 2026-11-13 (GHSA-vp2q-gp5r-xh5j). Affected versions are all versions; patched versions: none. [1]

It published malware for @claudeorg/universal-code-generator on 2026-11-19 (GHSA-2rgp-c9mf-f8q7). Affected versions are all versions (>= 0); patched versions: none. [2]

Do not install either name. Do not treat a Claude-looking scope as proof of authenticity.

Use only the official Claude Code install path

The official Claude Code npm package name is @anthropic-ai/claude-code, per the Anthropic repository. [3]

Anthropic's setup docs deprecate installing Claude Code through npm. Recommended Mac and Linux install uses the curl installer. [4]

bash
curl -fsSL https://claude.ai/install.sh | bash

Homebrew and WinGet are also documented. WinGet uses the package id Anthropic.ClaudeCode. [4]

bash
winget install Anthropic.ClaudeCode

After install, confirm the binary responds before you trust the session. Prefer the documented curl, Homebrew or WinGet path over any third-party npm name that only looks related to Claude.

If you already installed a malware package

Both advisories say any computer that has the package installed or running should be considered fully compromised. [1][2]

  1. Stop using that machine for secrets work.
  2. Remove the malware package from the environment where it was installed.
  3. Rotate credentials from a clean machine: tokens, SSH keys, cloud keys, npm tokens, GitHub tokens and anything else that host could reach.
  4. Review recent commits, published packages and CI secrets that machine could have touched.

A clean npm uninstall on the same host is not enough on its own. The advisory guidance is compromise response, not a tidy package delete.

Send this to the teammate who is about to npm install a Claude-sounding package name from a chat reply.

Keep this guide

By Full Byte Developer

Filed under Security, Claude Code

Questions about this guide

Is any npm package with Claude in the name safe?

No. GitHub Advisory Database lists malware in @claudecode/cli and @claudeorg/universal-code-generator. The official package name is @anthropic-ai/claude-code, and Anthropic's setup docs deprecate npm install in favour of curl, Homebrew or WinGet.

What if I already installed one of the malware packages?

Per both advisories, treat that machine as fully compromised. Remove the package, then rotate secrets from a clean machine. Do not rotate from the same host.

Does uninstalling the package make the machine safe?

No. The advisories say any computer that installed or ran the package should be considered fully compromised, so credential rotation from a clean machine is part of recovery.

Sources

  1. Claude Code setup docscode.claude.com

Next in this stack