Skip to main content
Scans/npm/@anthropic-ai/claude-code

@anthropic-ai/claude-code

npm

Share

Summary

@anthropic-ai/claude-code v2.1.84 was classified as CRITICAL RISK with a risk score of 5980. Sigil detected 403 findings across 27 files, covering phases including install hooks, code patterns, network exfiltration, credential access, obfuscation, provenance. Review the findings below before installing this package.

CRITICAL RISK(5980)

v2.1.84

27 March 2026, 01:17 UTC

by Sigil Bot

Risk Score

5980

Findings

403

Files Scanned

27

Provenance

Findings by Phase

Phase Ordering

Phases are ordered by criticality, with the most dangerous at the top. Click any phase header to expand or collapse its findings. Critical phases are expanded by default.

install-pip-setup-exec

CRITICAL

setup.py executes code at install time

package/cli.js:440

      See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/azurepipelinescredential/troubleshoot`;throw LR.error(K),new Vq(K)}return LR.info("Invoking getToken() of Client Assertion Credential"),this.clientAssertionCredential.getToken(A,q)}async requestOidcToken(A,q){LR.info("Requesting OIDC token from Azure Pipelines..."),LR.info(A);let K=oE({url:A,method:"POST",headers:Jl({"Content-Type":"application/json",Authorization:`Bearer ${q}`,"X-TFS-FedAuthRedirect":"Sup
Why was this flagged?

This setup.py calls subprocess, os.system, exec, or eval during package installation. Legitimate packages rarely need to execute arbitrary commands at install time. This pattern is commonly used by malicious packages to download and run payloads, exfiltrate environment variables, or establish persistence. Rated CRITICAL because it runs with the installer's full permissions.

install-pip-setup-exec

CRITICAL

setup.py executes code at install time

package/cli.js:2813

  `+K.join(`
  `)+`
}`}return _.toString=z,_}Jd1.verbose=!1});var Qoq=m((zC$,Uoq)=>{Uoq.exports=pa6;var TN_=cF1(),kN_=nF1(),Md1=kN_("fs");function pa6(A,q,K){if(typeof q==="function")K=q,q={};else if(!q)q={};if(!K)return TN_(pa6,this,A,q);if(!q.xhr&&Md1&&Md1.readFile)return Md1.readFile(A,function(z,Y){return z&&typeof XMLHttpRequest<"u"?pa6.xhr(A,q,K):z?K(z):K(null,q.binary?Y:Y.toString("utf8"))});return pa6.xhr(A,q,K)}pa6.xhr=function(q,K,_){var z=new XMLHttpRequest;if(z.onreadystatechange=fun
Why was this flagged?

This setup.py calls subprocess, os.system, exec, or eval during package installation. Legitimate packages rarely need to execute arbitrary commands at install time. This pattern is commonly used by malicious packages to download and run payloads, exfiltrate environment variables, or establish persistence. Rated CRITICAL because it runs with the installer's full permissions.

install-pip-setup-exec

CRITICAL

setup.py executes code at install time

package/cli.js:2826

`+q);let K;try{K=hr.Metadata.fromHttp2Headers(A)}catch(Y){K=new hr.Metadata}let _=K.getMap(),z;if(typeof _["grpc-status"]==="string"){let Y=Number(_["grpc-status"]);this.trace("received status code "+Y+" from server"),K.remove("grpc-status");let w="";if(typeof _["grpc-message"]==="string"){try{w=decodeURI(_["grpc-message"])}catch($){w=_["grpc-message"]}K.remove("grpc-message"),this.trace('received status details string "'+w+'" from server')}z={code:Y,details:w,metadata:K}}else if(this.httpStatus
Why was this flagged?

This setup.py calls subprocess, os.system, exec, or eval during package installation. Legitimate packages rarely need to execute arbitrary commands at install time. This pattern is commonly used by malicious packages to download and run payloads, exfiltrate environment variables, or establish persistence. Rated CRITICAL because it runs with the installer's full permissions.

install-makefile-curl

HIGH

Makefile/script pipes remote content to shell

package/cli.js:1445

]`,`[\\[\\]\\.,\\+\\-<> \r
]`,{returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?:\+\+|--)/,contains:[q]},q]}}DMq.exports=jl9});var ZMq=m((riw,WMq)=>{function Hl9(A){if(!A)return null;if(typeof A==="string")return A;return A.source}function Jl9(A){return cb1("(?=",A,")")}function rT8(A){return cb1("(",A,")?")}function cb1(...A){return A.map((K)=>Hl9(K)).join("")}function Ml9(A){let q=A.COMMENT("//","$",{contains:
Why was this flagged?

A script or Makefile pipes content from a remote URL directly into a shell (curl | sh or wget | bash). This is inherently dangerous because the remote content can change at any time, and the command runs with the current user's permissions. Rated HIGH because it requires manual execution (unlike install hooks) but still executes arbitrary remote code.

Badge

Sigil scan badge for npm/@anthropic-ai/claude-code

Markdown

[![Sigil Scan](https://sigilsec.ai/badge/npm/@anthropic-ai/claude-code)](https://sigilsec.ai/scans/117B0B47-C0A1-4A86-B706-ACFC04D33EA6)

HTML

<a href="https://sigilsec.ai/scans/117B0B47-C0A1-4A86-B706-ACFC04D33EA6"><img src="https://sigilsec.ai/badge/npm/@anthropic-ai/claude-code" alt="Sigil Scan"></a>

Run This Scan Yourself

Scan your own packages

Run Sigil locally to audit any package before it touches your codebase.

curl -sSL https://sigilsec.ai/install.sh | sh
Read the docs →Free. Apache 2.0.

Early Access

Get cloud scanning, threat intel, and CI/CD integration.

Join 150+ developers on the waitlist.

Get threat intelligence and product updates

Security research, new threat signatures, and product updates. No spam.

Other npm scans

Believe this result is incorrect? Request a review or see our Terms of Service and Methodology.

Scanned bySigil Bot