Loading npm security reports…
Loading npm security reports…
@claude-flow/cli@3.56.9: Agent extension lifecycle risk – flagged | LPM Firewall
npm / @claude-flow/cli / 3.56.9 Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code
Flagged as agent extension risk
Allowed by default with warning: install-time first-party agent extension setup was detected.
AI security reviewscanned on Oct 12, 2026, 21:13 UTC · by lpm-firewall-ai The package’s explicit init flow enables a first-party session hook that later makes recurring requests to a publisher-selected feed without a separate per-session prompt. The inspected npm postinstall only patches agentdb compatibility files, and the feed response is validated rather than executed, so this warrants a warning rather than a block.
Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
An operator runs init with settings and helpers enabled, then a Claude Code session starts.
Impact
The hook makes recurring network requests after setup. The inspected response path validates and caches message data; it does not execute returned content.
Mechanism
The session hook launches the package refresh command through npx with inherited environment variables. The command makes a GET request to the default message endpoint and caches validated responses.
Evidence
dist/src/init/types.js dist/src/init/settings-generator.js dist/src/init/helpers-generator.js dist/src/commands/hooks.js dist/src/funnel/message-transport.js dist/src/funnel/messages.js .claude/settings.json
.claude/helpers/hook-handler.cjs
funnel-messages-cache.json
Network endpoints1
funnel.ruv.io /v1/messages
Decision evidencepublic snapshot Evidence for warning
The npm postinstall hook runs scripts/postinstall.cjs, whose inspected entry point only copies compatibility files into installed agentdb packages; it does not install the Claude Code hook. The explicit init command defaults to session-start hooks and writes hook settings when helper and settings components are enabled. On session restore, the generated helper launches a detached refresh command through npx and inherits the process environment. The refresh command fetches the vendor message feed with an HTTPS GET and caches the response; a kill switch can disable fetching, and messages pass content validation before use. The credential-related tool calls are caller-triggered: Seraphina requires its configured API key and endpoint, and agent execution sends the requested prompt to its configured provider. Evidence against
The fetched content is constrained by schema and text checks, including rejection of invalid message classes and forbidden control sequences. The inspected credential paths do not show a hidden transfer to an unrelated package-selected recipient. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · Minified · URL strings
Manifest No manifest risk signals triggered.
Scanned 476 files · 8.72 MB of source
44 external domains referenced
100.104.125.72 100.x.y.z 127.0.0.1 agentbbs.local aistudio.google.com api.anthropic.com api.cognitum.one api.npmjs.org api.openai.com api.pinata.cloud api.web3.storage cli.github.com cloud.google.com cloudflare-ipfs.com cognitum.one datasets-server.huggingface.co dweb.link example.com funnel.ruv.io gateway.pinata.cloud generativelanguage.googleapis.com git-scm.com github.com html.duckduckgo.com hub.docker.com huggingface.co ipfs.io json.schemastore.org no-such-registry-9c8c43.example.invalid nodejs.org ollama.com openrouter.ai pinata.cloud qntm.org raw.githubusercontent.com registry.npmjs.org relay.ruv.io storage.googleapis.com us-central1-claude-flow.cloudfunctions.net w3s.link web3.storage www.apple.com www.w3.org x.ruv.io Findings2 critical · 12 high · 7 medium · 5 low Source & flagged code18 flagged High Install time lifecycle scripts
Package defines install-time lifecycle scripts.
package.json View on unpkg Medium Ambiguous install lifecycle script
Install-time lifecycle script is not statically allowlisted and needs review.
package.json View on unpkg Shared scanner record · 2 findings · 1 line scripts.postinstall = node ./scripts/postinstall.cjs
dist/src/init/helper-commands.js#virtual:normalized:round1 View file High Child process
Package source references child process execution.
dist/src/init/helper-commands.js#virtual:normalized:round1 View on unpkg · L28 Code excerpt · 3 lines 28 const js = `var a="${[script, subcommand].filter(Boolean).join(" ")}".split(" "),e=process.env,fs=require("fs"),p=require("path"),f;` + pick +
29 "var r=require('child_process').spawnSync(process.execPath,[f].concat(a.slice(1)),{stdio:'inherit'});process.exit(r.status===null?1:r.status)";
30 return `node -e "${js}"`;
Medium Dynamic require
Package source references dynamic require/import behavior.
dist/src/init/helper-commands.js#virtual:normalized:round1 View on unpkg · L27 Code excerpt · 3 lines 27 : "f=p.join(e.CLAUDE_PROJECT_DIR?e.CLAUDE_PROJECT_DIR:'.',a[0]);if(!fs.existsSync(f))f=p.join(${home},a[0]);";
28 const js = `var a="${[script, subcommand].filter(Boolean).join(" ")}".split(" "),e=process.env,fs=require("fs"),p=require("path"),f;` + pick +
29 "var r=require('child_process').spawnSync(process.execPath,[f].concat(a.slice(1)),{stdio:'inherit'});process.exit(r.status===null?1:r.status)";
High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/src/commands/daemon.js View on unpkg · L7 Code excerpt · 11 lines Trigger-reachable persistence chain: manifest.main -> dist/src/index.js -> dist/src/commands/index.js -> dist/src/commands/daemon.js
7 import { resolveDaemonProjectRoot } from '../services/daemon-autostart.js' ;
8 import { fork } from 'child_process' ;
9 import { fileURLToPath } from 'url' ;
⋯
59 // ADR-174 M3: honored by WorkerDaemon's consolidate worker directly via
60 // process.env — set it now so the foreground path (which runs in this
61 // same process) picks it up too; the background path forwards it to the
Critical Trigger reachable excluded directory payload
A package entrypoint or install-reachable source explicitly loads and activates an executable-looking payload from a test, fixture, or hidden path.
dist/src/init/helpers-generator.js View on unpkg Scanner record · 5 lines path = dist/src/init/helpers-generator.js
kind = trigger_reachable_excluded_payload
sizeBytes = 82873
triggerReachableSource = dist/src/init/helpers-generator.js
excludedPayload = .claude/helpers/statusline-hook.sh
High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/src/init/helpers-generator.js View on unpkg · L10 Code excerpt · 12 lines 10 // static command-file templates — those are user-owned content.
11 export const ATTRIBUTION_FOOTER = ;
High Cloud metadata access
Source reaches cloud instance metadata or link-local credential endpoints.
plugins/ruflo-console/dist/tui.mjs View on unpkg · L1 Code excerpt · 5 lines 1 var vn=e=>typeof e=="number" &&Number.isFinite (e)&&Math.abs (e)<=864e13?e:void 0 ,Be=e=>typeof e=="number" &&Number.isFinite (e)?new Date (Math.min (864e13,Math.max (-864e13,e))).toISOStri...
2 `+e.slice(-dy/2):e).replace(B6,""),Bx=/placeholder|your[-_ ]|example|changeme|change[-_]?me|redacted|dummy|replace[-_]?me|insert[-_]|\*{3,}|x{5,}|\.{3}|^(?:none|null|undefined|true...
⋯
6 `);function ns(e,t){let n=0,o=!1;for(let s=t;s<e.length;s++){let r=e[s];if(o)r==="\\"?s++:r==='"'&&(o=!1);else if(r==='"')o=!0;else if(r==="{"||r==="[")n++;else if((r==="}"||r==="]...
High Copied package dependency bridge
Package metadata claims a different repository identity while copied source loads a runtime dependency bridge.
dist/src/auth/security-bridge.js View on unpkg · L30 Code excerpt · 4 lines package = @claude-flow/cli; repositoryIdentity = claude-flow; dependency = @claude-flow/security
30 try {
31 const mod = (await import ('@claude-flow/security' ));
32 if (!mod.authorizeUrl || !mod.createKeychainAdapter) {
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.
dist/src/init/executor.js View on unpkg Scanner record · 14 lines Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
if (commandsconfig.agents)
commandstocopy.push(...(commands_map.agents || []));
if (commandsconfig.coordination)
commandstocopy.push(...(commands_map.coordination || []));
if (commandsconfig.hivemind)
commandstocopy.push(...(commands_map.hivemind || []));
if (commandsconfig.memory)
commandstocopy.push(...(commands_map.memory || []));
if (commandsconfig.swarm)
commandstocopy.push(...(commands_map.swarm || []));
if (commandsconfig.workflows)
commandstocopy.push(...(commands_map.workflows || []));
.claude/helpers/validate-v3-config.sh View file High Payload in excluded dir
Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.
.claude/helpers/validate-v3-config.sh View on unpkg Scanner record · 4 lines path = .claude/helpers/validate-v3-config.sh
kind = payload_in_excluded_dir
sizeBytes = 5677
magicHex = [redacted]
dist/src/benchmarks/gaia-agent.js#virtual:normalized:round1 View file High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
dist/src/benchmarks/gaia-agent.js#virtual:normalized:round1 View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 28
Critical Previous version dangerous delta
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist/src/commands/doctor.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @claude-flow/cli@3.56.6
matchedIdentity = npm:QGNsYXVkZS1mbG93L2NsaQ:3.56.6
similarity = 0.892
summary = stored previous version shares package body but lacks this dangerous source file
Child process
Code↓
Package metadata 8 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
⋯
71 const projectRoot = resolveWorkspaceFlag (ctx.flags.workspace)
72 ?? resolveDaemonProjectRoot (process.cwd ());
73 const isDaemonProcess = process.env.CLAUDE_FLOW_DAEMON === '1' ;
131 output.printError (error.message);
132 return { success: false , exit
Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
dist/src/commands/daemon.js View on unpkg · L7 Code excerpt · 12 lines 7 import { resolveDaemonProjectRoot } from '../services/daemon-autostart.js' ;
8 import { fork } from 'child_process' ;
9 import { fileURLToPath } from 'url' ;
⋯
59 // ADR-174 M3: honored by WorkerDaemon's consolidate worker directly via
60 // process.env — set it now so the foreground path (which runs in this
61 // same process) picks it up too; the background path forwards it to the
⋯
71 const projectRoot = resolveWorkspaceFlag (ctx.flags.workspace)
72 ?? resolveDaemonProjectRoot (process.cwd ());
73 const isDaemonProcess = process.env.CLAUDE_FLOW_DAEMON === '1' ;
⋯
131 output.printError (error.message);
132 return { success: false , exitCode: 1 };
133 }
'🤖 Generated with [RuFlo](https://github.com/ruvnet/ruflo)'
41 // Bash tool: non-zero exit code is a failure.
42 const code = (o.exit_code ?? o.exitCode ?? o.code);
67 export function generatePreCommitHook () {
69 # Ruflo Pre-Commit Hook
87 # Run tests if available
88 if [ -f "package.json" ] && grep -q '"test"' package.json; then
89 echo "🧪 Running tests..."
High External AI agent control surface mutation
Runtime or CLI source writes behavior-bearing configuration into a user or project AI-agent control surface.
dist/src/init/helpers-generator.js View on unpkg Scanner record · 31 lines Runtime or CLI code links a write operation to an explicit external AI-agent control path:
{escaped}\\\\b\`;
});
return new regexp(\`(?:\${alternatives.join('|')})\`, 'i');
}
const compiled_patterns = task_patterns.map((entry) => ({
agent: entry.agent,
tokens: entry.tokens,
regex: buildpattern(entry.tokens),
}));
function routetask(task) {
const tasklower = string(task == null ? '' : task).tolowercase();
for (const entry of compiled_patterns) {
if (entry.regex.test(tasklower)) {
return {
agent: entry.agent,
confidence: 0.6,
reason: \`matched keyword(s) from: \${entry.tokens.join('|')}\`,
};
}
}
return {
agent: 'coder',
confidence: 0.3,
reason: 'default routing - no specific keyword matched',
};
}
// cli — only w
7 `).map(eS).filter(n=>n!=="");return{lines:t,real:t.filter(n=>!Qx.test(n))}};function os(e){let{real:t}=nS(e),n=t.find(o=>/^\[ERROR\]/i.test(o))??t.find(o=>/\b\w*error\b/i.test(o));...
8 `).map(eS).filter(r=>r!==""&&!Qx.test(r)