registry  /  mindexec-ai  /  0.2.752

mindexec-ai@0.2.752

MindExec local runtime and bridge CLI

AI Security Review

scanned 15h ago · by lpm-firewall-ai

No confirmed malicious install-time behavior was found. Residual risk is a high-capability user-invoked local/remote AI bridge with shell, filesystem, MCP, Codex, browser, and remote-agent controls.

Static reason
High-risk behavior combination matched malicious policy.
Trigger
npm postinstall copies grammars; user runs mindexec/mind-bridge or server.js to activate bridge and RemoteHub.
Impact
If exposed or misconfigured, authorized callers can execute commands, modify workspace files, call MCP tools, run Codex, proxy configured services, and control remote agents.
Mechanism
user-invoked local AI bridge and remote agent manager
Attack narrative
The scanner's critical labels are explained by a package-aligned local bridge: after explicit startup it exposes shell, filesystem, browser, MCP, Codex, and remote-agent APIs. The only lifecycle hook is grammar setup inside the package, not agent-control hijacking or persistence. The broad runtime capability and default externally bound RemoteHub justify a warning, but source inspection did not show unconsented install-time mutation, credential theft, or covert exfiltration.
Rationale
Static source inspection supports a powerful AI/remote bridge with real security exposure when run, but not malicious package behavior or unconsented lifecycle control-surface mutation. Treat as warn-worthy dangerous capability rather than publish-block malware.
Evidence
package.jsonscripts/setup-tree-sitter-grammars.mjslaunch-bridge.cjsserver.jscodex-runtime.jsremote-hub.jstree-sitter-grammars/*.wasm~/.mindexec/codex-runtime/config.toml~/.mindexec/codex-runtime/auth.json<workspace>/.mindexec/project.json<workspace>/.mindexec/.gitignore<workspace>/.ai/codex/*.schema.json
Network endpoints6
127.0.0.1:5077openrouter.ai/api/v1/modelsapi.imagerouter.io/v2/modelsSupabase URL from env/appsettingsYouTube API/search endpointsuser-supplied MCP serverUrl

Decision evidence

public snapshot
AI called this Suspicious at 86.0% confidence as Dangerous Capability with medium false-positive risk.
Evidence for block
  • server.js exposes protected local APIs for shell execution, file write/delete, MCP calls, and Codex runs when user starts the bridge.
  • remote-hub.js starts a TCP RemoteHub on 0.0.0.0:5199 by default with pair-token authentication for remote agents.
  • codex-runtime.js can create ~/.mindexec/codex-runtime and copy Codex auth.json into that isolated runtime home for agent runs.
  • server.js fetches model/catalog or service data from openrouter.ai, api.imagerouter.io, Supabase URLs, YouTube, and configured MCP/server URLs at runtime.
Evidence against
  • package.json postinstall only runs scripts/setup-tree-sitter-grammars.mjs, which copies tree-sitter WASM grammars into tree-sitter-grammars/.
  • No install-time writes to foreign AI agent control files such as .mcp.json, CLAUDE.md, Cursor/Codex settings, or shell startup files were found.
  • launch-bridge.cjs is user-invoked CLI startup; it spawns server.js, sets WORKSPACE_PATH, and optionally opens localhost UI.
  • server.js binds the main bridge HTTP server to 127.0.0.1 and requires X-Bridge-Token for protected routes by default.
  • Workspace file APIs validate paths under the workspace or opened project root before read/write/delete.
  • No concrete credential harvesting or unsolicited exfiltration path was found in inspected source.
Behavioral surface
Source
ChildProcessCryptoDynamicRequireEnvironmentVarsEvalFilesystemNetworkShellWebSocket
Supply chain
HighEntropyStringsMinifiedTelemetryUrlStrings
ManifestNo manifest risk signals triggered.
scanned 51 file(s), 4.38 MB of source, external domains: 127.0.0.1, api.duckduckgo.com, api.imagerouter.io, api.openai.com, bulkmd.pages.dev, clipbrd.pages.dev, developers.cloudflare.com, duckduckgo.com, example.com, github.com, html.duckduckgo.com, img.youtube.com, markdown-link-checker.pages.dev, md2html-4r7.pages.dev, mdoutln.pages.dev, mdtable-3ik.pages.dev, mdview-die.pages.dev, mindexec.pages.dev, mindexecution.pages.dev, news.google.com, openrouter.ai, quickpad.pages.dev, reactjs.org, readme-1o4.pages.dev, schema.org, search.brave.com, www.bing.com, www.googleapis.com, www.w3.org, www.youtube.com

Source & flagged code

12 flagged · loading source
package.jsonView file
scripts.postinstall = npm run setup:grammars
High
Install Time Lifecycle Scripts

Package defines install-time lifecycle scripts.

package.jsonView on unpkg
scripts.postinstall = npm run setup:grammars
Medium
Ambiguous Install Lifecycle Script

Install-time lifecycle script is not statically allowlisted and needs review.

package.jsonView on unpkg
server.jsView file
18import sharp from 'sharp'; L19: import { createServer } from 'http'; L20: import { WebSocket, WebSocketServer } from 'ws'; ... L28: L29: const execAsync = promisify(exec); L30: const execFileAsync = promisify(execFile); ... L33: const app = express(); L34: const PORT = normalizePort(process.env.BRIDGE_PORT); L35: const BRIDGE_ROOT = path.dirname(fileURLToPath(import.meta.url));
Critical
Same File Env Network Execution

A single source file combines environment access, network access, and code or shell execution with blocking evidence.

server.jsView on unpkg · L18
Trigger-reachable chain: manifest.main -> server.js Reachable file contains a blocking source-risk pattern.
Critical
Trigger Reachable Dangerous Capability

A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.

server.jsView on unpkg
12import path from 'path'; L13: import { exec, spawn, spawnSync, execFile } from 'child_process'; L14: import { promisify } from 'util';
High
Child Process

Package source references child process execution.

server.jsView on unpkg · L12
28L29: const execAsync = promisify(exec); L30: const execFileAsync = promisify(execFile);
High
Shell

Package source references shell execution.

server.jsView on unpkg · L28
wwwroot/assets/MindCanvas-BkaDAmkW.jsView file
644})(); L645: `}function Wb(t){const e=performance.now(),a=[],r={log:(...i)=>a.push(yA(i.map(s=>String(s)).join(" "))),warn:(...i)=>a.push(yA(i.map(s=>String(s)).join(" "))),error:(...i)=>a.push... L646: `));return{ok:!0,output:await Promise.resolve(i(t.input,r)),logs:a,error:"",durationMs:Math.round(performance.now()-e),isolation:"inline-test-fallback"}}).catch(i=>({ok:!1,output:n...
High
Eval

Package source references dynamic code evaluation.

wwwroot/assets/MindCanvas-BkaDAmkW.jsView on unpkg · L644
wwwroot/assets/supabaseAuthAdapter-D57zJK6k.jsView file
43${b}`}class C extends Error{constructor({message:e,code:r,cause:s,name:n}){var i;super(e,{cause:s}),this.__isWebAuthnError=!0,this.name=(i=n??(s instanceof Error?s.name:void 0))!==... L44: `);const A=await E.signMessage(new TextEncoder().encode(p),"utf8");if(!A||!(A instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recogn...
Medium
Dynamic Require

Package source references dynamic require/import behavior.

wwwroot/assets/supabaseAuthAdapter-D57zJK6k.jsView on unpkg · L43
scripts/remote-fast-mdm-browser-smoke.mjsView file
3Detached bundled service listener: scripts/remote-fast-mdm-browser-smoke.mjs spawns server.js; helper exposes a broad-bound HTTP listener. L3: import assert from 'node:assert/strict'; L4: import { spawn } from 'node:child_process'; L5: import { mkdtemp, rm } from 'node:fs/promises'; L6: import net from 'node:net'; L7: import os from 'node:os'; ... L14: const LOCAL_BRIDGE_DIR = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); L15: const REQUESTED_FPS = Number(process.env.MINDEXEC_REMOTE_MDM_BROWSER_REQUEST_FPS || 12); L16: const SAMPLE_MS = Number(process.env.MINDEXEC_REMOTE_MDM_BROWSER_SAMPLE_MS || 1500); ... L47: L48: const payload = await response.json().catch(() => null); L49: return { status: response.status, ok: response.ok, payload }; ... L90:
High
Spawned Bundled Service Listener

Source launches a detached bundled service that exposes a broad-bound HTTP listener.

scripts/remote-fast-mdm-browser-smoke.mjsView on unpkg · L3
remote-fast/osx-x64/mindexec-remote-fastView file
path = remote-fast/osx-x64/mindexec-remote-fast kind = native_binary sizeBytes = 83704 magicHex = [redacted]
Medium
Ships Native Binary

Package ships native binary artifacts.

remote-fast/osx-x64/mindexec-remote-fastView on unpkg
tree-sitter-grammars/tree-sitter-go.wasmView file
path = tree-sitter-grammars/tree-sitter-go.wasm kind = wasm_module sizeBytes = 235957 magicHex = [redacted]
Medium
Ships Wasm Module

Package ships WebAssembly modules.

tree-sitter-grammars/tree-sitter-go.wasmView on unpkg
start-bridge.batView file
path = start-bridge.bat kind = build_helper sizeBytes = 558 magicHex = [redacted]
Medium
Ships Build Helper

Package ships non-JavaScript build or shell helper files.

start-bridge.batView on unpkg

Findings

2 Critical5 High8 Medium5 Low
CriticalSame File Env Network Executionserver.js
CriticalTrigger Reachable Dangerous Capabilityserver.js
HighInstall Time Lifecycle Scriptspackage.json
HighChild Processserver.js
HighShellserver.js
HighEvalwwwroot/assets/MindCanvas-BkaDAmkW.js
HighSpawned Bundled Service Listenerscripts/remote-fast-mdm-browser-smoke.mjs
MediumAmbiguous Install Lifecycle Scriptpackage.json
MediumDynamic Requirewwwroot/assets/supabaseAuthAdapter-D57zJK6k.js
MediumNetwork
MediumEnvironment Vars
MediumShips Native Binaryremote-fast/osx-x64/mindexec-remote-fast
MediumShips Wasm Moduletree-sitter-grammars/tree-sitter-go.wasm
MediumShips Build Helperstart-bridge.bat
MediumStructural Risk Force Deep Review
LowScripts Present
LowFilesystem
LowHigh Entropy Strings
LowTelemetry
LowUrl Strings