Allowed by default with warning: agent-facing configuration or capability changes need review before use.
AI security review
scanned · by lpm-firewall-ai
The package exposes a product-aligned local agent feature that can run host shell commands through an agentfile without interactive approval by default. Because the server normally binds to loopback but can bind to a configured host, this warrants a warning for conditional capability risk rather than a malware block.
A chat request selects an available agentfile model while the server is running on a network-accessible configured host.
Impact
The agent may run host commands without an interactive confirmation step; source inspection does not establish that a malicious command is executed by default.
Mechanism
The request body becomes the agent prompt, and the agentfile CLI defaults to automatic approval unless confirmation is requested.
The manifest describes ShadowClaw as a multi-runtime AI assistant.
A chat request selecting a local agentfile model is passed to the CLI; its request body is converted into the prompt.
The agentfile inherits built-in tools including host shell commands, and the CLI defaults to automatic approval unless confirmation is explicitly requested.
The server binds to its configured host; its default development IP is loopback.
Evidence against
This is local agent functionality consistent with the package’s stated purpose, rather than an install-time action.
The default loopback bind limits exposure unless the operator configures another host.
100${i(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(`/`)?`/`:`...
101`);return this.signString(h,{signingDate:n,signingRegion:c,signingService:o,eventStreamCredentials:s})}async signMessage(e,{signingDate:t=/* @__PURE__ */ new Date,signingRegion:n,s...
102 See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
⋯
113`)?{tag:t,value:``}:{tag:t,value:e}}let c={};for(let e of i)e.trim()===``&&e.includes(`
114`)||(c[`#text`]=`#text`in c?c[`#text`]+e:e);for(let e of a)e.tag===`__proto__`&&l(c),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]=...
115Multipl
Critical
Trigger reachable dangerous capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
100${i(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(`/`)?`/`:`...
101`);return this.signString(h,{signingDate:n,signingRegion:c,signingService:o,eventStreamCredentials:s})}async signMessage(e,{signingDate:t=/* @__PURE__ */ new Date,signingRegion:n,s...
102 See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
⋯
113`)?{tag:t,value:``}:{tag:t,value:e}}let c={};for(let e of i)e.trim()===``&&e.includes(`
Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
100${i(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(`/`)?`/`:`...
101`);return this.signString(h,{signingDate:n,signingRegion:c,signingService:o,eventStreamCredentials:s})}async signMessage(e,{signingDate:t=/* @__PURE__ */ new Date,signingRegion:n,s...
102 See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
⋯
113`)?{tag:t,value:``}:{tag:t,value:e}}let c={};for(let e of i)e.trim()===``&&e.includes(`
dist/cli/chunk-BU-vs0np.js#virtual:string-array:round1View on unpkg · L1
Code excerpt · 2 lines
1import{t as e}from"./chunk-mjuZTMQB.js";import t from"process";function n(){let e=[{prop:`Function`,target:globalThis,violationType:`function_constructor`,strategy:`throw`,reason:`...
2`);n.register(`data:text/javascript,${encodeURIComponent(e)}`),a.importHooksRegistered=!0}}catch(e){console.debug(`[DefenseInDepthBox] Could not register import() hooks:`,e instanc...
1import{t as e}from"./chunk-uAI_Zi6n.js";import{existsSync as t}from"node:fs";import n from"node:path";import{pathToFileURL as r}from"node:url";import i from"node:process";const a=e...
1import{t as e}from"./chunk-BChOKoxf.js";import{t}from"./chunk-gAdqVxWq.js";import{a as n,i as r,n as i,r as a,t as o}from"./chunk-Cpdoq2Nw.js";import{c as s,o as c,u as l}from"./ch...
1import{i as e,o as t,t as n}from"./chunk-B--rR4-3.js";import{n as r,t as i}from"./chunk-DpWnkQpI.js";import a from"process";import{Buffer as o}from"buffer";import{createWriteStream...
1import{i as e,n as t,r as n,t as r}from"./rolldown-runtime-DBVvNlSN.js";import{i,n as a,r as o,t as s}from"./txPromise-DlzJBj9N.js";import{t as c}from"./getConfig-DSieAlsi.js";cons...
2/*! @license DOMPurify 3.4.16 | (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.16/L...
5`);for(let e of t)if(e&&!e.startsWith(`:`)&&e.startsWith(`data: `)){let t=e.slice(6).trim();if(t===`[DONE]`)continue;try{yield JSON.parse(t)}catch{}}}}}finally{n.releaseLock()}}con...
1import{t as e}from"./chunk-BChOKoxf.js";import{t}from"./chunk-gAdqVxWq.js";import{a as n,i as r,n as i,r as a,t as o}from"./chunk-Cpdoq2Nw.js";import{c as s,o as c,u as l}from"./ch...
5`);for(let e of t)if(e&&!e.startsWith(`:`)&&e.startsWith(`data: `)){let t=e.slice(6).trim();if(t===`[DONE]`)continue;try{yield JSON.parse(t)}catch{}}}}}finally{n.releaseLock()}}con...
1032`,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...