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

@anthropic-ai/claude-agent-sdk

npm

Share

Summary

@anthropic-ai/claude-agent-sdk v0.2.85 was classified as CRITICAL RISK with a risk score of 5810. Sigil detected 386 findings across 33 files, covering phases including code patterns, obfuscation, install hooks, network exfiltration, credential access, provenance. Review the findings below before installing this package.

CRITICAL RISK(5810)

v0.2.85

27 March 2026, 03:35 UTC

by Sigil Bot

Risk Score

5810

Findings

386

Files Scanned

33

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 rh.error(_),new fq(_)}return rh.info("Invoking getToken() of Client Assertion Credential"),this.clientAssertionCredential.getToken(q,K)}async requestOidcToken(q,K){rh.info("Requesting OIDC token from Azure Pipelines..."),rh.info(q);let _=PE({url:q,method:"POST",headers:gl({"Content-Type":"application/json",Authorization:`Bearer ${K}`,"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:2867

  `+_.join(`
  `)+`
}`}return z.toString=Y,z}pc1.verbose=!1});var ssq=m((AmA,asq)=>{asq.exports=Is6;var wLz=ZQ1(),jLz=vQ1(),gc1=jLz("fs");function Is6(q,K,_){if(typeof K==="function")_=K,K={};else if(!K)K={};if(!_)return wLz(Is6,this,q,K);if(!K.xhr&&gc1&&gc1.readFile)return gc1.readFile(q,function(Y,$){return Y&&typeof XMLHttpRequest<"u"?Is6.xhr(q,K,_):Y?_(Y):_(null,K.binary?$:$.toString("utf8"))});return Is6.xhr(q,K,_)}Is6.xhr=function(K,_,z){var Y=new XMLHttpRequest;if(Y.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:2880

`+K);let _;try{_=Ho.Metadata.fromHttp2Headers(q)}catch($){_=new Ho.Metadata}let z=_.getMap(),Y;if(typeof z["grpc-status"]==="string"){let $=Number(z["grpc-status"]);this.trace("received status code "+$+" from server"),_.remove("grpc-status");let A="";if(typeof z["grpc-message"]==="string"){try{A=decodeURI(z["grpc-message"])}catch(O){A=z["grpc-message"]}_.remove("grpc-message"),this.trace('received status details string "'+A+'" from server')}Y={code:$,details:A,metadata:_}}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:1448

]`,`[\\[\\]\\.,\\+\\-<> \r
]`,{returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?:\+\+|--)/,contains:[K]},K]}}HDq.exports=Pr_});var MDq=m((os$,XDq)=>{function Wr_(q){if(!q)return null;if(typeof q==="string")return q;return q.source}function Zr_(q){return _x1("(?=",q,")")}function oV8(q){return _x1("(",q,")?")}function _x1(...q){return q.map((_)=>Wr_(_)).join("")}function fr_(q){let K=q.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-agent-sdk

Markdown

[![Sigil Scan](https://sigilsec.ai/badge/npm/@anthropic-ai/claude-agent-sdk)](https://sigilsec.ai/scans/03A714B6-35A4-424B-973F-765F3C0C319A)

HTML

<a href="https://sigilsec.ai/scans/03A714B6-35A4-424B-973F-765F3C0C319A"><img src="https://sigilsec.ai/badge/npm/@anthropic-ai/claude-agent-sdk" 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