Loading npm security reports…
Loading npm security reports…
@claude-flow/cli@3.38.13: Install hook abuse – flagged | LPM Firewall
npm / Install hook abuse / @claude-flow/cli / 3.38.13 Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code
Flagged — allowed with a warning
Allowed by default policy, but 24 findings warrant review before installing.
AI security reviewscanned on Sep 20, 2026, 04:26 UTC · by lpm-firewall-ai The automatic third-party dependency mutation is a real install-time risk that warrants a warning. The inspected code does not establish malware behavior or a blocking supply-chain chain.
Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
Installing the package triggers postinstall; running the init command triggers the global Claude configuration write.
Impact
Installation can alter dependency contents without an explicit command, while init can influence a user's Claude workflow. No credential export, remote payload download, or destructive action was identified in the traced paths.
Mechanism
The lifecycle script walks reachable agentdb copies and recursively copies dist/src directories into dist. Init creates or appends ~/.claude/CLAUDE.md with instructions promoting Ruflo MCP tools.
Evidence
package.json scripts/postinstall.cjs dist/src/commands/init.js dist/src/init/executor.js node_modules/agentdb/dist ~/.claude/CLAUDE.md
public snapshot
Evidence for warning
Installation automatically runs a package script. That script finds every reachable agentdb installation and recursively copies directories into each one's dist folder. The init command also appends a Ruflo instruction block to the user's global Claude configuration unless --no-global is supplied. Evidence against
The install script only copies existing agentdb directories and does not send data or execute a downloaded payload. Global Claude configuration changes occur through the explicit init command, which exposes an opt-out flag. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell
Supply chain High entropy strings · URL strings
Manifest No manifest risk signals triggered.
Scanned 404 files · 6.69 MB of source
35 external domains referenced
127.0.0.1 agentbbs.local aistudio.google.com api.anthropic.com 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 funnel.ruv.io gateway.pinata.cloud generativelanguage.googleapis.com git-scm.com github.com html.duckduckgo.com hub.docker.com huggingface.co ipfs.io no-such-registry-9c8c43.example.invalid nodejs.org ollama.com openrouter.ai pinata.cloud raw.githubusercontent.com registry.npmjs.org storage.googleapis.com us-central1-claude-flow.cloudfunctions.net w3s.link web3.storage www.apple.com Findings2 critical · 10 high · 7 medium · 5 low Source & flagged code16 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
High Child process
Package source references child process execution.
dist/src/proxy/lifecycle.js View on unpkg · L5 Code excerpt · 3 lines 5 * check-then-start, signal-0 liveness, SIGTERM->1000ms->SIGKILL) to a
6 * native binary instead of a forked Node process. `spawn()` here passes zero
7 * arguments, always — starting the server is the argument-free behavior and
Code excerpt · 3 lines 17 // Promisified exec with proper shell and env inheritance for cross-platform support
18 const execAsync = promisify (exec);
19 /**
Medium Dynamic require
Package source references dynamic require/import behavior.
dist/src/memory/memory-bridge.js View on unpkg · L59 Code excerpt · 3 lines 59 try {
60 const cjsRequire = createRequire (import .meta.url);
61 const mod = cjsRequire ('./memory-initializer.js' );
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 · 10 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' ;
⋯
56 // ADR-174 M3: honored by WorkerDaemon's consolidate worker directly via
57 // process.env — set it now so the foreground path (which runs in this
58 // same process) picks it up too; the background path forwards it to the
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) {
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 = 56814
triggerReachableSource = dist/src/init/helpers-generator.js
excludedPayload = .claude/helpers/statusline-hook.sh
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 · 27 lines Runtime or CLI code links a write operation to an explicit external AI-agent control path:
=> {
const escaped = escaperegex(tok.tolowercase());
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/init/executor.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @claude-flow/cli@3.42.3
matchedIdentity = npm:QGNsYXVkZS1mbG93L2NsaQ:3.42.3
similarity = 0.775
summary = stored previous version shares package body but lacks this dangerous source file
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 || []));
.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 = 24
Code↓
Package metadata 8 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
⋯
68 const projectRoot = resolveWorkspaceFlag (ctx.flags.workspace)
69 ?? resolveDaemonProjectRoot (process.cwd ());
70 const isDaemonProcess = process.env.CLAUDE_FLOW_DAEMON === '1' ;
300 // Ignore SIGHUP on macOS/Linux — prevents daemon death when terminal
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' ;
⋯
56 // ADR-174 M3: honored by WorkerDaemon's consolidate worker directly via
57 // process.env — set it now so the foreground path (which runs in this
58 // same process) picks it up too; the background path forwards it to the
⋯
68 const projectRoot = resolveWorkspaceFlag (ctx.flags.workspace)
69 ?? resolveDaemonProjectRoot (process.cwd ());
70 const isDaemonProcess = process.env.CLAUDE_FLOW_DAEMON === '1' ;
⋯
300 // Ignore SIGHUP on macOS/Linux — prevents daemon death when terminal closes (#1283)
301 if (process.platform !== 'win32' ) {
302 process.on ('SIGHUP' , () => { });
if (/\\s|\\//.test(tok)) return escaped;
return \`\\\\b\${escaped}\\\\b\`;
return new regexp(\`(?:\${alternatives.join('|')})\`, 'i');
const compiled_patterns = task_patterns.map((entry) => ({
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)) {
reason: \`matched keyword(s) from: \${entry.tokens.join('|')}\`,
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 || []));