registry  /  mindexec-ai  /  0.2.1122

mindexec-ai@0.2.1122

MindExec local runtime and bridge CLI

AI Security Review

scanned 2h ago · by lpm-firewall-ai

No confirmed malicious install-time attack surface was found. The package is a local AI bridge with powerful runtime shell, file, auth, and remote-agent capabilities guarded by a bridge token.

Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
User runs mindexec/launch-bridge.cjs or imports/runs server.js; postinstall only copies grammar files.
Impact
Potential local command/file access if the bridge token is exposed or auth is disabled; no source evidence of unconsented exfiltration or install-time AI-agent hijack.
Mechanism
Token-protected local bridge APIs and managed remote-agent launcher
Rationale
Static inspection does not show malicious install-time behavior, credential exfiltration, destructive actions, or unconsented mutation of a foreign AI-agent control surface. The package should be warned rather than blocked because it ships powerful runtime remote-control and shell capabilities that are package-aligned but high impact if misconfigured or abused.
Evidence
package.jsonscripts/setup-tree-sitter-grammars.mjslaunch-bridge.cjsserver.jscodex-runtime.jsscripts/ai-task-schedule-smoke.mjswwwroot/appsettings.jsontree-sitter-grammars/*.wasm.mindexec-ai/auth/supabase-session.json.mindexec/auth/supabase-session.json.mindexec/.ai/ai-task-schedules.jsonremote-fast/*/mindexec-remote-fast
Network endpoints5
127.0.0.1:5077otbyfkjxrkngvjziawki.supabase.cor2-auth-proxy.lovecrdm.workers.devweb-capture-worker.lovecrdm.workers.devmindexec.pages.dev

Decision evidence

public snapshot
AI called this Suspicious at 86.0% confidence as Dangerous Capability with medium false-positive risk.
Evidence for warning
  • server.js exposes token-protected local shell execution at /api/shell/* via spawn('/bin/bash','-c',command).
  • server.js starts a remote registry follower at bridge startup and can spawn bundled/npx @mindexec/remote agents from registry manager endpoints.
  • server.js reads/stores Supabase auth sessions under .mindexec-ai/.mindexec auth paths and may refresh sessions against Supabase.
  • Package ships native remote-fast binaries under remote-fast/* and can execute them with --version preflight and connect args.
Evidence against
  • package.json postinstall only runs scripts/setup-tree-sitter-grammars.mjs, which copies packaged tree-sitter WASM grammars into tree-sitter-grammars.
  • Bridge binds to 127.0.0.1 and protected routes require X-Bridge-Token/Authorization by default.
  • Dangerous shell/file/remote-agent behavior is runtime API/CLI functionality, not install-time execution.
  • Network endpoints are product-aligned: localhost CompanyCore, configured Supabase, mindexec pages/workers, YouTube/search APIs.
  • scripts/ai-task-schedule-smoke.mjs is a test smoke script using temp dirs and a local bridge token, not a lifecycle hook.
Behavioral surface
Source
ChildProcessCryptoDynamicRequireEnvironmentVarsEvalFilesystemNetworkShellWebSocket
Supply chain
HighEntropyStringsMinifiedTelemetryUrlStrings
ManifestNo manifest risk signals triggered.
scanned 63 file(s), 5.63 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, mcp.example.test, 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

13 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/canvas-ai-task-core-OAgBsdEZ.jsView file
1478})(); L1479: `}function bo(t){const i=performance.now(),e=[],o={log:(...a)=>e.push(sr(a.map(u=>String(u)).join(" "))),warn:(...a)=>e.push(sr(a.map(u=>String(u)).join(" "))),error:(...a)=>e.push... L1480: `));return{ok:!0,output:await Promise.resolve(a(t.input,o)),logs:e,error:"",durationMs:Math.round(performance.now()-i),isolation:"inline-test-fallback"}}).catch(a=>({ok:!1,output:n...
High
Eval

Package source references dynamic code evaluation.

wwwroot/assets/canvas-ai-task-core-OAgBsdEZ.jsView on unpkg · L1478
wwwroot/assets/supabaseAuthAdapter-N7TUEeTE.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-N7TUEeTE.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
scripts/ai-task-schedule-smoke.mjsView file
matchType = previous_version_dangerous_delta matchedPackage = mindexec-ai@0.2.1121 matchedIdentity = npm:bWluZGV4ZWMtYWk:0.2.1121 similarity = 0.984 summary = stored previous version shares package body but lacks this dangerous source file
Critical
Previous Version Dangerous Delta

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

scripts/ai-task-schedule-smoke.mjsView on unpkg

Findings

3 Critical5 High8 Medium5 Low
CriticalSame File Env Network Executionserver.js
CriticalTrigger Reachable Dangerous Capabilityserver.js
CriticalPrevious Version Dangerous Deltascripts/ai-task-schedule-smoke.mjs
HighInstall Time Lifecycle Scriptspackage.json
HighChild Processserver.js
HighShellserver.js
HighEvalwwwroot/assets/canvas-ai-task-core-OAgBsdEZ.js
HighSpawned Bundled Service Listenerscripts/remote-fast-mdm-browser-smoke.mjs
MediumAmbiguous Install Lifecycle Scriptpackage.json
MediumDynamic Requirewwwroot/assets/supabaseAuthAdapter-N7TUEeTE.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