Loading npm security reports…
Loading npm security reports…
shadow-claw@1.30.0: AI-agent capability abuse – flagged | LPM Firewall
Flagged as AI-agent capability risk
Allowed by default with warning: agent-facing configuration or capability changes need review before use.
AI security reviewscanned on Sep 7, 2026, 22:45 UTC · by lpm-firewall-ai The package is not malicious by the inspected source, but its exposed agent command execution and forwarding proxy are high-impact capabilities that warrant a warning. No automatic lifecycle or concrete malicious chain was found.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
A user or agent invokes the bash tool or sends a request to the proxy endpoint.
Impact
An agent with enabled tools can modify its workspace or send data to a user-selected remote service.
Mechanism
Agent tool dispatch and caller-controlled HTTP forwarding.
Evidence
src/worker/utils/executeTool.ts src/server/routes/http-proxy.ts src/server/utils/proxy-helpers.ts
public snapshot
Evidence for warning
The agent dispatcher exposes a bash tool that can execute commands in its workspace. The server exposes a caller-controlled HTTP proxy and can forward explicitly supplied authorization headers. These capabilities are reachable during normal runtime, not during installation. Evidence against
package.json has no preinstall, install, or postinstall hook. No source evidence showed secret harvesting, hidden exfiltration, self-dependency, or reviewer-directed manipulation. The proxy rejects non-HTTP schemes and blocks private addresses by default. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Native bindings · Network · Shell · Web socket
Supply chain High entropy strings · Minified · Possible obfuscation · Protestware · Telemetry · URL strings
Manifest Copyleft license
Scanned 1,502 files · 25.9 MB of source
50 external domains referenced
10.0.0.1 10.0.0.2 10.9.8.226 127.0.0.1 169.254.169.254 172.16.0.5 172.20.0.1 172.20.0.5 192.168.1.1 192.168.1.100 192.168.1.5 192.168.1.50 a2ui.org accounts.google.com actions.google.com agent-card.github.io ai.google.dev aiplatform.googleapis.com allowed.example.com another.com any.example.com api.example.com api.external.com api.figma.com api.github.com api.hf.co api.linear.app api.login.yahoo.com api.myservice.com api.nodemailer.com api.notion.com api.openai.com api.telegram.org api.test api.test.example app.internal app.vssps.visualstudio.com attacker.com attacker.github.io auth.atlassian.com auth.example.com auth.openai.com bad.example.com bible-tools.github.io bit.ly bridge.example bridge.example.com cdn-lfs.huggingface.co cdn.jsdelivr.net cdnjs.cloudflare.com Oversized source lightweight scan
dist/electron/main.cjs 2.64 MB file, sampled 256 KB
Filesystem Network Child process Crypto High entropy strings Minified URL strings accounts.google.com api.nodemailer.com api.telegram.org ethereal.email mail.google.com nodemailer.com www.w3.org
dist/lib/orchestrator-C6dc-2OQ.js 2.39 MB file, sampled 256 KB
Network Child process Dynamic require High entropy strings URL strings 127.0.0.1 developer.chrome.com docs.aws.amazon.com github.com huggingface.co ollama.com openrouter.ai
Findings3 critical · 11 high · 10 medium · 7 low Source & flagged code21 flagged Code excerpt · 3 lines 37812 patternName = generic_password
severity = medium
line = 37812
High Child process
Package source references child process execution.
bin/version.mjs View on unpkg · L2 Code excerpt · 2 lines 3 import { execSync } from "node:child_process" ;
4 import { readFile, writeFile, stat } from "node:fs/promises" ;
Code excerpt · 3 lines 34053 //#endregion
34054 //#region node_modules/highlight.js/lib/languages/powershell.js
34055 var require_powershell = /* @__PURE__ */ __commonJSMin (((exports, module) => {
High Eval
Package source references dynamic code evaluation.
bin/rolldown.config.test.mjs View on unpkg · L183 Code excerpt · 3 lines 183 grayMatterPlugin.transform (
184 "return eval(str) || {};" ,
185 "/src/engines.js" ,
Critical Previous version dangerous delta
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
bin/cli.mjs View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = shadow-claw@1.27.1
matchedIdentity = npm:c2hhZG93LWNsYXc:1.27.1
similarity = 0.758
summary = stored previous version shares package body but lacks this dangerous source file
Medium Dynamic require
Package source references dynamic require/import behavior.
bin/cli.mjs View on unpkg · L178 Code excerpt · 2 lines 179 const { startServer } = await import (serverModulePath);
180
src/service-worker/patch-service-worker-trusted-types.test.js View file Medium Unsafe vm context
Package source executes code through a VM context API.
src/service-worker/patch-service-worker-trusted-types.test.js View on unpkg · L1 Code excerpt · 2 lines 1 import { describe, expect, it, jest } from "@jest/globals" ;
2 import vm from "node:vm" ;
Critical Command output exfiltration
Source executes local commands and sends command output to an external endpoint.
dist/electron/main.cjs View on unpkg · L84 Code excerpt · 7 lines 84 ${t}
85 ${r (s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let n of e.split(` /`))n?.length!==0&&n!==` .`&&(n===` ..`?t.pop():t.push(n));let n=` ${e?.startsWith (`/` )?`/` :`...
86 `);return this.signString(h,{signingDate:n,signingRegion:c,signingService:o,eventStreamCredentials:s})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,...
87 See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
⋯
98 `)?{tag:t,value:` `}:{tag:t,value:e}}let c=Object.create(null);for(let e of i)e.trim()===`
dist/public/orchestrator-DMWi--Dc.js View file High Same file environment network execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/public/orchestrator-DMWi--Dc.js View on unpkg · L155 Code excerpt · 2 lines 156 `.substring(0,i)+r}function yo(e){return e!=null&&(typeof e==` string`||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var bo=we(),xo=Xn(),So=Qi(),Co=Object.create,w...
157
High Remote agent bridge
Source exposes local file and command tools to a remote model endpoint.
dist/public/orchestrator-DMWi--Dc.js View on unpkg · L155 Code excerpt · 7 lines 156 `.substring(0,i)+r}function yo(e){return e!=null&&(typeof e==` string`||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var bo=we(),xo=Xn(),So=Qi(),Co=Object.create,w...
157
⋯
High Credential redirect persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/server.js View on unpkg Scanner record · 4 lines Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/server.jsimport e,{createRequire as t}from"node:module";import n from"process";import{env as r,exit as i}from"node:process";import a from"node:http";import o from"node:https";import s,{base...
`).run(e.clientId,e.deviceLabel,a,e.version,i,r,t),{clientId:e.clientId,deviceLabel:e.deviceLabel,capabilities:e.capabilities,version:e.version,peerId:i||void 0,connectedAt:r,lastS...
`,`utf8`)}catch{}try{let e=s.join(h(),`shadow-claw`);l.existsSync(e)||l.mkdirSync(e,{recursive:!0}),l.writeFileSync(s.join(e,`control-token.json`),JSON.stringify(o,null,2)+`
`+u),ye&&(u=gt(u)),S&&Oe?O(u):u},t.setConfig=function(){let e=arguments.length>0&&arg
High Cloud metadata access
Source reaches cloud instance metadata or link-local credential endpoints.
dist/server.js View on unpkg · L1 Code excerpt · 9 lines 1 import e,{createRequire t} ; n ; {env r,exit i} ; a ; o ; s,{base...
High Trigger reachable external AI agent control surface mutation
Manifest-trigger-reachable source writes behavior-bearing configuration into a user or project AI-agent control surface.
bin/build/build.mjs View on unpkg Scanner record · 19 lines Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
build:clean", { cwd: toolchainroot });
await run("npm run -s rolldown", { cwd: toolchainroot });
}
await cp(toolchaindist, distpublicdir, { recursive: true });
const contentassets = join(contentroot, "assets");
if (await pathexists(contentassets)) {
if (copyallassets) {
await cp(contentassets, distpublicdir, { recursive: true, force: true });
} else {
if (await pathexists(join(contentassets, "icons"))) {
await cp(
High Cross file remote execution context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/lib/orchestrator-C6dc-2OQ.js View on unpkg · L19 Code excerpt · 9 lines Cross-file remote execution chain: dist/lib/orchestrator-C6dc-2OQ.js spawns dist/lib/git-DhZoe1SE.js; helper contains network access plus dynamic code execution.
19 import { t as require_buffer } from "./buffer-BEXn271X.js" ;
20 import { T as require_inherits_browser, _ as require_type$1, b as require_shams$1, c as require_which_typed_array, d as require_define_data_property, f as require_call_bound, g as ...
21 import { a as upsertEmailConnection, i as listEmailConnections, n as deleteEmailConnection, o as getEmailPluginManifest, r as getEmailConnection, s as listEmailPluginManifests, t a...
Medium Oversized source file
Package contains source files above the normal full-analysis size ceiling.
dist/public/webllm-BDMz9yZR.js View on unpkg Scanner record · 4 lines path = dist/public/webllm-BDMz9yZR.js
kind = oversized_source_file
sizeBytes = 6027766
magicHex = [redacted]
Medium Secret pattern
Hardcoded password in dist/lib/bundler-CsL7hHMq.js
dist/lib/bundler-CsL7hHMq.js View on unpkg · L1823 Code excerpt · 3 lines 1823 patternName = generic_password
severity = medium
line = 1823
Medium Secret pattern
Hardcoded password in src/subsystems/git/git.ts
src/subsystems/git/git.ts View on unpkg · L764 Code excerpt · 3 lines 764 patternName = generic_password
severity = medium
line = 764
dist/lib/webllm-BwoH9pq3.js 6.15 MB file, sampled 256 KB
Network Child process High entropy strings URL strings huggingface.co raw.githubusercontent.com webgpureport.org
dist/public/agent.worker.js 2.09 MB file, sampled 256 KB
Filesystem Network Child process Dynamic require Possible obfuscation High entropy strings Minified URL strings accounts.google.com api.figma.com api.linear.app api.login.yahoo.com api.notion.com app.vssps.visualstudio.com auth.atlassian.com example.com feross.org github.com gitlab.com huggingface.co linear.app login.microsoftonline.com oauth2.googleapis.com openrouter.ai router.huggingface.co slack.com www.figma.com www.w3.org xt-ml.github.io
dist/public/pdf.worker.js 2.06 MB file, sampled 256 KB
Network Child process Dynamic require URL strings example.com
dist/public/webllm-BDMz9yZR.js 5.75 MB file, sampled 256 KB
Filesystem Network Child process High entropy strings Minified URL strings huggingface.co raw.githubusercontent.com webgpureport.org
dist/public/webllm-FmyJWWpt.js 5.75 MB file, sampled 256 KB
Filesystem Network Child process High entropy strings Minified URL strings huggingface.co raw.githubusercontent.com webgpureport.org
dist/server.js 2.43 MB file, sampled 256 KB
Filesystem Network Child process Web socket High entropy strings Minified URL strings accounts.google.com api.figma.com api.linear.app api.login.yahoo.com api.notion.com app.vssps.visualstudio.com auth.atlassian.com cdn.jsdelivr.net cdnjs.cloudflare.com example.com fonts.googleapis.com fonts.gstatic.com github.com gitlab.com linear.app login.microsoftonline.com oauth2.googleapis.com slack.com www.figma.com www.w3.org www.youtube.com xt-ml.github.io
Shell
Code↓
Package metadata 10 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
`&&e.includes(`
99 `)||(c[` #text`]=` #text`in c?c[` #text`]+e:e);for(let e of a)e.tag in c?Array.isArray(c[e.tag])?c[e.tag].push(e.value):c[e.tag]=[c[e.tag],e.value]:c[e.tag]=e.value;for(let[e,t]of Obj...
Critical Trigger reachable dangerous capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/electron/main.cjs View on unpkg · L84 Code excerpt · 6 lines Trigger-reachable chain: manifest.main -> dist/electron/main.cjs
84 ${t}
85 ${r (s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let n of e.split(` /`))n?.length!==0&&n!==` .`&&(n===` ..`?t.pop():t.push(n));let n=` ${e?.startsWith (`/` )?`/` :`...
86 `);return this.signString(h,{signingDate:n,signingRegion:c,signingService:o,eventStreamCredentials:s})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,...
87 See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
⋯
98 `)?{tag:t,value:` `}:{tag:t,value:e}}let c=Object.create(null);for(let e of i)e.trim()===` `&&e.includes(`
99 `)||(c[` #text`]=` #text`in c?c[` #text`]+e:e);for(let e of a)e.tag in c?Array.isArray(c[e.tag])?c[e.tag].push(e.value):c[e
High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
dist/electron/main.cjs View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_path_work_budget_exceeded; limitedFiles = 12
Low Weak crypto
Package source references weak cryptographic algorithms.
dist/electron/main.cjs View on unpkg · L1 Code excerpt · 9 lines 1 var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>...
2 `).join(` \r
⋯
21 public_key TEXT NOT NULL,
22 private_key TEXT NOT NULL,
23 subject TEXT NOT NULL
⋯
85 ${r (s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let n of e.split(` /`))n?.length!==0&&n!==` .`&&(n===` ..`?t.pop():t.push(n));let n=` ${e?.startsWith (`/` )?`/` :`...
86 `);return this.signString(h,{signingDate:n,signingRegion:c,signingService:o,eventStreamCredentials:s})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,...
87 See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
⋯
98 `)?
947
`,0;let a=Math.max(...n.map(([e])=>typeof e==` number`?e:0))+1+r;if(a<0)return e.state.expansionStderr=(e.state.expansionStderr||` `)+` bash: line ${i}: ${t.array}: bad array subscrip...
948 `,0;r=a}let i=` ${t.array}_${r}`,a=e.state.env.get(i);if(a!==void 0)return BM(e,a);if(r===0){let n=e.state.env.get(t.array);if(n!==void 0)return BM(e,n)}if(e.state.options.nounset&&...
949 `),e.writeFileSync(` /proc/self/exe`,` /bin/bash`),e.writeFileSync(` /proc/self/cmdline`,` bash\0 `),e.writeFileSync(` /proc/self/comm`,` bash
2007 `):` `,` </skill_content>`].filter(Boolean).join(`
as
from
"node:module"
import
from
"process"
import
as
as
from
"node:process"
import
from
"node:http"
import
from
"node:https"
import
2 CREATE TABLE IF NOT EXISTS vapid_keys (
4 public_key TEXT NOT NULL,
5 private_key TEXT NOT NULL,
102 `+u),ye&&(u=gt(u)),S&&Oe?O(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};nt(e),Se=!0,Ce=z,we=le},t.clearConfig=function(){$e=null,Se=...
103 `)||n,code:r,status:t},e.data.error)}return Object.assign({message:n,code:r,status:t},e.data.error)}}return{message:n,code:e.status,status:e.statusText}}};function i(e,t){switch(e)...
138 `+f+` }`:` {`+p.join(` ,`)+` }`,t=f,u}}typeof r.stringify!=` function `&&
High Trigger reachable command output exfiltration
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
dist/server.js View on unpkg · L127 Code excerpt · 6 lines Trigger-reachable command-output exfiltration chain: scripts.start -> dist/server.js
127 /*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
128 if (!globalThis.DOMException)try {let {MessageChannel:e}=H (`worker_threads` ),t=new e ().port1,n=new ArrayBuffer;t.postMessage (n,[n,n])}catch (e){e.constructor.name===`DOMException` &&(gl...
129 --`+e;let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n),this.boundaryChars[t[n]]=!0;this.boundary=t,this.lookbehind=new Uint8Array(this.boundary.length...
130 \r
⋯
138 `+f+` }`:` {`+p.join(` ,`)+` }`,t=f,u}}typeof r.stringify!=` function `&&(r.stringify=function(e,n,r){var a;if(t=` `,i=` `,typeof r==` number`)for(a=0;a<r;a+=1)i+=` `;else typeof r==` string...
139 `,r:` \r`,t:` `},c,l=function(
join(contentassets, "icons"),
join(distpublicdir, "assets/icons"),
{ recursive: true, force: true },
31 label: "OpenRouter API Keys" ,
32 href: "https://openrouter.ai/keys"
758 const writable = await openWritable ();
759 await writable.write (toWritableChunk (content));