Loading npm security reports…
Loading npm security reports…
shadow-claw@1.24.1: 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 6, 2026, 04:38 UTC · by lpm-firewall-ai The inspected source shows explicit dangerous agent capabilities but no automatic lifecycle execution, concealed exfiltration, or fixed attacker infrastructure. The appropriate outcome is a warning for a high-impact dual-use capability, not a malware block.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
A user prompt or enabled agent tool invokes bash, workspace operations, or fetch_url.
Impact
Prompt injection or unsafe agent instructions could alter workspace data or send authenticated requests to matching configured services.
Mechanism
AI-directed shell execution, workspace mutation, and credentialed HTTP requests.
Evidence
src/shell/shell.ts src/worker/tools/fetch-url/fetch-url.ts src/worker/tools/workspace/delete-file.ts
public snapshot
Evidence for warning
The package exposes an AI shell that executes supplied commands against a workspace. Its URL-fetch tool sends requests to a caller-provided URL and can attach saved account credentials. The agent can write and delete files in its workspace. The package has no install lifecycle hook, but its user-run assistant has broad command, network, and file capabilities. Evidence against
No preinstall, install, or postinstall script is declared. The shell uses a per-group filesystem and disables full internet access by default. No hard-coded hostile endpoint, stealth persistence, or automatic secret harvesting was found. 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 · URL strings
Manifest Copyleft license · Git dependency
Scanned 1,288 files · 16.3 MB of source
50 external domains referenced
10.0.0.1 10.0.0.2 127.0.0.1 169.254.169.254 172.16.0.5 172.20.0.5 192.168.1.1 192.168.1.100 192.168.1.5 a2ui.org accounts.google.com 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.vssps.visualstudio.com attacker.com attacker.github.io auth.atlassian.com auth.example.com auth.openai.com bad.example.com bit.ly bridge.example bridge.example.com cdn-lfs.huggingface.co cdn.jsdelivr.net cdnjs.cloudflare.com console.firebase.google.com content-firebaseappcheck.googleapis.com custom-control.example.com custom.mesh.io custom.org deepwiki.com demo.example.com Oversized source lightweight scan
dist/electron/main.cjs 2.64 MB file, sampled 256 KB
Filesystem Network Child process Crypto Possible obfuscation 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/public/agent.worker.js 2.08 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
Findings3 critical · 11 high · 9 medium · 6 low Source & flagged code19 flagged Medium Secret pattern
Package contains a possible secret pattern.
src/subsystems/git/git.ts View on unpkg · L764 Code excerpt · 3 lines 764 patternName = generic_password
severity = medium
line = 764
High Child process
Package source references child process execution.
bin/cli.test.mjs View on unpkg · L1 Code excerpt · 2 lines 1 import { execFile } from "node:child_process" ;
2 import { mkdir, mkdtemp, readFile, rm, writeFile } from "node:fs/promises" ;
src/server/services/llamafile-manager.ts View file High Shell
Package source references shell execution.
src/server/services/llamafile-manager.ts View on unpkg · L467 Code excerpt · 3 lines 467 console.log (
468 `[Proxy] Shell fallback: /bin/sh -c 'exec "\$0" "\$@"' ${absolutePath} [${args.length} args]` ,
469 );
High Eval
Package source references dynamic code evaluation.
bin/rolldown.config.test.mjs View on unpkg · L155 Code excerpt · 3 lines 155 grayMatterPlugin.transform (
156 "return eval(str) || {};" ,
157 "/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.23.2
matchedIdentity = npm:c2hhZG93LWNsYXc:1.23.2
similarity = 0.517
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 · L162 Code excerpt · 2 lines 163 const { startServer } = await import (serverModulePath);
164
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 · L74 Code excerpt · 7 lines 74 ${t}
75 ${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 (`/` )?`/` :`...
76 `);return this.signString(h,{signingDate:n,signingRegion:c,signingService:o,eventStreamCredentials:s})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,...
77 See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
⋯
88 `)?{tag:t,value:` `}:{tag:t,value:e}}let c=Object.create(null);for(let e of i)e.trim()===`
dist/public/orchestrator-tHWrqi_F.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-tHWrqi_F.js View on unpkg · L262 Code excerpt · 2 lines 263 `.substring(0,i)+r}function zo(e){return e!=null&&(typeof e==` string`||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var Bo=ge(),Vo=gr(),Ho=va(),Uo=Object.create,W...
264
High Remote agent bridge
Source exposes local file and command tools to a remote model endpoint.
dist/public/orchestrator-tHWrqi_F.js View on unpkg · L1 Code excerpt · 7 lines 1 import {i as e,n as t,r as n,t as r}from "./rolldown-runtime-aKtaBQYM.js" ;import {C as i,F a,I o,O s,P c,R l,c u,m d,n f,o p,r m,u h,y g}
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,{basename as s}from"node:path";...
`).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...
`+u),be&&(u=_t(u)),S&&ke?O(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rt(e),Ce=!0,we=ce,Te=ue},t.clearConfig=function(){et=null,Ce...
`)||n,code:r,status:t},e.data.error)}return Object.assign({message:n,code:r
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,{basename s} ;...
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.
);
await run("npm run -s 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"))) {
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/public/agent.worker.js View on unpkg · L1 Code excerpt · 4 lines Cross-file remote execution chain: dist/public/agent.worker.js spawns dist/public/git-CkhCJonj.js; helper contains network access plus dynamic code execution.
1 import {i as e,n as t,r as n,t as r}from "./rolldown-runtime-aKtaBQYM.js" ;const i=new class {loading=!1 ;models=new Map;getModelInfo (e){return this .models.get (e.toLowerCase ())??null }re...
2 /*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/L...
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]
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-CHN5H-Sy.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.38 MB file, sampled 256 KB
Filesystem Network Child process 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 opencollective.com peerjs.com slack.com www.figma.com www.w3.org www.youtube.com
High Shell Code↓
Package metadata 10 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
`&&e.includes(`
89 `)||(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 · L74 Code excerpt · 6 lines Trigger-reachable chain: manifest.main -> dist/electron/main.cjs
74 ${t}
75 ${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 (`/` )?`/` :`...
76 `);return this.signString(h,{signingDate:n,signingRegion:c,signingService:o,eventStreamCredentials:s})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,...
77 See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
⋯
88 `)?{tag:t,value:` `}:{tag:t,value:e}}let c=Object.create(null);for(let e of i)e.trim()===` `&&e.includes(`
89 `)||(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 = 9
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
⋯
75 ${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 (`/` )?`/` :`...
76 `);return this.signString(h,{signingDate:n,signingRegion:c,signingService:o,eventStreamCredentials:s})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,...
77 See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
⋯
88 `)?
as
as
as
as
as
as
as
as
as
as
as
as
from
"./con...
2 `),r=n>t*.5?n:t;return` ${e.slice (0 ,r)}\n[...truncated ${e.length-r} chars]`}function at(e,t){let{contextLimit:n,systemPromptTokens:r,maxOutputTokens:i,skimTop:a=!1}=t;if(e.length==...
3 =====================================================
263 `.substring(0,i)+r}function zo(e){return e!=null&&(typeof e==` string`||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var Bo=ge(),Vo=gr(),Ho=va(),Uo=Object.create,W...
1054 `,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
as
from
"node:module"
import
from
"process"
import
as
as
from
"node:process"
import
from
"node:http"
import
as
from
"node:path"
2 CREATE TABLE IF NOT EXISTS vapid_keys (
4 public_key TEXT NOT NULL,
5 private_key TEXT NOT NULL,
91 `+u),be&&(u=_t(u)),S&&ke?O(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rt(e),Ce=!0,we=ce,Te=ue},t.clearConfig=function(){et=null,Ce...
92 `)||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)...
127 `+f+` }`:` {`+p.join(` ,`)+` }`,t=f,u}}typeof r.stringify!=` function `&&(r.
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 · L116 Code excerpt · 6 lines Trigger-reachable command-output exfiltration chain: scripts.start -> dist/server.js
116 /*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
117 if (!globalThis.DOMException)try {let {MessageChannel:e}=V (`worker_threads` ),t=new e ().port1,n=new ArrayBuffer;t.postMessage (n,[n,n])}catch (e){e.constructor.name===`DOMException` &&(gl...
118 --`+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...
119 \r
⋯
127 `+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...
128 `,r:` \r`,t:` `},c,l=function(
join(contentassets, "icons"),
join(distpublicdir, "assets/icons"),
⋯
8 `).trim(),t}function Hr(e){let t=zr(e,` main`)||zr(e,` article`)||e;return t=Br(t,[` script`,` style`,` noscript`,` svg`,` head`,` nav`,` footer`,` header`,` aside`]),t=t.replace(/<!--[\s\S]*...
9 Reason: VM is still booting in the background...`:` `)}if(ri===` comman