Loading npm security reports…
Loading npm security reports…
@monoes/monomindcli@2.5.5: AI-agent capability abuse – flagged | LPM Firewall
npm / AI-agent capability abuse / @monoes/monomindcli / 2.5.5
@monoes/monomindcli@2.5.5 CLI engine for Monomind — an open-source MCP server that extends Claude Code with a codebase knowledge graph (tree-sitter + SQLite), persistent memory, multi-agent task coordination, and session hooks. MIT licensed, fully local.
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 Jul 27, 2026, 12:54 UTC · by lpm-firewall-ai Source inspection does not support the scanner's malicious verdict: no unconsented npm lifecycle mutation or covert payload was found. The explicit global AI-agent configuration change and default crash reporting merit a warning.
Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
User runs `monomind init`, or a normal CLI invocation reaches an uncaught exception.
Impact
Broad AI-agent configuration mutation and potential disclosure of residual crash-context data.
Mechanism
Explicit global Claude integration setup and opt-out crash reporting.
Evidence
package.json dist/src/commands/init.js dist/src/init/executor.js bin/cli.js dist/src/services/crash-reporter.js dist/src/mcp-tools/terminal-tools.js ~/.claude/CLAUDE.md ~/.claude/settings.json ~/.monomind/crash-reporting.json ~/.monomind/crash-reports.json
api.github.com /repos/monoes/monomind/issues
Decision evidencepublic snapshot Evidence for warning
`monomind init` appends instructions to `~/.claude/CLAUDE.md` and adds a hook to `~/.claude/settings.json`. Normal CLI mode enables crash reporting by default and can submit redacted crash stacks to the vendor GitHub repo when `gh` auth or `GITHUB_TOKEN` exists. MCP exposes an explicit terminal command-execution capability; inherited secret-shaped environment variables are filtered. Evidence against
`package.json` has only `prepublishOnly`; no install/preinstall/postinstall hook. Global Claude configuration writes are reached from the explicit `init` command, not package installation or import. Crash reports target the declared Monomind GitHub repository and contain redaction/dedup/rate-limit logic. Condition evaluation token-validates input before its constrained `new Function` call; browser eval requires explicit opt-in. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · URL strings
Manifest Wildcard dependency
Scanned 375 files · 4.58 MB of source
30 external domains referenced
127.0.0.1 a2a-protocol.org accounts.google.com api.anthropic.com api.github.com api.osv.dev api.pinata.cloud api.web3.storage cdnjs.cloudflare.com cli.github.com cloud.google.com cloudflare-ipfs.com dweb.link gateway.pinata.cloud gemini.google.com generativelanguage.googleapis.com git-scm.com github.com ipfs.io login.microsoftonline.com nodejs.org pinata.cloud registry.npmjs.org services.nvd.nist.gov storage.googleapis.com w3s.link web3.storage www.instagram.com www.linkedin.com x.com Findings1 critical · 5 high · 11 medium · 7 low Source & flagged code15 flagged High AI reviewer manipulation
Package text addresses the security reviewer or scanner and tries to influence the review outcome.
README.md View on unpkg Scanner record · 1 line isSafe('Ignore all previous instructions'); // → false (~0.04ms)
High Child process
Package source references child process execution.
dist/workflow/builtin-handlers.js View on unpkg · L68 Code excerpt · 3 lines 68 var node_path_1 = require ("node:path" );
69 var node_child_process_1 = require ("node:child_process" );
70 // Call npx monomind browse <args> and return stdout. Never throws.
High Runtime package install
Package source invokes a package manager install command at runtime.
dist/workflow/builtin-handlers.js View on unpkg · L68 Code excerpt · 4 lines 68 var node_path_1 = require ("node:path" );
dist/src/init/statusline-generator.js View file High Shell
Package source references shell execution.
dist/src/init/statusline-generator.js View on unpkg · L186 Code excerpt · 2 lines 187 const raw = safeExec (\`sh -c '\${script}'\`, 3000);
188 if (!raw) return result;
Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
dist/src/init/statusline-generator.js View on unpkg · L41 Code excerpt · 12 lines 41 const path = require ('path' );
42 const { execSync } = require ('child_process' );
dist/src/workflow/condition-evaluator.js View file Low Eval
Package source references a known benign dynamic code generation pattern.
dist/src/workflow/condition-evaluator.js View on unpkg · L78 Code excerpt · 3 lines 78 // eslint-disable-next-line @typescript-eslint/no-implied-eval
79 const fn = new Function (`"use strict"; return (${resolved});` );
80 return Boolean (fn ());
Medium Dynamic require
Package source references dynamic require/import behavior.
dist/dashboard/server.js View on unpkg · L5 Code excerpt · 3 lines 5 exports.getDashboard = getDashboard;
6 var node_http_1 = require ("node:http" );
7 var node_fs_1 = require ("node:fs" );
Low Weak crypto
Package source references weak cryptographic algorithms.
dist/src/services/crash-reporter.js View on unpkg · L15 Code excerpt · 12 lines 15 import { createHash } from 'crypto' ;
16 import { execFile } from 'child_process' ;
17 import { promisify } from 'util' ;
18 const execFileAsync = promisify (execFile);
19 const STATE_DIR = join (homedir (), '.monomind' );
20 const CONFIG_PATH = join (STATE_DIR, 'crash-reporting.json' );
High Cloud metadata access
Source reaches cloud instance metadata or link-local credential endpoints.
dist/src/commands/providers.js View on unpkg · L30 Code excerpt · 12 lines 30 output.printError ('Provider name is required. Use -p <name> or pass as first argument.' );
31 return { success: false , exitCode: 1 };
32 }
33 const cwd = process.cwd ();
34 const config = configManager.getConfig (cwd);
⋯
109 test: async () => {
110 const key = process.env.ANTHROPIC_API_KEY || getConfigApiKey ('anthropic' );
111 if (key)
Medium Ships build helper
Package ships non-JavaScript build or shell helper files.
scripts/sync-claude-assets.sh View on unpkg Scanner record · 4 lines path = scripts/sync-claude-assets.sh
kind = build_helper
sizeBytes = 979
magicHex = [redacted]
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/ui/server.mjs View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @monoes/monomindcli@2.3.0
matchedIdentity = npm:QG1vbm9lcy9tb25vbWluZGNsaQ:2.3.0
similarity = 0.875
summary = stored previous version shares package body but lacks this dangerous source file
Medium Secret pattern
Hardcoded password in .claude/agents/core/reviewer.md
.claude/agents/core/reviewer.md View on unpkg · L85 Code excerpt · 4 lines 85 patternName = generic_password
severity = medium
line = 85
matchedText = console....rd);
.claude/agents/testing/testing-api-tester.md View file Medium Secret pattern
Hardcoded password in .claude/agents/testing/testing-api-tester.md
.claude/agents/testing/testing-api-tester.md View on unpkg · L78 Code excerpt · 4 lines 78 patternName = generic_password
severity = medium
line = 78
matchedText = password...ord'
Code↓
Package metadata 9 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Medium Wildcard dependency
Low Non install lifecycle scripts
dist/src/workflow/condition-evaluator.js1 finding
Low Eval Code↓ 69 var node_child_process_1 = require ("node:child_process" );
70 // Call npx monomind browse <args> and return stdout. Never throws.
71 function browseCmd (args, timeoutMs) {
43 const os = require ('os' );
50 const CWD = process.env.CLAUDE_PROJECT_DIR || process.cwd ();
52 // Read monomind version — check global install first, then CWD package.json
53 function getVersion () {
66 if (!pkgStat || pkgStat.size > 1024 * 1024 ) continue ;
67 const pkg = JSON.parse (fs.readFileSync (p, 'utf-8' ));
68 if (pkg.version && (pkg.name === 'monomind' || pkg.name === '@monomind/cli' || (pkg.name || '' ).startsWith ('@monomind' ))) {
1329 if (!options.statusline.enabled) {
⋯
41 return JSON.parse (readFileSync (path, 'utf8' ));
85 /(?:token|bearer)\s*[:=]\s*['"]?[^\s' "]{10,}['" ]?/gi,
86 /-----BEGIN (?:RSA |EC |DSA |OPENSSH )?PRIVATE KEY-----[\s\S]*?-----END (?:RSA |EC |DSA |OPENSSH )?PRIVATE KEY-----/g,
87 /sk-ant-[a-zA-Z0-9_-]{20 ,}/g,
137 const entry = configuredProviders.find ((p) => typeof p.name === 'string' && p.name.toLowerCase () === 'ollama' );
138 const baseUrl = entry?.baseUrl || 'http://localhost:11434' ;