# 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.

Source: https://fullbytedeveloper.com/blog/refuse-fake-claude-npm-packages
Published here: 2026-11-23

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](/blog/check-ai-suggested-package-dependencies) (includes the 2026-12-03 `@claude-ai/anima-flow` wave), [How the September 2025 npm worm spread](/blog/shai-hulud-npm-worm-response), [Remove instrumentation-undici malware (GHSA-xqrc-pjq4-v9m9)](/blog/patch-instrumentation-undici-malware), [Scan GGUF models before you load them](/blog/scan-gguf-models-before-you-load), [Patch stimulus-bridge build RCE to 4.0.3](/blog/patch-stimulus-bridge-build-rce) and [Patch simple-git --exec injection (CVE-2026-134815)](/blog/patch-simple-git-exec-injection). For more security posts, browse the [Security topic](https://fullbytedeveloper.com/blog/topic/security).

## 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.

## Sources

1. [GitHub Advisory: malware in @claudecode/cli (GHSA-vp2q-gp5r-xh5j)](https://github.com/advisories/GHSA-vp2q-gp5r-xh5j)
2. [GitHub Advisory: malware in @claudeorg/universal-code-generator (GHSA-2rgp-c9mf-f8q7)](https://github.com/advisories/GHSA-2rgp-c9mf-f8q7)
3. [Claude Code GitHub repository](https://github.com/anthropics/claude-code)
4. [Claude Code setup docs](https://code.claude.com/docs/en/setup)
